Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.6
-
None
-
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
-
None
Description
Another OASIS test suite discrepancy. This time libxslt agrres with Xalan, but on reflection I think the test case is correct and Xalan and libxslt are wrong.
The test case is:
xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Purpose: Test case for bug 70935 -->
<xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<test><xsl:copy-of select="document('')/xsl:stylesheet/namespace::xsl"/></test>
</xsl:template>
</xsl:stylesheet>
The expected output is:
<test xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</test>
The actual output is
<test>
</test>
The namespace node has not been copied.
Attachments
Attachments
Issue Links
- is duplicated by
-
XALANJ-2305 problem with xsl:copy-of while copying namespace nodes
- Resolved