XML -Schema -Auswahlelement
❮ Vollständige XML-Schema-Referenz
Definition und Verwendung
Das selector-Element gibt einen XPath-Ausdruck an, der einen Satz von Elementen für eine Identitätseinschränkung auswählt (unique-, key- und keyref-Elemente).
Elementinformationen
- Übergeordnete Elemente: key, keyref, unique
Syntax
<selector
id=ID
xpath=a subset of XPath expression
any attributes
>
(annotation?)
</selector>
(Das ?-Zeichen gibt an, dass das Element null oder einmal innerhalb des Selektor-Elements vorkommen kann.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Specifies an XPath expression, relative to the element being declared, that identifies the child elements to which the identity constraint applies |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
❮ Vollständige XML-Schema-Referenz