knoaman 2003/01/17 07:35:57
Modified: c/src/xercesc/validators/schema GeneralAttributeCheck.cpp
Log:
Fix for attribute checking of schema declarations.
Revision Changes Path
1.12 +11 -6
xml-xerces/c/src/xercesc/validators/schema/GeneralAttributeCheck.cpp
Index: GeneralAttributeCheck.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/validators/schema/GeneralAttributeCheck.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- GeneralAttributeCheck.cpp 15 Jan 2003 18:33:11 -0000 1.11
+++ GeneralAttributeCheck.cpp 17 Jan 2003 15:35:57 -0000 1.12
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.12 2003/01/17 15:35:57 knoaman
+ * Fix for attribute checking of schema declarations.
+ *
* Revision 1.11 2003/01/15 18:33:11 knoaman
* Make sure that the namespace of schema declarations is the schema namespace.
*
@@ -426,15 +429,17 @@
continue;
}
- const XMLCh* attrVal = attribute->getNodeValue();
-
if (fgElemAttTable[elemContext][attNameId] & Att_Mask) {
attList[attNameId] = 1;
-
- if (attrVal && *attrVal) {
- validate(elem, attName, attrVal,
fgElemAttTable[elemContext][attNameId] & DV_Mask, schema);
- }
+ validate
+ (
+ elem
+ , attName
+ , attribute->getNodeValue()
+ , fgElemAttTable[elemContext][attNameId] & DV_Mask
+ , schema
+ );
}
else {
schema->reportSchemaError(elem, XMLUni::fgXMLErrDomain,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]