You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2007/01/06 17:30:27 UTC

[jira] Closed: (COCOON-1255) org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default namespaces definitions in produced string

     [ 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