W3C

XForms 1.0 (第2版)

W3Cの勧告2006年3月14日

この版:
http://www.w3.org/TR/2006/REC-xforms-20060314/
最新の版:
http://www.w3.org/TR/xforms/
前の版:
http://www.w3.org/TR/2003/REC-xforms-20031014/
編者:
John M. Boyer, IBM
David Landwehr, Novell
Roland Merrick, IBM
T. V. Raman, Google
Micah Dubinko, Cardiff Software - (初版)
Leigh L. Klotz, Jr., Xerox Corporation - (初版)

この文書の正誤表を参照してください。規定の訂正を含んでいるかもしれません。

この文書は、規定版でない、単一のHTMLファイル相違点をマークしたHTMLZipアーカイブ形式で利用可能である。

この仕様書の英語版が規定版である。また、規定版でない翻訳も利用できるかもしれない。


摘要

XFormsは、ウェブにおいて次世代のフォームを表現するXMLアプリケーションである。過渡的なXHTMLのフォームを、XFormsモデル、インスタンスデータ、利用者インタフェイスという三つの部分に分割することにより、内容から表現を分離し、再利用や、サーバとのラウンドトリップの数を削減し、また装置非依存性を提供し、スクリプトの必要性を低減する、強い型付けが可能になるだろう。

XFormsは、独立した文書型であるが、XHMLやSVGといった他のマークアップ言語に統合されることを意図されている。

この文書の状態

この項はこの文書の発行時における状態を説明する。他の文書がこの文書に取って代わるかもしれない。W3Cの発行物やこの技術報告の最新版の一覧は、http://www.w3.org/TR/にあるW3Cの技術報告の一覧で参照できる。

この文書は、W3Cの勧告である。この文書は、W3C対話部門の中のXForms活動の一部であるW3CのXForms作業グループにより作成された。この文書の作者は、XForms作業グループの参加者である。

この文書はW3Cの会員、ソフトウェアの開発者や、他のW3Cのグループ及び興味のある関係者によってレビューされ、W3Cの理事によりW3C勧告として承認されている。安定した文書であり、参考資料として利用したり別の文書から引用してもよい。勧告を作成するW3Cの役割は、仕様書に注意を向け、広く普及を進めることである。このことは、ウェブの機能性や相互運用性を高めることになる。

この文書に対する意見は歓迎である。ぜひ公開のメーリングリストwww-forms-editor@w3.org(アーカイブ)に送ってください。 このアドレスに議論をするemailを送るのは不適切である。

W3CのXForms作業グループは、XForms 1.0に対する公開のテストスイートをリリースした。既知のXFormsの実装も利用可能である。

この文書は、2004年2月5日のW3Cの特許ポリシの影響下にあるグループによって作成された。作業グループは、グループの成果物と関係のあるすべての特許開示の公開リストを管理している。このページは、特許開示の指示を含んでいる。ある個人が特許を実際に認識しており、特許が不可欠な特許請求の範囲を含んでいるとその個人が考えているならば、W3Cの特許ポリシの第6項に従って、情報を開示しなければならない。

目次

1 XForms 1.0仕様書について
    1.1 背景
    1.2 仕様書を読む際に
    1.3 仕様書の構成
    1.4 文書化の約束
2 XFormsの紹介
    2.1 とある例
    2.2 XMLインスタンスデータの提供
    2.3 値の制約
    2.4 一つの文書における複数のフォーム
3 文書構造
    3.1 XForms名前空間
    3.2 XFormsコア属性集合
        3.2.1 共通属性
        3.2.2 リンク属性
        3.2.3 単一ノード束縛属性
        3.2.4 ノード集合束縛属性
        3.2.5 モデル項目特性属性
    3.3 XFormsコアモジュール
        3.3.1 model要素
        3.3.2 instance要素
        3.3.3 submission要素
        3.3.4 bind要素
    3.4 XForms必須理解モジュール
    3.5 XForms拡張モジュール
        3.5.1 extension要素
