0
我在我的XSD中定義了一個元素「檢查」,並且它有一個類型爲「int」的屬性「step」。我想要做的是要求第一個「輸入」具有step = 1,下一個具有step = 2,依此類推。這在XSD中可能嗎?我的XSD如何要求屬性值是連續的?
XML架構提取物:
<element name="inspection">
<complexType>
<!-- some elements -->
<!-- other attributes -->
<attribute name="step" type="int">
<simpleType>
<restriction>
<minInclusive value="1" />
</restriction>
</simpleType>
</attribute>
</complexType>
</element>