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

[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"
                xmlns:out="urn:out"
                version="1.0">

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

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

</xsl:stylesheet>

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

Correct?

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

Cheers,
Oliver


/-------------------------------------------------------------------\
|  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