15.2.53. XML Schema simpleType element

发布时间 : 2025-10-25 13:35:22 UTC      

Page Views: 9 views

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

Definition and usage

The simpleType element defines a simple type that specifies information about and constraints on the values of elements or attributes with plain text content.

Element information

  • 父元素: Attribute, element, list, restriction, schema, union

Grammar

 (annotation?,(restriction|list|union))  

(? The symbol declaration element can appear zero or once in the simpleType element.)

Attribute

Description

Id

Optional. Specifies the unique ID of the element.

Name

Type name. The name must be a colon-free name (NCName) defined in the XML namespace specification. If specified, the name must be unique among all simpleType and complexType elements. Required if the simpleType element is a child of the schema element, which is not allowed at other times.

Any attributes

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

Example 1

This example declares that the “age” element is a simple type with constraints. The value of age cannot be less than 0 or greater than 100:

<xs:element name="age"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="100"/> xs:restriction> xs:simpleType> xs:element>    

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

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。