[ http://issues.apache.org/jira/browse/COCOON-1255?page=all ]
Jörg Heinicke updated COCOON-1255: ---------------------------------- What is actually the problem? This looks absolutely ok. > org.apache.cocoon.components.xscript.StringBufferContentHandler produces two > default namespaces definitions in produced string > ------------------------------------------------------------------------------------------------------------------------------ > > Key: COCOON-1255 > URL: http://issues.apache.org/jira/browse/COCOON-1255 > Project: Cocoon > Issue Type: Bug > Components: Blocks: XSP > Affects Versions: 2.1.5 > Environment: Operating System: All > Platform: All > Reporter: Greg Konstantinidis > Assigned To: Cocoon Developers Team > > 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> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
