W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2003

wish: Treating attributes and elements more equally

From: Paul Libbrecht <paul@activemath.org>
Date: Sun, 06 Apr 2003 23:58:06 +0200
Message-ID: <3E90A2EE.2020403@activemath.org>
To: www-xml-schema-comments@w3.org


I am sure I am the ten thousandth person to send such a request but I am 
doing it anyways as it seems the invitation for public comment on the 
Schema home page only contains an email for these comments.

After having learned XML Schema a little bit (in particular the tutorial 
of Eric van der Vliest), I was expecting quite a lot, it seemed to be 
real powerful, at least as opposed to DTD.

But then I realized that one of the most elementary thing that I wanted 
to constain could not be constrained by Schema: I'd like a validation 
tool to allow either

<blop id="blip"><content>blablabla</content></blop>


<blop ref="blip"/> <!-- no content in here ! -->

And the answer is... this is not possible !
The reason sounds weird to me: <xsi:attribute> elements cannot be part 
of groups or alternatives.

Although there may be some implementation or other reason, I have to say 
that I see no reason it is not possible to do so.

Hoping this could be fixed for XML-Schema 1.1.


Received on Sunday, 6 April 2003 17:58:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:01 UTC