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 2010/07/19 22:56:37 UTC

svn commit: r965631 - /xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java

Author: mrglavas
Date: Mon Jul 19 20:56:37 2010
New Revision: 965631

URL: http://svn.apache.org/viewvc?rev=965631&view=rev
Log:
Fixing a bug. xs:anySimpleType or xs:anyAtomicType do not have any facets, however the schema validator was normalizing white space for these types using the collapse rules. There's still an issue with the XSModel (returning a whitespace facet for xs:anySimpleType / xs:anyAtomicType) but at least the validator has the correct behaviour now.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java?rev=965631&r1=965630&r2=965631&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java Mon Jul 19 20:56:37 2010
@@ -327,9 +327,12 @@ public class XSSimpleTypeDecl implements
         fVariety = VARIETY_ATOMIC;
         fValidationDV = validateDV;
         fFacetsDefined = FACET_WHITESPACE;
-        if (validateDV == DV_STRING) {
+        if (validateDV == DV_ANYSIMPLETYPE ||
+            validateDV == DV_ANYATOMICTYPE ||
+            validateDV == DV_STRING) {
             fWhiteSpace = WS_PRESERVE;
-        } else {
+        } 
+        else {
             fWhiteSpace = WS_COLLAPSE;
             fFixedFacet = FACET_WHITESPACE;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org