Return-Path: Delivered-To: apmail-xml-xerces-cvs-archive@www.apache.org Received: (qmail 60527 invoked from network); 19 Feb 2004 21:47:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Feb 2004 21:47:20 -0000 Received: (qmail 71324 invoked by uid 500); 19 Feb 2004 21:47:08 -0000 Delivered-To: apmail-xml-xerces-cvs-archive@xml.apache.org Received: (qmail 71278 invoked by uid 500); 19 Feb 2004 21:47:07 -0000 Mailing-List: contact xerces-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xerces-cvs@xml.apache.org Received: (qmail 71262 invoked from network); 19 Feb 2004 21:47:07 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 19 Feb 2004 21:47:07 -0000 Received: (qmail 60509 invoked by uid 1678); 19 Feb 2004 21:47:19 -0000 Date: 19 Feb 2004 21:47:19 -0000 Message-ID: <20040219214719.60506.qmail@minotaur.apache.org> From: mrglavas@apache.org To: xml-xerces-cvs@apache.org Subject: cvs commit: xml-xerces/java/src/org/apache/xerces/impl XML11NSDocumentScannerImpl.java XMLNSDocumentScannerImpl.java 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 mrglavas 2004/02/19 13:47:18 Modified: java/src/org/apache/xerces/impl XML11NSDocumentScannerImpl.java XMLNSDocumentScannerImpl.java Log: Fixing Bug #27087: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27087 Andy noticed we were reporting null for an empty string prefix in endElement. We weren't updating the prefix for the QName on the element stack. Revision Changes Path 1.8 +3 -1 xml-xerces/java/src/org/apache/xerces/impl/XML11NSDocumentScannerImpl.java Index: XML11NSDocumentScannerImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XML11NSDocumentScannerImpl.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- XML11NSDocumentScannerImpl.java 11 Feb 2004 18:55:20 -0000 1.7 +++ XML11NSDocumentScannerImpl.java 19 Feb 2004 21:47:17 -0000 1.8 @@ -244,6 +244,8 @@ if (fElementQName.prefix == null && fElementQName.uri != null) { fElementQName.prefix = XMLSymbols.EMPTY_STRING; + // making sure that the object in the element stack is updated too. + fCurrentElement.prefix = XMLSymbols.EMPTY_STRING; } if (fElementQName.prefix != null && fElementQName.uri == null) { fErrorReporter.reportError( 1.20 +3 -1 xml-xerces/java/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java Index: XMLNSDocumentScannerImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- XMLNSDocumentScannerImpl.java 11 Feb 2004 18:55:20 -0000 1.19 +++ XMLNSDocumentScannerImpl.java 19 Feb 2004 21:47:17 -0000 1.20 @@ -238,6 +238,8 @@ if (fElementQName.prefix == null && fElementQName.uri != null) { fElementQName.prefix = XMLSymbols.EMPTY_STRING; + // making sure that the object in the element stack is updated too. + fCurrentElement.prefix = XMLSymbols.EMPTY_STRING; } if (fElementQName.prefix != null && fElementQName.uri == null) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-cvs-help@xml.apache.org