ASF Bugzilla – Full Text Bug Listing
|Summary:||backslashes and entity resolution and inputsources|
|Product:||Xerces-J||Reporter:||Sander Bos <sander>|
|Component:||Core||Assignee:||Xerces-J Developers Mailing List <xerces-j-dev>|
|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: file:///d:\data\cm\my_staff.dtd 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"> %externalthing; 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.