Hi folks!

A problem I have using Xerces Java 1.2.3 (and earlier versions) with JDK 1.1.8 on Windows NT 4 is that a relative SYSTEM identifier is being resolved against the operating system current directory and not against the file in which the reference to the SYSTEM identifier exists. I first noticed this in Xalan C++ so it seems to be a common issue.

An example is below.

I don't subscribe to the list (I'm hoping an unsubscribed person can still post), so I won't be able to see any response, but all I wanted to do was to get it reported so it would be fixed in the next versions of the tools.

I hope this helps!

................... Ken

P:\apache\xerces\test\test>dir
 Volume in drive P is WINDOWS NT4
 Volume Serial Number is 1020-1908

 Directory of P:\apache\xerces\test\test

01/01/06  20:38         <DIR>          .
01/01/06  20:38         <DIR>          ..
01/01/06  20:38                     66 test.xml
               3 File(s)             66 bytes
                            241,696,768 bytes free

P:\apache\xerces\test\test>dir ..
 Volume in drive P is WINDOWS NT4
 Volume Serial Number is 1020-1908

 Directory of P:\apache\xerces\test

01/01/06  20:38         <DIR>          .
01/01/06  20:38         <DIR>          ..
01/01/06  20:38                     20 test.dtd
01/01/06  20:38         <DIR>          test
               4 File(s)             20 bytes
                            241,696,768 bytes free

P:\apache\xerces\test\test>type test.xml
<?xml version="1.0"?>
<!DOCTYPE doc SYSTEM "../test.dtd">
<doc/>
P:\apache\xerces\test\test>type ..\test.dtd
<!ELEMENT doc EMPTY>
P:\apache\xerces\test\test>xml test.xml
Parsing: 'test.xml' for XML errors

P:\apache\xerces\test\test>t:

T:\>xml p:test.xml
Parsing: 'p:test.xml' for XML errors

Fatal Error at (file stdin, line 2, char 36): An exception occured! Type:Runtime
Exception, Message:Could not open DTD file '../test.dtd'


T:\>

--
G. Ken Holman                      mailto:[EMAIL PROTECTED]
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:   Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:             2001-01-27,2001-02-21,
-                            2001-02-27/03-01,2001-03-05/07,2001-03-21,
-                                   2001-04-06/07,2001-05-01,2001-09-19



Reply via email to