[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Stopping Saxon searching for an external DTD
jim smith wrote:<!DOCTYPE moreovernews SYSTEM "http://p.moreover.com/xml_dtds/moreovernews.dtd"> Yes, it makes parsing lightweight XML-with-trivial-DTD tricky offline, but that's a rare occurence. I may be the only person the list who needs this functionality ;-) My best bet is to s/// the DOCTYPE string out when I grab it with Perl/LWP. I believe that in the event that the DTD is external, the parser has the option of ignoring it, but I would bet that the parser you're using does not fall back when the URI resolver coughs up an exception. You might check the docs for your XML parser to see if it gives you a way to turn off resolution of external entities, or perhaps you can override the resolver with one of your own.. (sorry if I'm not being very helpful.. I've not tried to do this myself) Indeed it doesn't. j -- jim smith 020 7837 0377 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|