Re: namespaces for xs:QName values

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 UTC