← Prev in month
← Prev in thread
Next in thread →
Next in month →
Restriction
Hi,
I am new to XML and have this problem, hope someone will be able to help me.
I have the following form and have to make schema for it but have problems with restriction:
<xs:complexType>
<xs:choice minOccurs="0">
<xs:element ref="AGREEMENT_PUBLICATION"/>
<xs:element ref="NO_AGREEMENT_PUBLICATION"/>
</xs:choice>
</xs:complexType>
</xs:element>
thanks,
D.
Explore the seven wonders of the world Learn more!
I am new to XML and have this problem, hope someone will be able to help me.
I have the following form and have to make schema for it but have problems with restriction:
b) Works[]
works category No [] []
In case work categories 17 to 27, do you agree for publication? yes[] no[]
THE FOLLOWING RESTRICTIONS ARE NEEDED:
- if the number entered in works category is in range 1-10, it should not be possible to choose NO (So, 1-16 will be always "YES")
-if the number entered is in range 11 - 20, you can chose either YES or NO.
So, perhaps the element with no restriction is as follows, then I tried to put all sort of attributes but it did not work. Please help :
<xs:element name="WORKS_CATEGORY"><xs:complexType>
<xs:choice minOccurs="0">
<xs:element ref="AGREEMENT_PUBLICATION"/>
<xs:element ref="NO_AGREEMENT_PUBLICATION"/>
</xs:choice>
</xs:complexType>
</xs:element>
thanks,
D.
Explore the seven wonders of the world Learn more!
← Prev in month
← Prev in thread
Next in thread →
Next in month →