----- Original Message -----
From: "Roland Neilands" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 14, 2007 12:52 PM
Subject: Re: FOP failing while accessing SVG DTD
Ian,
Ian Burrell wrote:
On 3/13/07, Roland Neilands <[EMAIL PROTECTED]> wrote:
This is a basic XML parsing question, not particular to FOP:
Use the XML prolog "standalone" attribute to prevent the DTD lookup.
eg: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Is there any way to set the fop config or pass command-line option to
not fetch the DTD?
It's not FOP doing this, it's the XML parser bundled (Xerces?) and no.
The DTD read is mandatory, even with validation off, because DTD's may
include entity declarations.
You could change the link to a local file, or remove it completely. Shame
they haven't published an XSD instead - these do not have this issue.
Setting a bogus URIResolver into the parser will probably silence it too.
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://nuix.com/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]