I've got a stylesheet, right:

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

<xsl:template match="/">
<foo xmlns="http://superfoo.com";>
<q />
<xsl:call-template name="fool" />
<q />
</foo>
</xsl:template>

<xsl:template name="fool">
<q />
</xsl:template>

</xsl:stylesheet>


Run on any piece of XML, and it gives:

<?xml version="1.0" encoding="UTF-8"?>
<foo xmlns="http://superfoo.com";><q/><q xmlns=""/><q/></foo>

What's up with the xmlns="" ? Why does the second q element (created from inside the called-template) fall out of the default namespace?

(Comparison- this doesn't happen with xsltproc).

Any help? Have I found a bug?

I'm using Xalan 1.5.0 rc1 with Xerces-C 2.2.0.

David



Reply via email to