[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: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Mon, 07 May 2007 17:14:54 +0300

Hi Erik,

What I would recommend is to set up an XML Catalog and solve the remote DTD reference to a local copy. XML Catalog was invented exactly to solve this type of problems.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Beek, Erik van wrote:
----------------------------------------------------------------------
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