XMLスキーマキー要素
❮完全なXMLスキーマリファレンス
定義と使用法
key要素は、インスタンスドキュメントの包含要素内のキー(一意、null不可、常に存在)として属性または要素値を指定します。
キー要素には、次のものが(順番に)含まれている必要があります。
- 唯一のセレクター要素(フィールドで指定された値が一意である必要がある要素のセットを指定するXPath式が含まれています)
- 1つ以上のフィールド要素(selector要素によって指定された要素のセットに対して一意である必要がある値を指定するXPath式が含まれています)
要素情報
- 親要素:要素
構文
<key
id=ID
name=NCName
any attributes
>
(annotation?,(selector,field+))
</key>
(?記号は、要素が0回または1回発生する可能性があることを宣言し、+記号は、要素がキー要素内で1回以上発生する必要があることを宣言します)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
name | Required. Specifies the name of the key element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
❮完全なXMLスキーマリファレンス