neilg 2003/12/02 09:31:42 Modified: c/src/xercesc/framework/psvi PSVIAttribute.cpp Log: since there are certain things, such as schemaLocation attributes, that have a datatype and which we nonetheless do not validate, make canonical-value production dependent on validity being valid Revision Changes Path 1.6 +4 -1 xml-xerces/c/src/xercesc/framework/psvi/PSVIAttribute.cpp Index: PSVIAttribute.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/PSVIAttribute.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- PSVIAttribute.cpp 28 Nov 2003 22:41:04 -0000 1.5 +++ PSVIAttribute.cpp 2 Dec 2003 17:31:42 -0000 1.6 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.6 2003/12/02 17:31:42 neilg + * since there are certain things, such as schemaLocation attributes, that have a datatype and which we nonetheless do not validate, make canonical-value production dependent on validity being valid + * * Revision 1.5 2003/11/28 22:41:04 neilg * fix compilation error * @@ -105,7 +108,7 @@ fDefaultValue = defaultValue; fIsSpecified = isSpecified; fMemoryManager->deallocate((void *)fCanonicalValue); - if(normalizedValue && dv) + if(normalizedValue && dv && fValidityState == VALIDITY_STATE::VALID) fCanonicalValue = (XMLCh *)dv->getCanonicalRepresentation(normalizedValue, fMemoryManager); else fCanonicalValue = 0;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]