cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-3193) CachingXmlEventWriter.NSContext supports only one prefix for a namespace (backed by map)
Date Sat, 08 Jan 2011 03:40:46 GMT

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

Daniel Kulp resolved CXF-3193.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.2

> CachingXmlEventWriter.NSContext supports only one prefix for a namespace (backed by map)
> ----------------------------------------------------------------------------------------
>
>                 Key: CXF-3193
>                 URL: https://issues.apache.org/jira/browse/CXF-3193
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.2
>         Environment: redhat tomcat
>            Reporter: Peter
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.3.2
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> CachingXmlEventWriter.NSContext supports only one prefix for a namespace. As a result
we have DOUBLE declaration of the SAMEprefix in an element (output xml). We use xmlbeans binding
so that org.apache.cxf.xmlbeans.DataWriterImpl uses StaxUtils.copy. This StaxUtils.copy.writeStartElement
writes namespaces from elements and attributes. If we have many different prefixes for the
same namespace and the prefixes are used also in attributes then StaxUtils.copy.writeStartElement
outputs DOUBLE declaration:
> input
> <a:elem1 a:xmlns="test" b:xmlns="test" a:attr1="value">
> output
> <a:elem1 a:xmlns="test" b:xmlns="test" a:attr1="value" a:xmlns="test">
> invalid: double a:xmlns="test" declaration

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message