You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2007/02/06 22:24:07 UTC

svn commit: r504297 - /xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp

Author: amassari
Date: Tue Feb  6 13:24:07 2007
New Revision: 504297

URL: http://svn.apache.org/viewvc?view=rev&rev=504297
Log:
Allow IDs to be referenced by IDREFs

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp?view=diff&rev=504297&r1=504296&r2=504297
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/identity/ValueStore.cpp Tue Feb  6 13:24:07 2007
@@ -221,7 +221,9 @@
 
     // are the validators equal?
     // As always we are obliged to compare by reference...
-    if (dv1 == dv2) {
+    if (dv1 == dv2  || 
+        ((dv1->getType()==DatatypeValidator::ID || dv1->getType()==DatatypeValidator::IDREF) && 
+         (dv2->getType()==DatatypeValidator::ID || dv2->getType()==DatatypeValidator::IDREF))) {
         return ((dv1->compare(val1, val2, fMemoryManager)) == 0);
     }
 



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