Bug 5642

Summary: backslashes and entity resolution and inputsources
Product: Xerces-J Reporter: Sander Bos <sander>
Component: CoreAssignee: Xerces-J Developers Mailing List <xerces-j-dev>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 1.4.4   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Test case with sources and data-files

Description Sander Bos 2001-12-31 06:39:03 UTC
When you parse an input source (in my case a String with SAX) which contains a 
document type with a system id like:
so with backslashes, and that dtd my_staff.dtd contains a reference to an 
external entity in the same directory, say
  <!ENTITY % externalthing SYSTEM "my_staff_external.dtd">
then the resolution of that external dtd does not work (I think it tries to 
find my_staff_external.dtd in the directory where the program is started from).

I do not know whether \'s are allowed in such SYSTEM-ids, but:
 - It worked fine in Xerces 1.4.3.
 - my_staff.dtd is found okay in the program described above.
 - If I parse from a URL instead of from an InputSource (even when that URL 
points to a file in a different directory), it works okay even with \'s.
Comment 1 Sander Bos 2001-12-31 06:55:45 UTC
Created attachment 966 [details]
Test case with sources and data-files