W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

conditional occurrences of child elements

From: <jozef.aerts@xml4pharma.com>
Date: Wed, 9 Mar 2005 11:42:01 +0100
To: <www-xml-schema-comments@w3.org>
Message-Id: <27999199$1110364400422ed0f0314342.61554297@config20.schlund.de>


Are there any plans to implement conditional occurrence of subelements
in XML-Schema 1.1 ?

What I mean is e.g. that the occurrence (or number of occurences) of a
subelement is dependent on the value of e.g. an attribute.

For example:
<element1 hasSubelement="Yes">
  <subelement></subelement>
</element1>

<element1 hasSubelement="No">
</element1>

If there are plans for this, can you already reveal how this is
envisaged to be implemented in XML-Schema 1.1?

I ask because we are currently further developing an international
XML-based standard in the healthcare sector.
We want to have conditional occurrence of subelements anyway (at the
moment tailored-written software has to check), so we want to have the
XML-Schema for it as close as possible to XML-Schema 1.1

Many thanks in advance

Jozef

Jozef Aerts
XML4Pharma
Received on Wednesday, 9 March 2005 10:45:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT