DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5406>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5406

namespace node is not copied properly by xsl:copy-of

           Summary: namespace node is not copied properly by xsl:copy-of
           Product: XalanC
           Version: 1.2.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When trying to copy namespace node using xsl:copy-of xmlns: prefix is missed in 
the output. What follows is a small example illustrating the problem:

My ns-test.xml:
<?xml version = "1.0" encoding = "UTF-8"?>
<a xmlns:n1="foo-URI"/>

My ns-test.xsl:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
<xsl:template match="/">
        <b>
                <xsl:copy-of select="a/namespace::*"/>
        </b>
</xsl:template>
</xsl:transform>

The command testXSLT -IN ns-test.xml -XSL ns-test.xsl produces the following 
output:
========= Parsing ns-test.xsl ==========
Parse of ns-test.xsl took 30 milliseconds
========= Parsing ns-test.xml ==========
Parse of ns-test.xml took 10 milliseconds
=============================
Transforming...
<?xml version="1.0" encoding="UTF-8"?>
<b n1="foo-URI"/>
transform took 10 milliseconds

Total time took 20 milliseconds

Reply via email to