You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Sebastien Sahuc <ss...@imediation.com> on 2000/12/19 11:14:30 UTC

[Xerces 1.2.3][patch] EntityResolver not correctly tranmitted to TraverseSchema object

I'm reposting it, since it hasn't got fixed in current CVS branch. Could
someone commit it  ?

Thanks,

[Xerces 1.2.3[patch] EntityResolver not correctly tranmitted to
TraverseSchema object 

Indeed in the file
'org/apache/xerces/validators/schema/TraverseSchema.java', at line 1025 
( method 'private void traverseImport(Element importDecl)' ) 

You should replace the line : 
new TraverseSchema(root, fStringPool, importedGrammar, fGrammarResolver,
fErrorReporter, location); 

with : 
new TraverseSchema(root, fStringPool, importedGrammar, fGrammarResolver,
fErrorReporter, location, fEntityResolver); 

That way the EntityResolver is correctly transmitted in the case when
'A.xsd' imports 'B.xsd' which in turn imports 'C.xsd', otherwise we end up
with an error message stating that the file 'C.xsd' couldn't be found in the
JVM working directory (din't build the C.xsd URL from the B.xsd URL)

All the best, 

Sebastien 


Re: [Xerces 1.2.3][patch] EntityResolver not correctly tranmitted to TraverseSchema object

Posted by Tarek Hammoud <ma...@c158163-a.mntp1.il.home.com>.
[Xerces 1.2.2][patch] EntityResolver not correctly tranmitted to TraverseSchema objectHello,

This is still a problem in 1.3. Could someone please commit this ?

Tarek Hammoud
  ----- Original Message ----- 
  From: Sebastien Sahuc 
  To: xerces-j-dev@xml.apache.org 
  Sent: Tuesday, December 19, 2000 4:14 AM
  Subject: [Xerces 1.2.3][patch] EntityResolver not correctly tranmitted to TraverseSchema object


  I'm reposting it, since it hasn't got fixed in current CVS branch. Could someone commit it  ?

  Thanks,

  [Xerces 1.2.3[patch] EntityResolver not correctly tranmitted to TraverseSchema object 

  Indeed in the file 'org/apache/xerces/validators/schema/TraverseSchema.java', at line 1025 
  ( method 'private void traverseImport(Element importDecl)' ) 

  You should replace the line : 
  new TraverseSchema(root, fStringPool, importedGrammar, fGrammarResolver, fErrorReporter, location); 

  with : 
  new TraverseSchema(root, fStringPool, importedGrammar, fGrammarResolver, fErrorReporter, location, fEntityResolver); 

  That way the EntityResolver is correctly transmitted in the case when 'A.xsd' imports 'B.xsd' which in turn imports 'C.xsd', otherwise we end up with an error message stating that the file 'C.xsd' couldn't be found in the JVM working directory (din't build the C.xsd URL from the B.xsd URL)

  All the best, 

  Sebastien