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

RE: choice attributeGroup

From: Michael Kay <mike@saxonica.com>
Date: Tue, 18 Oct 2005 12:31:05 +0100
To: "'Tomasz Olchawa'" <thm@parasoft.com>, <xmlschema-dev@w3.org>
Message-ID: <E1ERpge-0000o9-B3@maggie.w3.org>
attributegroup choice

> This is not my idea. It is very old format of XML and now I 
> have to prepare schema for it.

Unfortunately, there are many constraints that XML Schema can't express, so
if you design your documents first and then try to write a schema for them,
you often run into this. (Note that DTDs can't handle this either).

> I think, that is impossible because XML schema recognize only 
> 'context-free grammar'.

In this case it's not so much that the grammar is context free, as the fact
that the tokens that take the grammar from one state to another are element
names, not attribute values.

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 18 October 2005 11:31:24 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.