我在我的xsd中多次使用这个simpleType:
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9a-zA-Z]{3}" />
</xs:restriction>
</xs:simpleType>有没有办法定义它一次,然后多次使用它?
发布于 2010-12-14 22:48:33
是的有。就给它起个名字吧。
<xsd:simpleType name="myType">
...
</xsd:simpleType>
<xsd:element type="myType" .../>https://stackoverflow.com/questions/4440334
复制相似问题