Hi

I am new to Xalan, and have the following problem

I am translating an XML file to another XML by XSLT using Xalan
in a servlet. My input file contains a DOCTYPE I have no control over. 

        <!DOCTYPE DOC SYSTEM "doc.dtd">

This dtd reference a dtd on a remote server, while I am doing
the translation on a local server. From time to time the server
where the dtd is also is unavailable. 

By using Xalan I get a exception because it can not find this dtd.

        File "file:///C:/Java/doc.dtd" not found
        

Is there a way that I can 

        1) Change the reference so that it points to the right external DTD ?

        2) Ignore the DOCTYPE of the XML?



Hope someone can point me in the right direction...

Regards,
David


____________________________________
David Norheim
Reliable Information Technologies, TP-270
ISIS - Joint Research Centre of the E.C.
21020 Ispra, ITALY.
Phone office: +39 (0)332 786427
Phone internal: 6427
Phone mobile: 034 04734432

Reply via email to