【发布时间】:2014-02-14 05:29:29
【问题描述】:
如何基于 xs:ID 在您的 XSD 文件中创建派生的 simpleType。限制应使用值以“_”开头的模式,后跟两个 1 - 8 范围内的数字字符。
xml 中的元素
<piece identifier="p" postion="_44"></piece>
XSD
<xs:attribute name="postion">
<xs:simpleType>
<xs:restriction base="xs:ID">
<xs:pattern value="??">
</xs:restriction>
</xs:simpleType>
【问题讨论】: