[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XML parser accesses Internet, why?


Subject: RE: [xsl] XML parser accesses Internet, why?
From: "Beek, Erik van" <E.Beek@xxxxxx>
Date: Mon, 7 May 2007 16:05:58 +0200

----------------------------------------------------------------------
Date: Sat, 5 May 2007 08:29:07 +0100
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Subject: RE: [xsl] XML parser accesses Internet, why?
Message-ID: <006101c78ee7$1120f2b0$6401a8c0@turtle>

>> Why would the Java XML parser under Saxon8.7.1J need to
>> access the internet?

> If your XML document references a DTD then the XML parser in general
will
> need a copy of the DTD. Unless it's clever and can find a cached copy,
it
> will follow the URI reference and fetch it.

>  (This is nothing to do with XSLT or Saxon, by the way)

I know it's not an XSLT problem, but it is annoying if this stops a
stylesheet from running.

I'm wrote a stylesheet to extract data from my iTunes XML library, but
sometimes the DTD on apple.com is unavailable. In that case I need to
make a copy of the 50mb library file and delete the declaration
manually, each time the file is changed.
I wish there was a way to tell the parser to just ignore the DTD
declaration...

Erik van Beek


Current Thread
Keywords