You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2004/05/06 18:02:05 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/parsers AbstractDOMParser.java
mrglavas 2004/05/06 09:02:05
Modified: java/src/org/apache/xerces/parsers AbstractDOMParser.java
Log:
Fixing Jira Bug #954:
http://nagoya.apache.org/jira/browse/XERCESJ-954
A DOMError of type "pi-base-uri-not-preserved" and severity
[warning] was not being raised in LSParser while parsing an
XML document when a processing instruction is encountered
in a location where the base URI of the processing instruction
can not be preserved.
W3C DOM test entities07 was failing because the error type
reported is "infoset-baseURI" instead of "pi-base-uri-not-preserved".
This is fixed thanks to the patch by Neil Delima. Also fixed up
handling of deferred DOM.
Revision Changes Path
1.110 +3 -3 xml-xerces/java/src/org/apache/xerces/parsers/AbstractDOMParser.java
Index: AbstractDOMParser.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/AbstractDOMParser.java,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- AbstractDOMParser.java 24 Feb 2004 23:15:56 -0000 1.109
+++ AbstractDOMParser.java 6 May 2004 16:02:05 -0000 1.110
@@ -1646,7 +1646,7 @@
baseURI = ((EntityReferenceImpl)fCurrentNode).getBaseURI ();
if (baseURI !=null && fErrorHandler != null) {
DOMErrorImpl error = new DOMErrorImpl ();
- error.fType = "infoset-baseURI";
+ error.fType = "pi-base-uri-not-preserved";
error.fRelatedData = baseURI;
error.fSeverity = DOMError.SEVERITY_WARNING;
fErrorHandler.getErrorHandler ().handleError (error);
@@ -1692,7 +1692,7 @@
if (baseURI != null && fErrorHandler != null) {
DOMErrorImpl error = new DOMErrorImpl ();
- error.fType = "infoset-baseURI";
+ error.fType = "pi-base-uri-not-preserved";
error.fRelatedData = baseURI;
error.fSeverity = DOMError.SEVERITY_WARNING;
fErrorHandler.getErrorHandler ().handleError (error);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org