Return-Path: Delivered-To: apmail-xml-xmlbeans-dev-archive@www.apache.org Received: (qmail 56347 invoked from network); 18 Jan 2004 08:00:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Jan 2004 08:00:00 -0000 Received: (qmail 14341 invoked by uid 500); 18 Jan 2004 07:59:37 -0000 Delivered-To: apmail-xml-xmlbeans-dev-archive@xml.apache.org Received: (qmail 14225 invoked by uid 500); 18 Jan 2004 07:59:36 -0000 Mailing-List: contact xmlbeans-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: xmlbeans-dev@xml.apache.org Delivered-To: mailing list xmlbeans-dev@xml.apache.org Received: (qmail 14212 invoked from network); 18 Jan 2004 07:59:36 -0000 Date: 18 Jan 2004 07:59:57 -0000 Message-ID: <20040118075957.10786.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: xmlbeans-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 26228] New: - Failure when used with xalan 2.5.2 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26228 Failure when used with xalan 2.5.2 Summary: Failure when used with xalan 2.5.2 Product: XMLBeans Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: XmlObject AssignedTo: xmlbeans-dev@xml.apache.org ReportedBy: mg@subscribe.audumla.net 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 ); } } - --------------------------------------------------------------------- To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/