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=12114>. 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=12114 Redirect does not output xmlns declaration ------- Additional Comments From [EMAIL PROTECTED] 2002-09-27 12:29 ------- You're right, my example was lacking something, sorry about that. Here is a complete one, which I actually tested: [xsl] --8<------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:redirect="org.apache.xalan.lib.Redirect" xmlns:f="foo" extension-element-prefixes="redirect" > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="f:root"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="f:test"> <redirect:write file="newfile.xml"> <xsl:copy/> </redirect:write> </xsl:template> </xsl:stylesheet> --8<------------------------------------ The source file is the same. Now there are 2 cases: 1. As it is, the transformation outputs xmlns="foo" on the "root" element (standard output). But not on the "test" element (redirected output). 2. Remove the template that matches "f:root". Now, the test element gets its xmlns="foo", probably because it becomes the root element of the whole output tree.
