Index: impl/xs/XSDDescription.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/XSDDescription.java,v
retrieving revision 1.5
diff -u -r1.5 XSDDescription.java
--- impl/xs/XSDDescription.java	15 Mar 2002 23:01:57 -0000	1.5
+++ impl/xs/XSDDescription.java	17 Mar 2002 20:19:46 -0000
@@ -125,7 +125,7 @@
     public final static short CONTEXT_XSITYPE   = 7;
 
     // REVISIT: write description of these fields	
-    protected short fContextType;
+    public short fContextType;
     protected String fTargetNamespace;
     protected String [] fLocationHints ;
     protected QName fTriggeringComponent;
Index: parsers/XMLGrammarCachingConfiguration.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/parsers/XMLGrammarCachingConfiguration.java,v
retrieving revision 1.4
diff -u -r1.4 XMLGrammarCachingConfiguration.java
--- parsers/XMLGrammarCachingConfiguration.java	3 Mar 2002 15:22:56 -0000	1.4
+++ parsers/XMLGrammarCachingConfiguration.java	17 Mar 2002 20:19:46 -0000
@@ -306,8 +306,10 @@
        // Should check whether the grammar with this namespace is already in
        // the grammar resolver. But since we don't know the target namespace
        // of the document here, we leave such check to XSDHandler
-       SchemaGrammar grammar = fSchemaHandler.parseSchema(null, is,
-                                                          XSDDescription.CONTEXT_PREPARSE);
+XSDDescription fXSDDescription = new XSDDescription() ;
+fXSDDescription.reset();
+fXSDDescription.fContextType = XSDDescription.CONTEXT_PREPARSE;
+       SchemaGrammar grammar = fSchemaHandler.parseSchema(is, fXSDDescription);
 
        if (getFeature(SCHEMA_FULL_CHECKING)) {
            XSConstraints.fullSchemaChecking(fXSGrammarBucket, fSubGroupHandler, fCMBuilder, fErrorReporter);
