W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2001

Constraint within XML-Schema

From: Uwe Zeise <uwezeise@yahoo.de>
Date: Tue, 8 May 2001 19:26:32 +0200
Message-ID: <000c01c0d7e4$07875980$37b450d9@compaq>
To: <www-xml-schema-comments@w3.org>
Hi folks,

is it somehow possible to make sure that the amount of a certain element is equal to an attribute value ?

E.g. If the amount element is '4' there should be exactly 4 value elements within values. Is there a possibility
to realize this constraint in XML-Schema ?

<values amount="4"> 
  <value>1</value>
  <value>100</value>
  <value>23</value>
  <value>14</value>
</values>

Thanks in advance,

Uwe.




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Received on Tuesday, 8 May 2001 13:26:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:50 GMT