XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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:
 

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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS