W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2003

enumerated and patterned QNames

From: Adam van den Hoven <AvandenHoven@cucbc.com>
Date: Thu, 30 Oct 2003 16:57:50 -0800
Message-ID: <24B5BB9D2057E546B6CFBAB6A46C974308EF93@c2kmail1.cucbc.com>
To: <xmlschema-dev@w3.org>

Hey all, 

I want to make an enumeration for a simple type based on a QName. I assume that I can do the following:
<xs:restriction base="xs:QName" xmlns:md="http://www.example.net/schema/qnames#">
	<xs:enumeration value="md:foo" />
	<xs:enumeration value="md:bar" />
	<xs:enumeration value="md:jim" />
</xs:restriction>

But I'm not really sure how I can do a pattern to do something similar. 

Adam
Received on Thursday, 30 October 2003 19:57:51 GMT

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