You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2001/10/16 19:01:58 UTC
cvs commit: xml-xerces/c/src/validators/schema GeneralAttributeCheck.cpp
knoaman 01/10/16 10:01:58
Modified: c/src/validators/schema GeneralAttributeCheck.cpp
Log:
Extra constraint checking.
Revision Changes Path
1.8 +18 -2 xml-xerces/c/src/validators/schema/GeneralAttributeCheck.cpp
Index: GeneralAttributeCheck.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/schema/GeneralAttributeCheck.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- GeneralAttributeCheck.cpp 2001/10/15 19:29:26 1.7
+++ GeneralAttributeCheck.cpp 2001/10/16 17:01:58 1.8
@@ -56,6 +56,9 @@
/*
* $Log: GeneralAttributeCheck.cpp,v $
+ * Revision 1.8 2001/10/16 17:01:58 knoaman
+ * Extra constraint checking.
+ *
* Revision 1.7 2001/10/15 19:29:26 knoaman
* Add support for <notation> declaration.
*
@@ -827,8 +830,21 @@
elemAttrs = fElementMap->get(elemName, prefixContext);
if (!elemAttrs) {
- // We should report an error
- return;
+
+ // Try ref, some local declaration can have only a ref
+ if (prefixContext == localNamePrefix) {
+ elemAttrs = fElementMap->get(elemName, localRefPrefix);
+
+ if (!elemAttrs) {
+ return;
+ }
+
+ prefixContext = localRefPrefix;
+ }
+ else {
+ // We should report an error
+ return;
+ }
}
unsigned int size = elemAttrs->size();
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org