[libxml2] 627987 Fix XSD IDC errors in imported schemas



commit c84e863c9c8b5f251f0c3f342f1c016fdf5963b6
Author: Jim Panetta <panetta slac stanford edu>
Date:   Wed Nov 3 21:05:18 2010 +0100

    627987 Fix XSD IDC errors in imported schemas
    
    Fix XSD IDC references when xsi:schemalocation is used for
    referencing the validation schemas

 xmlschemas.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/xmlschemas.c b/xmlschemas.c
index 9c86c75..5de7ca5 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -26811,6 +26811,11 @@ xmlSchemaValidateElem(xmlSchemaValidCtxtPtr vctxt)
 	    vctxt->skipDepth = 0;
 	    return(ret);
 	}
+        /*
+         * Augment the IDC definitions for the main schema and all imported ones
+         * NOTE: main schema is the first in the imported list
+         */
+        xmlHashScan(vctxt->schema->schemasImports,(xmlHashScanner)xmlSchemaAugmentImportedIDC, vctxt);
     }
     if (vctxt->depth > 0) {
 	/*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]