Hai
ok so i dont really know how to explain this but....
xml code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
<!-- our test element, which has an attribute called limit <test limit="10"/> --->
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:attribute name="limit" type="xs:integer"/>
<xs:sequence>
</xs:complexType>
</xs:element>
<!-- our xxx element, which we define the numbers constraints --->
<xs:element name="xxx">
<xs:complexType>
<xs:sequence>
<xs:attribute name="num" type="xs:integer">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="2"/>
<xs:maxInclusive value="40"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
ok so thats my xml schema file, now what i want to do is link the maxInclusive value to the attribute in the <test> element
is there anyway to do that?
eg so <xs:maxInclusive value="test[@limit]"/> or something
edit:
so turns out its impossible