例如
验证以下元素:
<population class="AAA">100</population >
我想要对文本节点的约束是它应该是 1 到 1000 之间的数值。
我的想法看起来像这样,但行不通
<xsd:element name="population">
<xsd:complexType>
<xsd:simpleContent>
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1000"/>
</xsd:restriction>
</xsd:simpleContent>
<xsd:attribute name="class" type="xsd:string" use="required"/>
</xsd:complexType>
顺便说一句,我不想再定义任何新类型。
谁能帮我。谢谢
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)