4 処理モデル
    4.1 イベント概要
    4.2 初期化イベント
        4.2.1 xforms-model-constructイベント
        4.2.2 xforms-model-construct-doneイベント
        4.2.3 xforms-readyイベント
        4.2.4 xforms-model-destructイベント
    4.3 対話イベント
        4.3.1 xforms-next and xforms-previousイベント
        4.3.2 xforms-focusイベント
        4.3.3 xforms-help and xforms-hintイベント
        4.3.4 xforms-refreshイベント
        4.3.5 xforms-revalidateイベント
        4.3.6 xforms-recalculateイベント
        4.3.7 xforms-rebuildイベント
        4.3.8 xforms-resetイベント
        4.3.9 xforms-submitイベント
    4.4 通知イベント
        4.4.1 DOMActivateイベント
        4.4.2 xforms-value-changedイベント
        4.4.3 xforms-select及びxforms-deselectイベント
        4.4.4 xforms-scroll-first及びxforms-scroll-lastイベント
        4.4.5 xforms-insert及びxforms-deleteイベント
        4.4.6 xforms-validイベント
        4.4.7 xforms-invalidイベント
        4.4.8 DOMFocusInイベント
        4.4.9 DOMFocusOutイベント
        4.4.10 xforms-readonlyイベント
        4.4.11 xforms-readwriteイベント
        4.4.12 xforms-requiredイベント
        4.4.13 xforms-optionalイベント
        4.4.14 xforms-enabledイベント
        4.4.15 xforms-disabledイベント
        4.4.16 xforms-in-rangeイベント
        4.4.17 xforms-out-of-rangeイベント
        4.4.18 xforms-submit-doneイベント
        4.4.19 xforms-submit-errorイベント
    4.5 エラー報告
        4.5.1 xforms-binding-exceptionイベント
        4.5.2 xforms-link-exceptionイベント
        4.5.3 xforms-link-errorイベント
        4.5.4 xforms-compute-exceptionイベント
    4.6 イベント列
        4.6.1 input、secret、textarea、range又はuploadコントロールに対して
        4.6.2 outputコントロールに対して
        4.6.3 select又はselect1コントロールに対して
        4.6.4 triggerコントロールに対して
        4.6.5 submitコントロールに対して
        4.6.6 列: 値の変化なしの選択
        4.6.7 列: 値の変化
        4.6.8 列: トリガの活性化
        4.6.9 列: 投稿
5 データ型
    5.1 XMLスキーマの組み込みデータ型
    5.2 XFormsデータ型
        5.2.1 xforms:listItem
        5.2.2 xforms:listItems
        5.2.3 xforms:dayTimeDuration
        5.2.4 xforms:yearMonthDuration
6 モデル項目特性
    6.1 モデル項目特性定義
        6.1.1 type特性
        6.1.2 readonly特性
        6.1.3 required特性
        6.1.4 relevant特性
        6.1.5 calculate特性
        6.1.6 constraint特性
        6.1.7 p3ptype特性
    6.2 スキーマ制約
        6.2.1 小さなデータ型
7 XPath Expressions in XForms
    7.1 XPath Datatypes
    7.2 Feature string for the hasFeature method call
    7.3 Instance Data
        7.3.1 The getInstanceDocument() Method
        7.3.2 The rebuild() Method
        7.3.3 The recalculate() Method
        7.3.4 The revalidate() Method
        7.3.5 The refresh() Method
    7.4 Evaluation Context
    7.5 Binding Expressions
        7.5.1 Dynamic Dependencies
        7.5.2 Model Binding Expressions
        7.5.3 UI Binding Expressions
        7.5.4 UI Binding in other XML vocabularies
        7.5.5 Binding Examples
    7.6 XForms Core Function Library
    7.7 Boolean Functions
        7.7.1 The boolean-from-string() Function
        7.7.2 The if() Function
    7.8 Number Functions
        7.8.1 The avg() Function
        7.8.2 The min() Function
        7.8.3 The max() Function
        7.8.4 The count-non-empty() Function
        7.8.5 The index() Function
    7.9 String Functions
        7.9.1 The property() Function
    7.10 Date and Time Functions
        7.10.1 The now() Function
        7.10.2 The days-from-date() Function
        7.10.3 The seconds-from-dateTime() Function
        7.10.4 The seconds() Function
        7.10.5 The months() Function
    7.11 Node-set Functions
        7.11.1 The instance() Function
    7.12 Extension Functions
