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

Unpredictable addition of xmlns=""

[EMAIL PROTECTED] changed:

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



------- Additional Comments From [EMAIL PROTECTED]  2003-06-26 21:04 -------
The output from Xalan-C is correct.  The version of xsltproc you are using has 
a bug in it, which you might want to report.  I have verified Xalan-C's output 
against XT, Saxon, and MSXSL, all of which produce the same output.

In your stylesheet, the literal result elements h3 and ul are not in any 
namespace.  When the processor serializes the result tree, it must make sure 
they do not end up in the default namespace, since they have no prefix.  Since 
they are children of an element which _is_ in the default namespace, Xalan must 
generate an xmlns="" namespace declaration so they remain in no namespace.

Remember, when a literal result element (or any other element, for that matter, 
is copied to the result tree, it keeps its namespace.  It doesn't magically end 
up in the default namespace just because it's a child of another element which 
is in the default namespace.

Reply via email to