Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: list of pre-defined value

From: "Michael Kay" <mike@--------.--->
To: "'dirk dewolf'" <dirkdewolf78@-------.--->, <xmlschema-dev@--.--->
Date: 1/7/2006 5:37:00 PM
Define an atomic type derived from NMTOKEN (or simply from string) that
enumerates the allowed values; then define a list type whose item type is
that atomic type.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of dirk dewolf
> Sent: 07 January 2006 12:40
> To: xmlschema-dev@w...
> Subject: list of pre-defined value
> 
> 
> How can I define a space separated list of values for an 
> attribute using 
> NMTOKENS. The values one may use must be predefined.
> 
> The below code does not seem to work. The attribute value 
> does not allow for 
> the containment of a LIST of the values; yet appears to be 
> restricted to one 
> value only.
> 
> <xs:simpleType>
> <xs:restriction base="xs:NMTOKENS">
> <xs:enumeration value="value1"/>
> <xs:enumeration value="value2"/>
> <xs:enumeration value="value3"/>
> <xs:enumeration value="value4"/>
> <xs:enumeration value="value5"/>
> </xs:restriction>
> </xs:simpleType>
> 
> many thanks
> d.
> 
> _________________________________________________________________
> Free blogging with MSN Spaces  http://spaces.msn.com/?mkt=nl-be
> 
> 
> 
> 



From john@s... Sun Jan 08 21:13:43 2006
Received: from maggie.w3.org ([193


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent