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

RE: A schema that uses attribute values to enforce content structure rules?

From: Michael Kay <mike@saxonica.com>
Date: Sun, 18 Jan 2009 15:33:47 -0000
To: "'Nathan Potter'" <ndp@coas.oregonstate.edu>, <xmlschema-dev@w3.org>
Message-ID: <FCFF3A3505534AB284E208F6CEFD1DEF@Sealion>
RE: A schema that uses attribute values to enforce content structure rules?

> I am trying to express the semantics of our content model in 
> an XML schema. I have a type whose allowed content is 
> function of the values of an attribute. 

That's a classical example of what you can do with "conditional type
assignment" in XML Schema 1.1. It's available in Saxon 9.1 if you want to
try it out. It can't be done in XSD 1.0.

Michael Kay
http://www.saxonica.com/
Received on Sunday, 18 January 2009 15:34:27 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.