15.2.39. XML Schema field element

发布时间 :2025-10-25 12:23:23 UTC      

XML Schema 参考手册 完整 XML Schema 参考手册

Definition and usage

The field element specifies an XPath expression that specifies the value (or one of the values) used to define identity constraints (unique, key, and keyref elements).

Element Information

  • 父元素: Key, keyref, unique

Grammar

<field
id=ID
xpath=XPath expression
*any attributes*
>
(annotation?)
</field>

(? The symbol is declared within a field element, which can occur zero or once. )

Attribute

Description

Id

Optional. Specifies the unique ID of the element.

Xpath

Necessary. Identifies a single element or attribute whose contents or values are used to constrain. If the expression identifies an element, the element must be a simple type.

Xml:lang

Optional. Specifies the language used in the content.

Example 1

The following example shows a field element that defines the “userID” attribute as the field used to identify the constraint:

<xs:field xpath="@userID"/>

XML Schema 参考手册 完整 XML Schema 参考手册

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.