W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

RE: Question - Extending attribute values

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Thu, 19 Sep 2002 11:30:35 -0700
Message-Id: <8904C60CACA7D51191BC00805FEAAF43D10C3B@crdc-exch-7.crdc.kp.org>
To: "'Stefan Wachter'" <Stefan.Wachter@gmx.de>, ysavourel@translate.com, xmlschema-dev@w3.org

> -----Original Message-----
> From:	Stefan Wachter [SMTP:Stefan.Wachter@gmx.de]
> Sent:	Thursday, September 19, 2002 7:07 AM
> To:	ysavourel@translate.com; xmlschema-dev@w3.org
> Subject:	Re: Question - Extending attribute values
> 
> Maybe you can define your extensibleTypeA as being a union type where one
> member type admits the built-in enumeration options and another member type
> allows arbitrary QNames:
> 
> <simpleType>
>   <union memberTypes="QName">
>     <simpleType>
>       <restriction base="NMTOKEN">
>         <enumeration value="v1"/>
>         <enumeration value="v2"/>
>       </restriction>
>     </simpleType>
>   </union>
> </simpleType>
> 
That's it...that's exactly how you do it.  Then, in the PSVI, you will have info regarding whether the value supplied was from the original enumeration or whether it was an "extension" value.

pvb
Received on Thursday, 19 September 2002 15:17:57 GMT

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