Pole schematu XML Element
❮ Pełne odniesienie do schematu XML
Definicja i użycie
Element pola określa wyrażenie XPath, które określa wartość używaną do zdefiniowania ograniczenia tożsamości.
Informacje o elemencie
- Elementy nadrzędne: klucz, ref. klucza, unikat
Składnia
<field
id=ID
xpath=XPath expression
any attributes
>
(annotation?)
</field>
(Znak ? oznacza, że element może wystąpić zero lub jeden raz wewnątrz elementu pola)
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 |
Przykład 1
Poniższy przykład przedstawia element pola, który określa atrybut „userID” jako pole do użycia dla ograniczenia tożsamości:
<xs:field xpath="@userID"/>
❮ Pełne odniesienie do schematu XML