You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2011/04/18 08:18:39 UTC
svn commit: r1094246 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Author: mukulg
Date: Mon Apr 18 06:18:39 2011
New Revision: 1094246
URL: http://svn.apache.org/viewvc?rev=1094246&view=rev
Log:
committing slight fix for schema 1.1 assertions processing for xs:any wildcard processing with processContents="skip" mode (character data was not added to the assertions XDM tree for this case, prior to this fix).
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=1094246&r1=1094245&r2=1094246&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Mon Apr 18 06:18:39 2011
@@ -1818,8 +1818,13 @@ public class XMLSchemaValidator
// returns the normalized string if possible, otherwise the original string
XMLString handleCharacters(XMLString text) {
- if (fSkipValidationDepth >= 0)
+ if (fSkipValidationDepth >= 0) {
+ // delegate to assertions validator subcomponent
+ if (fSchemaVersion == Constants.SCHEMA_VERSION_1_1) {
+ fAssertionValidator.characterDataHandler(text);
+ }
return text;
+ }
fSawText = fSawText || text.length > 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org