Author: borisk
Date: Mon Nov 23 12:42:32 2009
New Revision: 883322
URL: http://svn.apache.org/viewvc?rev=883322&view=rev
Log:
Save the scope count to the grammar object in case we will be adding to this
schema (multi-import case).
Modified:
xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp
Modified: xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp?rev=883322&r1=883321&r2=883322&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp Mon Nov 23
12:42:32 2009
@@ -234,6 +234,12 @@
preprocessSchema(schemaRoot, schemaURL, multipleImport);
doTraverseSchema(schemaRoot);
+
+ // Store the scope count in case we need to add more to this
+ // grammar (multi-import case). schemaGrammar and fSchemaGrammar
+ // should be the same here.
+ //
+ fSchemaGrammar->setScopeCount (fScopeCount);
}
}
@@ -291,7 +297,6 @@
void TraverseSchema::preprocessSchema(DOMElement* const schemaRoot,
const XMLCh* const schemaURL,
bool multipleImport) {
-
if (!multipleImport) {
// Make sure namespace binding is defaulted
const XMLCh* rootPrefix = schemaRoot->getPrefix();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]