xsl-list
[Top] [All Lists]

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

2007-05-07 07:15:20
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Subject: RE: [xsl] XML parser accesses Internet, why?
Message-ID: <006101c78ee7$1120f2b0$6401a8c0(_at_)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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>