W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2009

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>

> 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
Received on Sunday, 18 January 2009 15:34:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:50 UTC