W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2005

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>

> 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
Received on Tuesday, 18 October 2005 11:31:24 UTC

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