0
我正在寻找一种方法来根据伴侣属性valid-from
限制输入属性valid-till
。xsd:限制一个属性大于其他(相对验证)
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Data">
<xs:sequence>
<xs:element name="material" type="Material" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="id" type="xs:ID" />
<xs:attribute name="valid-from" type="xs:dateTime" />
<xs:attribute name="valid-till" type="xs:dateTime" />
</xs:complexType>
</xs:schema>
我该如何实现这个目标?
是的。由于我仅限于xsd-1.0,因此没有解决方案。正如你[提到](http://stackoverflow.com/a/15800181/1791481)。 – mailwurf