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