【发布时间】:2020-06-03 23:09:23
【问题描述】:
我需要对元素进行限制。给定两个元素,例如:
<xs:element name="lowerValue" type="xs:int" minOccurs="0" maxOccurs="1" />
<xs:element name="higgerValue" type="xs:int" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value= lowerValue />
</xs:restriction>
</xs:simpleType>
</xs:element>
在 higgerValue 中需要限制 value 不低于 lowerValue。
有可能吗?如何设置接受另一个元素的值的最小值?
【问题讨论】:
标签: xml schema restriction