RE: Question - Extending attribute values

> -----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 UTC