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 2002/01/02 20:50:34 UTC
cvs commit: xml-xerces/c/src/validators/schema GeneralAttributeCheck.cpp
knoaman 02/01/02 11:50:34
Modified: c/src/validators/schema GeneralAttributeCheck.cpp
Log:
Fix for error message when checking for attributes with a namespace prefix.
Revision Changes Path
1.16 +9 -5 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.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- GeneralAttributeCheck.cpp 13 Dec 2001 18:08:39 -0000 1.15
+++ GeneralAttributeCheck.cpp 2 Jan 2002 19:50:34 -0000 1.16
@@ -56,6 +56,9 @@
/*
* $Log: GeneralAttributeCheck.cpp,v $
+ * Revision 1.16 2002/01/02 19:50:34 knoaman
+ * Fix for error message when checking for attributes with a namespace prefix.
+ *
* Revision 1.15 2001/12/13 18:08:39 knoaman
* Fix for bug 5410.
*
@@ -961,11 +964,7 @@
continue;
}
-
// for attributes with namespace prefix
- attName = attribute.getLocalName();
- aBuffer.set(attName.rawBuffer(), attName.length());
-
DOMString attrURI = attribute.getNamespaceURI();
if (attrURI != 0 && attrURI.length() != 0) {
@@ -984,7 +983,10 @@
XMLBuffer tmpBuf(128);
tmpBuf.set(attrURI.rawBuffer(), attrURI.length());
- DatatypeValidator* dv = schema->getDatatypeValidator(tmpBuf.getRawBuffer(), aBuffer.getRawBuffer());
+ attName = attribute.getLocalName();
+ aBuffer.set(attName.rawBuffer(), attName.length());
+ tmpName = aBuffer.getRawBuffer();
+ DatatypeValidator* dv = schema->getDatatypeValidator(tmpBuf.getRawBuffer(), tmpName);
if (dv) {
@@ -1009,6 +1011,8 @@
continue;
}
+ attName = attribute.getLocalName();
+ aBuffer.set(attName.rawBuffer(), attName.length());
tmpName = aBuffer.getRawBuffer();
// check whether this attribute is allowed
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org