[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

multiple attribute groups for an elment possible?

From: Thompson, Zach <Zach_Thompson@platts.com>
Date: Mon, 10 Mar 2008 16:42:56 -0400
Message-ID: <C9F4D947A9B31145A3B2576F93022E7465587D@NJ01EXM504.mhf.mhc>
To: <xmlschema-dev@w3.org>
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 route.

 

Cheers,

Zach
--------------------------------------------------------

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 07:48:29 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.