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