W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: [XSLT2] 11.1.4 Namespace Aliasing: #default and attributes

From: Oliver Becker <obecker@informatik.hu-berlin.de>
Date: Tue, 2 Sep 2003 12:54:51 +0200 (MEST)
Message-Id: <200309021054.h82AspTa002491@mail.informatik.hu-berlin.de>
To: public-qt-comments@w3.org
Cc: saxon-help@lists.sourceforge.net

[CC'ed to the Saxon list]

> I don't think it's relevant that the default namespace declaration doesn't
> apply to attributes. xsl:namespace-alias is changing the namespace of
> elements and attributes that are in a particular namespace, it's not
> relevant how they got there.

So you're saying that the result of

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <xsl:namespace-alias stylesheet-prefix="#default" result-prefix="out" />

  <xsl:template match="/">
    <foo att="val" />


should be
<out:foo out:att="val" xmlns:out="urn:out" />


Then unfortunately both current Saxons as well as Xalan-J do it wrong.
(They still have att="val" in the result.)


|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
Received on Tuesday, 2 September 2003 06:54:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:49 UTC