xs:list 用于定义一些列用空格分开的元素,比如下面定义一个类型,他的内容限制为是一系列用空格分开的整型。
<xs:simpleType name="integerList">
<xs:list itemType="xs:integer"/>
</xs:simpleType>
你还可以给他加上其他限制,比如最大不能超过100.
<xs:simpleType name="myIntegerList">
<xs:list>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
Tuesday, October 7, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment