XML Schema selector Element
Complete XML Schema Reference Manual
Definition and Usage
The selector element specifies an XML Path Language (XPath) expression that selects a set of elements for an identity constraint (unique, key, and keyref elements).
Element Information
- Parent elements: key, keyref, unique
Syntax
id=ID xpath=a subset of XPath expression any attributes (annotation?) (The ? symbol declares that within the restriction element, the element can appear zero or one time.)
property
Description
id
Optional. Specifies a unique ID for the element.
xpath
Required. Specifies an XPath expression relative to the declared element. The expression identifies the child elements to which the identity constraint (the declared element) applies.
any attributes
Optional. Specifies any other attributes with a non-schema namespace.
Complete XML Schema Reference Manual