W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

conditional element content?

From: Vaios Papanagnou <v.papanagnou@ucl.ac.uk>
Date: Mon, 14 Oct 2002 13:13:24 +0300
Message-ID: <000f01c2736a$5fd64240$bbebcdd4@carmine>
To: xmlschema-dev <xmlschema-dev@w3.org>

Hello,

Just a small question.
Would it be possible to specify that an element's content can change
conditionally, in
relation with an attribute's value?
eg.
<element name="test" type="true">
<h1/>
</element>

<element name="test" type="false">
<h1/>
<h2/>
</element>
Would this be done with XSLT?

Best,

Vaios
Received on Monday, 14 October 2002 06:11:22 GMT

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