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=31010>. 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=31010 org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default namespaces definitions in produced string Summary: org.apache.cocoon.components.xscript.StringBufferContent Handler produces two default namespaces definitions in produced string Product: Cocoon 2 Version: 2.1.5 Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: blocks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi I have a Transformer that uses the org.apache.cocoon.components.xscript.StringBufferContentHandler to collect data before posting it to a website. (see between <message> tags below). The string generated has two default namespaces "book" and "fred". The fix is to around lines 118 in startElement. There needs to be some accounting for same name prefixes ("") but differing namespaces (book fred) and to use the one that is in scope. (i.e. only xmlns="fred" should only be generated). Thanks. <?xml version="1.0" encoding="UTF-8"?> <bookings xmlns="book" xmlns:post="poster"> <lineitemIds minvalue="105854" maxvalue="105874" xmlns=""/> <probateSearchLodgeBooking> <identification clientRef="salb" operatorInitials="s" username="MDEV"/> <post:post url="http://localhost:8888/samples/greg/echo"> <post:request-property name="Content-Type" value="text/xml"/> <post:message> <Orders xmlns="fred"> <Document> <insert> </insert> </Document> </Orders> </post:message> </post:post> </probateSearchLodgeBooking> </bookings>
