W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2001

Re: namespaces for xs:QName values

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 27 Nov 2001 17:48:48 +0000
Message-ID: <152170590776.20011127174848@jenitennison.com>
To: "Martin Gudgin" <marting@develop.com>
CC: www-xml-schema-comments@w3.org
Hi Martin,

> What wasn't clear to me from your note was whether you were also
> saying that it is impossible to define prefix independent QName
> derived types. You can certainly define QName derived types that are
> not prefix dependant;
>
> <xs:simpleType name='foo' xmlns:xs='http://www.w3.org/2001/XMLSchema'
>                           xmlns:p='urn:example-org:stuff' >
>   <xs:restriction base='xs:QName' >
>     <xs:enumeration value='p:bar' />
>     <xs:enumeration value='p:baz' />
>     <xs:enumeration value='p:quux' />
>   </xs:restriction>
> </xs:simpleType>
>
> Such a type specifies the namespace names and local names that are
> valid for this type without restricting the prefix used in the
> instance document.

Sure. I didn't mean to imply that you couldn't enumerate a set of
possible QNames, just that you couldn't say "any local name in this
namespace".

Thanks,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Tuesday, 27 November 2001 12:50:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:57 GMT