W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

RE: QName data type: default namespace

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 18 Jul 2002 17:38:08 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679FA7@daemsg02.software-ag.de>
To: ht@cogsci.ed.ac.uk, "Kay, Michael" <Michael.Kay@softwareag.com>
Cc: www-xml-schema-comments@w3.org

Thanks for the information.

This proposal means that it may be impossible to use the QName data type in
a schema for XSLT stylesheets, since our names do not use the default
namespace when unqualified (they behave like attribute names, not like
element names).

Since XSLT is one of the main users of QNames as attribute values, this
seems rather a shame...

We could still use xs:QName to achieve validation, but the typed value
produced by validation would be wrong.

Michael Kay

> -----Original Message-----
> From: ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk] 
> Sent: 18 July 2002 12:28
> To: Kay, Michael
> Cc: www-xml-schema-comments@w3.org
> Subject: Re: QName data type: default namespace
> 
> 
> QName interpretation is underspecified in the Datatypes REC, 
> and this will be corrected.  The issues list contains a 
> proposed resolution [1] to this problem which has been 
> ratified by the WG, and I'm responsible for drafting the 
> erratum which will settle the matter.  Here's the relevant 
> section from the above reference:
> 
>   This should be clarified in the REC -- the intention is that
>   unprefixed names are qualified iff there is a default namespace
>   declaration in scope, i.e. as per element names, not attribute
>   names, in XML 1.0 plus Namespaces.
> 
>   The definition should also make clear that the value space includes
>   pairs of "no known namespace", local name, which correspond to
>   unprefixed QNames when no default declaration is in scope.
> 
> ht
> 
> [1] http://www.w3.org/2001/05/xmlschema-rec-comments#pfiQName
> -- 
>   Henry S. Thompson, HCRC Language Technology Group, 
> University of Edinburgh
>           W3C Fellow 1999--2002, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 
> 131 650-4440
> 	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
> 		     URL: http://www.ltg.ed.ac.uk/~ht/
>  [mail really from me _always_ has this .sig -- mail without 
> it is forged spam]
> 
Received on Thursday, 18 July 2002 11:38:14 GMT

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