W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

multiple elements with the same name

From: Andrew H McDowall <ahm@cs.stir.ac.uk>
Date: Thu, 25 Sep 2003 14:32:59 +0100 (BST)
Message-ID: <2543.139.153.254.66.1064496779.squirrel@yen.cs.stir.ac.uk>
To: xmlschema-dev@w3.org

I am fairly new the XML Schema and I am trying to define a schema that
offers a choice between elements with the same name but with different
attributes.  For example:

<if index="xs:integer" last="yes|no"/>

or

<if name="xs:string"/>

or

<if type="xs:string" not="xs:string"/>

Is this possible with XSD or do I need to embed some schematron?  Further
more would it be possible to define an abstract tpye <if/> and use the
above choice as a substitution group?

Thanks

Andrew McDowall
ahm@cs.stir.ac.uk

-- 
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA.  Privileged/Confidential Information may
be contained in this message.  If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.  In such case, you should destroy this
message and kindly notify the sender by reply email.  Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind.
Received on Thursday, 25 September 2003 09:34:11 GMT

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