Incorrect namespace issue with xsl copy/copy-of following DOM cloneNode
-----------------------------------------------------------------------

                 Key: XALANJ-2467
                 URL: https://issues.apache.org/jira/browse/XALANJ-2467
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in 
Xalan projects.  Anybody can view the issue.)
          Components: Xalan-interpretive
    Affects Versions: 2.7.1
         Environment: Windows XP
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode)
            Reporter: Gerard Smyth


There appears to be an issue with the standard Xalan (interpretive) transformer 
with regards to the namespaces output when using the xsl:copy or xsl:copy-of 
statements.
This only seems to occur when transforming from/to a DOM where the node in 
question has been created using the cloneNode() (or importNode()) function.

The attached example code, along with XSL and input document should replicate 
the problem.  
The output from the copy/copy-of statements should be:

<container xmlns="http://www.example.com/ns2";>
<data></data>
</container>

But instead it gives:

<container xmlns="http://www.example.com/ns2";>
<data xmlns="http://www.example.com/ns3";></data>
</container>

(Incorrect namespace on the data tag)

This problem does not occur with Xalan 2.6, or using XSLTC under 2.7.1
It may also be related to the problem reported under Issue 2219 
(https://issues.apache.org/jira/browse/XALANJ-2219?focusedCommentId=12415935#action_12415935)
 due to the similar type of output problem.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to