FOP failing while accessing SVG DTD

2007-03-13 Thread Ian Burrell

We are getting intermittent failures making PDF from XSL-FO with SVG
images.  I think the problem is caused by network errors accessing the
SVG DTD from the w3.org site.  We are using fop 0.20.5.

Error: ([ERROR] Could not load external SVG: Connection refused
[ERROR] Error while creating area : No ImageReader for this type of
image 
(file:/usr/local/apache/sites/web_src/vod/htdocs//images/svg/layout4_logo.svg)

The SVG file is generated by Adobe Publisher and contains the following DOCTYPE:

!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [
   !ENTITY ns_svg http://www.w3.org/2000/svg;
   !ENTITY ns_xlink http://www.w3.org/1999/xlink;
]

Is there any way to cause FOP to not fetch the DTD?  Or use a local copy?

- Ian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP failing while accessing SVG DTD

2007-03-13 Thread Roland Neilands

Ian,

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?

Regards,
Roland


Ian Burrell wrote:

We are getting intermittent failures making PDF from XSL-FO with SVG
images.  I think the problem is caused by network errors accessing the
SVG DTD from the w3.org site.  We are using fop 0.20.5.

Error: ([ERROR] Could not load external SVG: Connection refused
[ERROR] Error while creating area : No ImageReader for this type of
image 
(file:/usr/local/apache/sites/web_src/vod/htdocs//images/svg/layout4_logo.svg) 



The SVG file is generated by Adobe Publisher and contains the 
following DOCTYPE:


!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [
   !ENTITY ns_svg http://www.w3.org/2000/svg;
   !ENTITY ns_xlink http://www.w3.org/1999/xlink;
]

Is there any way to cause FOP to not fetch the DTD?  Or use a local copy?

- Ian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP failing while accessing SVG DTD

2007-03-13 Thread Ian Burrell

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?

Setting the standalone attribute works great for static SVG files that
I can change.  I am worried about dynamically generated ones.  Or
getting my content guys to change future files they make.

- Ian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]