From: James Drayton (James.Drayton@Solipsys.com)
Date: Mon Jun 21 2004 - 07:11:04 PDT
Nikolai,
I use the following the following in an ANT script:
<propertycopy name="PDF_DOC" from="${docType}_PDF" />
<echo message="Building ${docType} PDF Document with XEP..." />
<java classname="com.renderx.xep.XSLDriver"
classpathref="docbook.classpath"
fork="true"
dir="."
maxmemory="${MAX_MEMORY}"
failonerror="true"
>
<arg line="-DROOT=${XEP_HOME}
-Dcom.renderx.sax.entityresolver=org.apache.xml.resolver.tools.CatalogResolv
er
-Dcom.renderx.jaxp.uriresolver=org.apache.xml.resolver.tools.CatalogResolver
-fo ${DOC_TMP_DIR}/.tmp${docType}.PDF.fo -pdf ${PDF_DOC}" />
</java>
...And the CatalogManager.properties files is in my classpath. Yet, I get
the following error:
java.net.UnknownHostException: www.w3.org
What may be happening? Is XEP not finding the catalog.xml file?
Regards,
James
-----Original Message-----
From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
On Behalf Of Nikolai Grigoriev
Sent: Monday, June 21, 2004 5:19 AM
To: xep-support@renderx.com
Subject: Re: [xep-support] Adobe SVG
James,
> I am creating PDF's off-line and am unable to render Adobe SVGs.
> I assume it is because of the entities they define:
>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
You probably mean that you are unable to render these SVGs on
a computer that has no Internet access. This may happen because
of the DTD reference: by the XML spec, the XML parser has
to access the DTD in order to resolve entities.
If you are using XEP for Java, then the most straightforward method
of resolving the issue consist in leveraging XML catalogs. You
can read about it in XEP User Guide:
http://xep.xattic.com/xep/doc/userguide.html#URI_Resolution
Alternatively, you could simply postprocess the resulting SVG, e.g.
by applying an XSLT identity transformation to them. This would
remove all remote DTD references, and resolve all entities.
Please note that you will need to add catalog support to the XSLT
processor if you want this process to be performed without network
access; this is processor-dependent, so please refer to the
documentation of your XSLT processor.
> <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
> <!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
> <!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
> <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
> <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
> <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
> <!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
> <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
> <!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
> <!ENTITY ns_svg "http://www.w3.org/2000/svg">
> <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
The rest of your entities are just namespace URIs. They never
get resolved, and should not pose any problem.
Best regards,
Nikolai Grigoriev
RenderX
-------------------
(*) 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/tos.html
-------------------
(*) 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/tos.html
This archive was generated by hypermail 2.1.5 : Mon Jun 21 2004 - 07:24:14 PDT