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/25 17:30:16 UTC
[jira] Assigned: (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 reassigned XMLBEANS-13:
------------------------------------
Assignee: Jacob Danner (was: Yana Kadiyska)
> 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: Jacob Danner
>
> 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