xs:QName in Schema 1.1

I noticed that in the draft schema 1.1 requirement there is nothing relating
to the QName data type, which is one of the most problematic data types of
all.

Here are some suggestions:

1. Clarify whether the namespace URI of a QName that is written with no
prefix is the null namespace or the default namespace, or whether it's
entirely up to the application to decide. Possibly, allow this to be
controlled via a facet.

2. Consider providing a lexical representation of QNames that uses the
namespace URI and local name rather than a prefix and local name. For
example

   "{uri}localname"

This would allow applications to construct QName values that don't depend on
the in-scope namespace declarations and that can be safely copied-and-pasted
from one XML fragment to another. It would remove the anomaly that the QName
data type is currently the only data type where a lexical representation
cannot be computed as a function of the value-space value.

Make this the canonical lexical representation of a QName.

This representation could be disallowed in any particular schema by use of
the pattern facet.


Michael Kay
Software AG

Received on Wednesday, 4 December 2002 09:53:08 UTC