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 09:19:10 +0100
To: "'Tomasz Olchawa'" <thm@parasoft.com.pl>, <xmlschema-dev@w3.org>
Message-ID: <E1ERmgr-0001ve-2r@lisa.w3.org>

> 
> I have XML format like this:
>  
> ....
> <Property name="aaa" value="string"/>
> <Property name="iii" value="16"/>
> ....
>  

XML Schema isn't good at constraining such a structure. It relies on the
structure being dependent on the element name, or at any rate, the
element-name-in-context.

I'd be interested to know why you use this form, rather than the more
straightforward

<aaa>string</aaa>
<iii>16</iii>

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 18 October 2005 08:19:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:51 GMT