8 Form Controls
    8.1 The XForms Form Controls Module
        8.1.1 Implementation Requirements Common to All Form Controls
        8.1.2 The input Element
        8.1.3 The secret Element
        8.1.4 The textarea Element
        8.1.5 The output Element
        8.1.6 The upload Element
        8.1.7 The range Element
        8.1.8 The trigger Element
        8.1.9 The submit Element
        8.1.10 The select Element
        8.1.11 The select1 Element
    8.2 Common Markup for Selection Controls
        8.2.1 The choices Element
        8.2.2 The item Element
        8.2.3 The value Element
    8.3 Additional Elements
        8.3.1 The filename Element
        8.3.2 The mediatype Element
        8.3.3 The label Element
        8.3.4 The help Element
        8.3.5 The hint Element
        8.3.6 The alert Element
9 XForms User Interface
    9.1 The XForms Group Module
        9.1.1 The group Element
    9.2 The XForms Switch Module
        9.2.1 The switch Element
        9.2.2 The case Element
        9.2.3 The toggle Element
    9.3 The XForms Repeat Module
        9.3.1 The repeat Element
        9.3.2 Creating Repeating Structures Via Attributes
        9.3.3 The itemset Element
        9.3.4 The copy Element
        9.3.5 The insert Element
        9.3.6 The delete Element
        9.3.7 The setindex Element
        9.3.8 Repeat Processing
        9.3.9 Nested Repeats
        9.3.10 User Interface Interaction
10 XForms Actions
    10.1 The XForms Action Module
        10.1.1 The action Element
        10.1.2 The dispatch Element
        10.1.3 The rebuild Element
        10.1.4 The recalculate Element
        10.1.5 The revalidate Element
        10.1.6 The refresh Element
        10.1.7 The setfocus Element
        10.1.8 The load Element
        10.1.9 The setvalue Element
        10.1.10 The send Element
        10.1.11 The reset Element
        10.1.12 The message Element
        10.1.13 Actions insert, delete and setindex
11 Submit
    11.1 The xforms-submit Event
    11.2 Submission Options
    11.3 Serialization as application/xml
    11.4 Serialization as multipart/related
    11.5 Serialization as multipart/form-data
    11.6 Serialization as application/x-www-form-urlencoded
    11.7 The post, multipart-post, form-data-post, and urlencoded-post Submit Methods
    11.8 The put Submit Method
    11.9 The get Submit Method
12 Conformance
    12.1 Conformance Levels
        12.1.1 XForms Full
    12.2 Conformance Description
        12.2.1 Conforming XForms Processors
        12.2.2 Conforming XForms Documents
        12.2.3 Conforming XForms Generators
13 Glossary Of Terms

Appendices

A Schema for XForms
    A.1 Schema for XML Events
B References
    B.1 Normative References
    B.2 Informative References
C Privacy Considerations
    C.1 Using P3P with XForms
D Recalculation Sequence Algorithm
    D.1 Details on Creating the Master Dependency Directed Graph
    D.2 Details on Creating the Pertinent Dependency Subgraph
    D.3 Details on Computing Individual Vertices
    D.4 Example of Calculation Processing
E Input Modes
    E.1 inputmode Attribute Value Syntax
    E.2 User Agent Behavior
    E.3 List of Tokens
        E.3.1 Script Tokens
        E.3.2 Modifier Tokens
    E.4 Relationship to XML Schema pattern facets
    E.5 Examples
F XForms and Styling (Non-Normative)
    F.1 Pseudo-classes
    F.2 Pseudo-elements
    F.3 Examples
G Complete XForms Examples (Non-Normative)
    G.1 XForms in XHTML
    G.2 Editing Hierarchical Bookmarks Using XForms
    G.3 Survey Using XForms and SVG
H Changelog (Non-Normative)
I Acknowledgments (Non-Normative)
J Production Notes (Non-Normative)