Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
CurrentCVS
-
None
-
all
Description
for an input document : <doc><str/></doc>
and the stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="doc">
<bar xmlns:foo="foo-namespace">
<xsl:apply-templates/>
</bar>
</xsl:template>
<xsl:template match="str">
<xsl:element name="foo:boo"/>
</xsl:template>
</xsl:stylesheet>
According to the spec XSLT1.0, 7.1.2 :"If the namespace attribute is not present then the QName is expanded into an expanded-name using the namespace declarations in effect for the xsl:element element, including any default namespace declaration." So Xalan shouldn't be able to resolve the "foo" prefix in <xsl:element name="foo:boo"/>