Latest web development tutorials

XML Schema selector element

XML Schema Reference Complete XML Schema Reference

Definition and Usage

selector element specifies the XML Path Language (XPath) expression that identifies constraints to select a set of elements (unique, key elements and keyref).

Element Information

  • Parent element: key, keyref, unique

grammar

<selector
id=ID
xpath=a subset of XPath expression
any attributes
>

(annotation?)

</selector>

(? Sign declares that the restriction element of the element can occur zero or one time.)

属性 描述
id 可选。规定该元素的唯一的 ID。
xpath 必需。规定相对于所声明的元素的 XPath 表达式。该表达式标识应用标识约束(所声明的元素)的子元素。
any attributes 可选。规定带有 non-schema 命名空间的任何其他属性。


XML Schema Reference Complete XML Schema Reference