W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

Dependencies between attributes and elements

From: Joćo Cruz Morais <napalm@spiderfish.net>
Date: Mon, 6 Aug 2007 13:40:24 +0100
Message-ID: <a9b8f86e0708060540h391a0726ud59f0bffb792b3b5@mail.gmail.com>
To: xmlschema-dev@w3.org

Hello everyone,

Given this simple xml:

<vector size="2">
  <value>1</value>
  <value>3</value>
</vector>

Is there a way to validate the number of <value> elements according to
the vector size attribute?
I'm tempted to say no, so should I make this kind of validation inside
my program?

Thanks,
Joćo
Received on Monday, 6 August 2007 16:02:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:00 GMT