XML Schema veld Element
❮ Volledige XML-schemareferentie
Definitie en gebruik
Het veldelement specificeert een XPath-expressie die de waarde specificeert die wordt gebruikt om een identiteitsbeperking te definiëren.
Elementinformatie
- Bovenliggende elementen: key, keyref, unique
Syntaxis
<field
id=ID
xpath=XPath expression
any attributes
>
(annotation?)
</field>
(Het ?-teken geeft aan dat het element nul of één keer binnen het veldelement kan voorkomen)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Identifies a single element or attribute whose content or value is used for the constraint |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
voorbeeld 1
Het volgende voorbeeld toont een veldelement dat het kenmerk "userID" specificeert als het veld dat moet worden gebruikt voor de identiteitsbeperking:
<xs:field xpath="@userID"/>
❮ Volledige XML-schemareferentie