[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Resolved: (XMLBEANS-13) Failure when used with xalan 2.5.2
From: "Jacob Danner (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2007-04-26 22:48:20
Message-ID: 3805818.1177627700396.JavaMail.jira () brutus
[Download RAW message or body]
[ 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic