15.2.42. XML Schema include element

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

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

Definition and usage

The include element is used to add multiple schema with the same target namespace to a document.

Element information

  • 父元素: Schema

Grammar

<include
id=ID
schemaLocation=anyURI
*any attributes*
>
(annotation?)
</include>

(? The symbol is declared in the include element, which can appear zero or once. )

Attribute

Description

Id

Optional. Specifies the unique ID of the element.

SchemaLocation

Necessary. Specifies the URI of the schema to be included in the target namespace that contains schema.

Any attributes

Optional. Specifies any other attributes with the non-schema namespace.

Example 1

With the included schema, the included files must all refer to the same target namespace. If the schema target namespace does not match, the include will not be valid:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.runoob.com/schema">
<xs:include
schemaLocation="https://www.runoob.com/schema/customer.xsd"/>
<xs:include schemaLocation="https://www.runoob.com/schema/company.xsd"/>
..
..
..
</xs:schema>

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.