W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > December 2009

Re: Namespace attribute for steps that take wrappers?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 01 Dec 2009 11:23:34 +0000
To: Florent Georges <fgeorges@fgeorges.org>
Cc: Norman Walsh <ndw@nwalsh.com>, public-xml-processing-model-comments@w3.org
Message-ID: <f5bpr6z7xah.fsf@hildegard.inf.ed.ac.uk>
Hash: SHA1

Florent Georges writes:

> 2009/12/1 Henry S. Thompson wrote:
>> Presumably you mean
>>   <p:rename match="/*" new-name="foo" new-namespace="http://..."/>
>   I can't speak about what Norm has meant, but in your above
> instruction, the processor does not know which prefix to bind to the
> namespace URI.  If you make new-name value a lexical QName, the
> processor have all the three pieces: the prefix, the namespace URI and
> the local name.
>   I think this is exactly the same context than with xsl:element's
> @name and @namespace <http://www.w3.org/TR/xslt20/#xsl-element>.

Hmmm.  I had forgotten about that precedent, if indeed I had ever
noticed it.  I am not sure it's a good one to follow -- it means
_inter alia_ that the value of the name attribute does not really have
type QName, because that type _requires_ there to be a namespace
declaration in scope. . .

I'm inclined to think this is a mistake in the XSLT specs (which I
realise can't now be fixed, as it goes back to XSLT 1.0).

- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.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]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Tuesday, 1 December 2009 11:24:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:27 UTC