You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/12/28 17:46:52 UTC
svn commit: r359558 -
/xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
Author: cargilld
Date: Wed Dec 28 08:46:49 2005
New Revision: 359558
URL: http://svn.apache.org/viewcvs?rev=359558&view=rev
Log:
Schema fixes for union of union.
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
Modified: xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp?rev=359558&r1=359557&r2=359558&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp Wed Dec 28 08:46:49 2005
@@ -337,8 +337,8 @@
unsigned int memberSize = fMemberTypeValidators->size();
for (unsigned int i=0; i < memberSize; i++) {
-
- if (fMemberTypeValidators->elementAt(i)->getType() == DatatypeValidator::Union)
+ if ((fMemberTypeValidators->elementAt(i)->getType() == DatatypeValidator::Union) &&
+ (fMemberTypeValidators->elementAt(i) == toCheck))
return false;
if (fMemberTypeValidators->elementAt(i)->isSubstitutableBy(toCheck)) {
return true;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org