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=22808>.
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=22808

xsl:copy doesn't copy namespace nodes

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2003-09-03 23:28 -------
I think that the behavior is correct.

This is actually an optimization we have. I think the optimization is correct.
According to http://www.w3.org/TR/xslt#section-XML-Output-Method
one can see that the default output is XML. 
In your test-case the namespace http://www.w3.org/1999/xhtml
(as Henry mentioned it actually should have prefix xhtml)
is NOT REFERENCED. We wouldn’t output the namespace declaration
because it wouldn’t change the resulting xml file functionally the same.

If you try an input document (with the same xsl file) where a namespace is
referenced e.g.

<?xml version="1.0"?>
<xxx xmlns:ZZZZZZ="YYYYYYY">
<ZZZZZZ:aaa> </ZZZZZZ:aaa>
</xxx>

you would see the namespace declaration in the output xml file.
Removing the reference  to namespace YYYYYYY (removing line <ZZZZZZ:aaa/>) would
remove the namespace declaration. 

I am resolving the bug as invalid. Reopen it, if you are not
satisfied with my explanation.

Reply via email to