https://issues.apache.org/bugzilla/show_bug.cgi?id=45210
Earl Hood <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #3 from Earl Hood <[EMAIL PROTECTED]> 2008-06-26 07:51:05 PST --- Are you stating the patch breaks some existing behavior? This fixes a problem with the actual parsing of catalog files via the SAX parser. In the project I'm working on, the resolver errors out on XML catalog files that have doctype declarations. For example: <!DOCTYPE catalog SYSTEM "../../../dtd/catalog.dtd> <catalog>... The problem is the resolver does not set the initial base URI when calling SAX. Therefore, the *SAX parser* will resolve all (XML) entities with a base URI of the current working directory, and NOT the location of the catalog file. Therefore, in the above, the URI "../../../dtd/catalog.dtd" will be looked up by the SAX parser based on the current working directory. But, the URI should be resolved based on the location of the catalog file. The patch basically sets the systemId setting when SAX is invoked when parsing the file so any relative URI *entity* references in the catalog itself will be resolved against the correct base. None of this affects how catalog paths are resolved via things like <nextCatalog> entries since that is an application-specific processing task and not something the SAX parser resolves itself. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.