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

Re: Schema 1.1: xs:anyEnumeration considered?

From: brycenesbitt <bryce1@obviously.com>
Date: Tue, 1 May 2007 16:59:15 -0700 (PDT)
Message-ID: <10278076.post@talk.nabble.com>
To: xmlschema-dev@w3.org
Re: Schema 1.1: xs:anyEnumeration considered?


How about something akin to "javax".  The ability to insert an extra
attribute to a non-conforming element that says "this is extended beyond the
schema".  Then you'd still catch mistakes in a standard type (e.g. "runtal"
when "rental" was meant), but still allow true extensions (e.g. "leasing").  

I like the idea of providing an enumeration, even in cases where that's just
a serving suggestion or starting point.


Pete Cordell wrote:
> 
> 
> One thing I often see are sets of enumerations that are not extensible....
> 
>     <xs:simpleType name="foo">
>         <xs:restriction base="xs:string">
>             <xs:pattern value="[a-zA-Z0-0]{3,4}"/>
>             <xs:enumeration value="ABC"/>
>             <xs:enumeration value="DEFG"/>
>             <xs:anyEnumeration/>  <!-- New -->
>         </xs:restriction>
>     </xs:simpleType>
> 
> 

-- 
View this message in context: http://www.nabble.com/Schema-1.1%3A-xs%3AanyEnumeration-considered--tf3415265.html#a10278076
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.
Received on Tuesday, 1 May 2007 23:59:19 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.