This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Telling parser to ignore DTD
- From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni at us dot ibm dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 2 May 2002 12:59:11 -0700
- Subject: Re: [xsl] Telling parser to ignore DTD
- Reply-to: xsl-list at lists dot mulberrytech dot com
You can't tell Xerces to ignore the DTD, but you can install an
EntityResolver and simply return an empty stream. This is standard SAX:
http://www.saxproject.org/apidoc/org/xml/sax/EntityResolver.html
Dave
Joerg Heinicke
<joerg.heinicke@gmx.de> To: xsl-list@lists.mulberrytech.com
Sent by: cc: (bcc: David N Bertoni/Cambridge/IBM)
owner-xsl-list@lists.mulbe Subject: Re: [xsl] Telling parser to ignore DTD
rrytech.com
05/02/2002 12:38 PM
Please respond to xsl-list
Hello Manny,
we don't have a solution for this, we have the same problem. With a
doctype-system, which Xalan can't find, Xalan throws an exception. It
doesn't validate the XML against the DTD, but it MUST find it. Until now
we solved the problem with an empty DTD-file at the place, where the
file is searched. If you found a solution or anybody knows one, we would
appreciate to get to know it.
Regards,
Joerg
Manny Parasirakis schrieb:
> Is there a way to tell xalan to ignore the DTD defined in the XML file
> and just process the transformation without using the DTD?
>
>
> Emmanuel Parasirakis (Manny)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list