[Home] [By Thread] [By Date] [Recent Entries]

  • From: dominika kaluza <dominika.kaluza@h...>
  • To: <xml-dev@l...>
  • Date: Fri, 26 Sep 2008 08:46:48 -0400

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:
 

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!


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member