W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

Feature Request: wildcard - any element but these

From: Alex Milowski <alex@milowski.com>
Date: Tue, 22 Feb 2005 08:53:30 -0800
Message-Id: <4c61adcee6c774b7daf38b2986e54d6a@milowski.com>
To: www-xml-schema-comments@w3.org

I'd like to have a content model of the sort:

   (x*, anything-but-x*)

Currently, this can't be encoded because there is no way to specify the
wildcard.

Using ##other comes close but doesn't quite work.

What would be nice is:

    <xs:any>
    <xs:except name="p:x"/>
    <xs:except namespace="http://www.somewhere.org/schema/bad"/>
    </xs:any>

That is, I want the ability to list exceptions:

    * by element name--not necessarily one with an element declaration
      as there may be no schema.
    * by namespace name


-- Alex Milowski  

"The excellence of grammar as a guide is proportional to the paucity of 
the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Tuesday, 22 February 2005 17:22:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT