cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Closed: (COCOON-1255) org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default namespaces definitions in produced string
Date Sat, 06 Jan 2007 16:30:27 GMT

     [ https://issues.apache.org/jira/browse/COCOON-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jörg Heinicke closed COCOON-1255.
---------------------------------

    Resolution: Invalid

Closing issue as I can't see any error and got no reaction on query.

> org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default
namespaces definitions in produced string
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1255
>                 URL: https://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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message