You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2007/04/27 00:48:20 UTC
[jira] Resolved: (XMLBEANS-13) Failure when used with xalan 2.5.2
[ https://issues.apache.org/jira/browse/XMLBEANS-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Danner resolved XMLBEANS-13.
----------------------------------
Resolution: Duplicate
Assignee: Radu Preotiuc-Pietro (was: Jacob Danner)
Looks like a duplicate of
XMLBEANS-187
https://issues.apache.org/jira/browse/XMLBEANS-187
Using 187 as the tracking issue as it contains a patch
> Failure when used with xalan 2.5.2
> ----------------------------------
>
> Key: XMLBEANS-13
> URL: https://issues.apache.org/jira/browse/XMLBEANS-13
> Project: XMLBeans
> Issue Type: Bug
> Components: XmlObject
> Affects Versions: unspecified
> Environment: Operating System: Other
> Platform: Other
> Reporter: Marius Gleeson
> Assigned To: Radu Preotiuc-Pietro
>
> XmlBeans sax content handler fails when used as a source for xalan 2.5.2. This
> is caused when the saver creates the xmlns attributes but does not assign a
> namespace or localname.
> The following code seems to solve the problem
> private void addNamespaceAttr ( String prefix, String uri )
> {
> try
> {
> _contentHandler.startPrefixMapping( prefix, uri );
> }
> catch ( SAXException e )
> {
> throwSaxException( e );
> }
> if (prefix.length() == 0)
> _attributes.addAttribute( "http://www.w3.org/2000/xmlns/",
> prefix, "xmlns", "CDATA", uri );
> else
> {
> _attributes.addAttribute(
> "http://www.w3.org/2000/xmlns/", prefix, "xmlns:" +
> prefix, "CDATA", uri );
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org