[xslt] namespace declaration not copied



Hi,

say I have the following stylesheet:
--------------------------------------------------------
<?xml version="1.0"?>
                                                                                                                                                        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
<a xmlns:m="http://www.w3.org/1998/Math/MathML";>
  <a xmlns:m="http://www.w3.org/1998/Math/MathML"/>
</a>
</xsl:template>
                                                                                                                                                              </xsl:stylesheet>
---------------------------------------------------------

Whatever document it is applied to with xsltproc, I get:
---------------------------------------------------------
<?xml version="1.0"?>
<a xmlns:m="http://www.w3.org/1998/Math/MathML";>
  <a/>
</a>
---------------------------------------------------------

How come the innermost <a> element doesn't have the namespace
declaration? Isn't this in contrast with the XSLT spec (sec. 7.1.1)?

 -- Luca





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]