[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]