mrglavas    2005/09/07 18:48:22

  Modified:    java/src/org/apache/xerces/impl/xs/traversers
                        XSDocumentInfo.java
  Log:
  Fixing a bug. When the schema root provided is not the document element
  there may be namespace bindings in effect from ancestors of the schema
  root.  If we cannot find a URI mapping for a prefix in the context of the
  schema root we must look at the ancestors for a binding.
  
  Revision  Changes    Path
  1.22      +3 -2      
xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDocumentInfo.java
  
  Index: XSDocumentInfo.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDocumentInfo.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XSDocumentInfo.java       30 May 2005 04:17:12 -0000      1.21
  +++ XSDocumentInfo.java       8 Sep 2005 01:48:22 -0000       1.22
  @@ -87,8 +87,9 @@
       // to avoid memory leaks!
       XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, 
SymbolTable symbolTable)
                       throws XMLSchemaException {
  +        
           fSchemaElement = schemaRoot;
  -        fNamespaceSupport = new SchemaNamespaceSupport();
  +        fNamespaceSupport = new SchemaNamespaceSupport(schemaRoot, 
symbolTable);
           fNamespaceSupport.reset();
           fIsChameleonSchema = false;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to