Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Michael Kay <mike@sa...> - 2008-09-04 17:13:09
|
First thing you need to understand is that this is nothing to do with Saxon. It's all to do with the XML parser. For convenience, in simple cases, Saxon hides the XML parser from you, but in the end XML parsing and XSLT transformation are two separate operations and Saxon is only responsible for the second one. Fetching DTDs is entirely the XML parser's responsibility, and it's the XML parser that is trying to connect to http://www.daisy.org, not Saxon. If you don't want the XML parser to fetch the DTD from a remote site there are only two things you can do: (a) remove the DOCTYPE declaration from the instance document (which won't work of course if it defines entities that are referenced in the document (b) persuade the XML parser to use a local copy instead, by use of an EntityResolver and/or a catalog. Both of these mean taking a little bit more control of the XML parsing yourself rather than leaving it all to Saxon. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: saxon-help-bounces@... > [mailto:saxon-help-bounces@...] On Behalf > Of Alex Bernier > Sent: 04 September 2008 13:52 > To: saxon-help@... > Subject: [saxon] Disable DTD download when applying a > stylesheet on an XMLfile > > Hello, > > I use Saxon 8.9J. I want to apply an XSLT stylesheet on an > XML file which begin like this: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE dtbook PUBLIC "-//NISO//DTD dtbook 2005-3//EN" > "http://www.daisy.org/z3986/2005/dtbook-2005-3.dtd"> > > The computer where I run Saxon has no Internet access to > http://www.daisy.org. > Saxon can't connect, so the XSLT can't be applied. > > Is there a way to make Saxon not to try to connect to > http://www.daisy.org (I don't want to wait the timeout expiration) > to download the DTD ? (I don't want to remove/modify the > DOCTYPE line of my files). > > Regards, > > Alex > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at > http://saxon.markmail.org/ saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help |