DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28341>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28341 EntityResolver not passed to subsequent parsers ------- Additional Comments From [EMAIL PROTECTED] 2004-06-07 12:09 ------- See the testcases included in attachment xalan-entity-resolver.tar.gz Copied here is the readme ... ------------------------------------------------------------------------ Notes ----- * Tests done using Java 1.4.1-01 on linux * The data file is welcome.xml and it declares a DTD. The content has a character entity for ö from the ISOnum.pen entity set which is declared in the welcome.dtd * The three shell scripts are used to call Xalan using the Catalog Entity Resolver and apply 3 different stylesheets. ------------------------------------------------------------------------ Test 1 ------ ./run-xalan-1.sh Fails with a FileNotFoundException. The ISOnum.pen character entity set cannot be found via the Entity Resolver. It was declared in xsl-1.xsl and the Catalog did have a proper mapping for it, however the entity resolver was not being used. Implemenent a workaround so that you can get on with the other tests. Use a copy of ISOnum.pen at the default systemIdentifier. cp schema/entity/ISOnum.pen . Run the test again: ./run-xalan-1.sh The ISOnum.pen was now found by its direct reference. The entity resolver was being properly used for the parsing of welcome.xml It found the welcome.dtd and the ISOpub.pen entity set that was referenced from the DTD. See the "Resolved" messages. ------------------------------------------------------------------------ Test 2 ------ run-xalan-2.sh Same as Test 1 but also the xsl-2.xsl stylesheet reads a configuration file using the document() function. The configuration file does not declare its DTD. All is okay (apart from the Test 1 issues). ------------------------------------------------------------------------ Test 3 ------ run-xalan-3.sh Same as Test 2 except this time the configuration file does declare its DTD. The Catalog does have a proper entry for the Skinconfig DTD, but it is not being used. The parser trundles across the network. As expected, the DTD cannot be found. ------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
