我需要对可以取值介于1和48之间的整数进行限制,但也可以取单值63.可以这样做吗?XML Schema中的限制
我知道以下将处理第一个限制,但我怎样才能将63添加到列表?
<xs:simpleType name="nameId">
<xs:element name="id">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="48"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:simpleType>
谢谢,克雷格。因此,我不能简单地添加一个枚举类似于 \t \t –
Moeman