Hi,
Please find the attached patch for XMLSchemaValidator.
ignorableWhitespace() is not called when the passed string is whitespace.
Hence "dom/include-ignorable-whitespace" feature [false] doesn't work.
Thanks,
Pavani
--
Pavani Mukthipudi
Sun Microsystems Inc.
Phone: 080 - 2298989 Extn: 87390
Index: XMLSchemaValidator.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java,v
retrieving revision 1.22
diff -u -r1.22 XMLSchemaValidator.java
--- XMLSchemaValidator.java 2001/12/06 22:54:57 1.22
+++ XMLSchemaValidator.java 2001/12/07 10:15:41
@@ -563,7 +563,12 @@
handleCharacters(text);
// call handlers
if (fDocumentHandler != null) {
- fDocumentHandler.characters(text, augs);
+ if (fSawCharacters) {
+ fDocumentHandler.characters(text, augs);
+ }
+ else {
+ fDocumentHandler.ignorableWhitespace(text, augs);
+ }
}
} // characters(XMLString)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]