DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28723>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28723 [PATCH] namespace issues with XMLDBTransformer [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] Summary|namespace issues with xmldb |[PATCH] namespace issues |components |with XMLDBTransformer ------- Additional Comments From [EMAIL PROTECTED] 2004-09-05 18:01 ------- It turns out the problem is that XMLDBTransformer was creating its output by directly getting a javax.xml.transform.TransformerHandler from the Xalan javax.xml.etc.*Factory. Unfortunately, that runs right into this problem: DEBUG (2004-09-05) 12:20.21:867 [sitemap.serializer.xml] (/cocoon/testQuery.xq) http-9090-Processor5/AbstractTextSerializer: Trax handler org.apache.xalan.transformer.TransformerIdentityImpl needs namespace attributes (will be slower). Cocoon compensates for this Xalan bug by having its AbstractTextSerializer insert xmlns attributes when Xalan doesn't. The attached patch changes XMLDBTransformer to use a Cocoon-configured Serializer instead of using javax.xml.transform.*/Xalan directly. By default it looks for a serializer named "xml"; you can override this in its configuration by adding a parameter "serliazer-name" (in case your XML Serializer is not named "xml"). This patch does NOT include http://issues.apache.org/bugzilla/show_bug.cgi?id=30849 which is an important patch to add to XMLDBTransformer.
