[xep-support] Re: SVG DTD download errors

From: G. Ken Holman <gkholman_at_ADDRESS_REMOVED>
Date: Tue Oct 24 2023 - 04:16:43 PDT

Have you tried to configure an XML catalog to resolve the DTD locally?

https://www.renderx.com/reference.html
>5.3. Resolution of External Entities and URIs
>...
>The principal use of these features is to add support for XML
>catalogs to XEP, to avoid repeated loading of common DTDs and
>stylesheets from the internet.

I hope this helps.

. . . . . . Ken

At 2023-10-24 10:09 +0200, Gerd v. Egidy wrote:
>Hi,
>
>I include some svg files into my fo file like this:
>
><fo:external-graphic width="auto" height="auto" content-width="36pt"
>src="url(images/admon/caution.svg)" />
>
>This svg file contains a doctype with a external URL to the DTD:
>
><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/
>SVG/1.1/DTD/svg11.dtd">
>
>This results in XEP downloading this DTD file every time such a SVG is
>included.
>
>Recently W3C implemented two changes on their server: they automatically
>redirect to HTTPS and they have implemented a limit how often you
>can download
>a file in short succession. When they still used HTTP my local proxy
>server was
>able to serve the dtd from cache after the first download.
>
>My fo contains hundreds of such SVG files, causing hundred of
>downloads to this
>file. After the first few I get this:
>
> [error] Failed to create image
> file:./images/admon/caution.svg of type
>null
> [error] com.renderx.graphics.ImageFormatException:
>org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 100; Cannot read
>from http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd (Server returned HTTP
>response code: 429 for URL: http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd)
>
>Is there a way to tell XEP not to download the DTDs or can I
>redirect them, so
>that they are loaded from some local cache directory on my disk?
>
>Thanks.
>
>Kind regards,
>
>Gerd
>
>
>
>
>_______________________________________________
>(*) To unsubscribe, please visit
>http://lists.renderx.com/mailman/options/xep-support
>(*) By using the Service, you expressly agree to these Terms of
>Service http://w
>ww.renderx.com/terms-of-service.html

--
Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/f/ |
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) |
Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Tue Oct 24 03:59:32 2023

This archive was generated by hypermail 2.1.8 : Tue Oct 24 2023 - 03:59:44 PDT