[xep-support] SVG, identifiers, xml catalogs, resolver, net access

From: Steve Whitlatch <swhitlat@getnet.net>
Date: Wed Jul 12 2006 - 13:39:31 PDT


Thanks to all who previously discussed similar subjects on this and other mailing lists. The archives of those discussions almost allowed me to solve my problem.

I am trying to use some SVG graphics with XEP. These SVG graphics were exported from Adobe Illustrator and each includes the following identifiers:
  PUBLIC "-//W3C//DTD SVG 1.0//EN"

XEP attempts to access svg10.dtd over the Internet, and of course fails when the local system is not connected. XML Catalogs (xml-commons-resolver-1.1) cures the same/similar problem for other apps, like Saxon, but not yet for XEP. I expect that the error is mine, but I don't know what else to try. Help?

I believe I have xml catalogs properly working, for example:
% java org.apache.xml.resolver.apps.xparse file.svg
Parse catalog: file:///c:/etc/xml/catalog
Loading catalog: file:///c:/etc/xml/catalog
Default BASE: file:/c:/etc/xml/catalog
rewriteSystem: http://www.oasis-open.org/docbook/xml/4.2/
rewriteSystem: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd
REWRITE_SYSTEM: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd
public: -//W3C//DTD SVG 1.0//EN
Attempting validating, namespace-aware parse
Resolved system: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd

Is it necessary to provide additional examples showing xml catalogs working on this system? I think I could provide an infinite number of them. However, still, XEP insists on accessing the SVG files' SYSTEM identifiers over the Internet. For example, when using the following command

% java com.renderx.xep.XSLDriver -DCONFIG=C:\\RenderX\\XEP\\xep.xml \
  -Dcom.renderx.sax.entityresolver=org.apache.xml.resolver.tools.CatalogResolver \
  -Dcom.renderx.jaxp.uriresolver=org.apache.xml.resolver.tools.CatalogResolver \
  -fo file.fo -pdf file.pdf

for each SVG graphic, XEP produces an error message similar to this:

[error] Failed to create image file:/D:/cygwin/home/steve/CurrentWork/ArchDoc/DocBookXSL/RenderX/graphics/IITP-1155_scaled_no_fonts.svg of type image/svg+xml
[error] java.net.UnknownHostException: www.w3.org

What next?


Steve Whitlatch

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Jul 12 14:16:16 2006

This archive was generated by hypermail 2.1.8 : Wed Jul 12 2006 - 14:16:16 PDT