W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2008

RE: multiple attribute groups for an elment possible?

From: Michael Kay <mike@saxonica.com>
Date: Tue, 11 Mar 2008 09:04:25 -0000
To: "'Thompson, Zach'" <Zach_Thompson@platts.com>, <xmlschema-dev@w3.org>
Message-ID: <010b01c88356$e7883a70$6401a8c0@turtle>
In Schema 1.0 it's only possible if the two elements have different types,
and that's only possible if they appear in different contexts.
In Schema 1.1 this is easily done using conditional type assignment.
Michael Kay


From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Thompson, Zach
Sent: 10 March 2008 20:43
To: xmlschema-dev@w3.org
Subject: multiple attribute groups for an elment possible?

Hi all,

I'm trying to figure if it's possible to have essentially several valid
attribute groups per element.  For instance, if I have two types of symbols,

<symbol type="a" a="val" b="val" c=123 />

<symbol type="b" x="val" y="val" z=123 />

I would like to say that type "a" has these required/optional attributes,
i.e. a, b, and c, and type "b" a different set, i.e. x, y, and z.  Is it
possible to say that "symbol" can have one of several attributeGroups?

I realize I can just make aSymbol and bSymbol but would like to avoid that




The information contained in this message is intended only for the
recipient, and may be a confidential attorney-client communication or may
otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended recipient,
please be aware that any dissemination or copying of this communication is
strictly prohibited. If you have received this communication in error,
please immediately notify us by replying to the message and deleting it from
your computer.  The McGraw-Hill Companies, Inc. reserves the right, subject
to applicable local law, to monitor and review the content of any electronic
message or information sent to or from McGraw-Hill employee e-mail addresses
without informing the sender or recipient of the message.

Received on Tuesday, 11 March 2008 09:04:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:14 UTC