XML Schema selector element

Definition and Usage

The selector element specifies an XML path language (XPath) expression that identifies a constraint to select a set of elements (unique, key, and keyref elements).

Element Information

Occurrence Times Once
Parent Element key, keyref, unique
Content annotation

Syntax

<selector
id=ID
xpath=a subset of XPath expression
any attributes
>
(annotation?)
</selector>
Attributes Description
id Optional. Specifies the unique ID of the element.
xpath Required. Specifies the XPath expression relative to the declared element. This expression identifies the child elements that apply the identifier constraint (the declared element).
any attributes Optional. Specifies any other attributes with non-schema namespace.