我对在另一个 XSD 中重新定义一个简单类型的 XSD 有疑问。
样品1.xsd:
<xs:simpleType name="tLineType">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="mainLine" />
<xs:enumeration value="secondaryLine" />
<xs:enumeration value="branchLine" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="tOtherEnumerationValue" />
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="tOtherEnumerationValue">
<xs:restriction base="xs:string">
<xs:pattern value="other:\w{2,}" />
</xs:restriction>
</xs:simpleType>
样品2.xsd:
我需要向 tLineType(ex:test_Track, Depot) 添加更多枚举值。
如何实现上述功能?
先感谢您。