Issue with SVG DTD validation with XEP/Oxygen (Dita source -
Posted: Mon Oct 06, 2014 10:29 am
Hello,
I'm using XEP to create PDF files from DITA source files in Oxygen. I'm having trouble with the DTD validation (in details, if I comment the doctype declaration, there is no problem, if I leave the doctype declaration, I got the following error message
As indicated in xep user documentation, I tried to set up a catalog to have XEP validate with a local DTD but to no avail.
Here is what I did:
1/ Copied svg10.dtd and svg11.dtd from Oxygen directory to C:\XML_DTD (Windows 7 OS).
2/ Downloaded xml-commons-resolver-1.2 (so resolver.jar is in C:\XML_DTD\xml-commons-resolver-1.2).
3/ Created a catalog file as follows (catalog.xml in C:\XML_DTD):
4/ Created a properties file (CatalogManager.properties in C:\XML_DTD) as follows:
catalogs=C:/XML_DTD/catalog.xml
5/ Modified XEP batch script as follows:
6/ Added system environment variable:
But it doesn't work, the transformation in Oxygen still fails. Any idea of what I'd have missed?
Thanks & regards,
(Also posting this question on Xep support email list and maybe Yahoo dita users group).
I'm using XEP to create PDF files from DITA source files in Oxygen. I'm having trouble with the DTD validation (in details, if I comment the doctype declaration, there is no problem, if I leave the doctype declaration, I got the following error message
which I think is caused by the online validation blocked by the company proxy).[java] EXCEPTION: Failed to create image file:/D:/SVN-Annette/IFU_MT/Sources/Projet_ong/trunk/graphics/device_identification_label_SN.svg of type null
As indicated in xep user documentation, I tried to set up a catalog to have XEP validate with a local DTD but to no avail.
Here is what I did:
1/ Copied svg10.dtd and svg11.dtd from Oxygen directory to C:\XML_DTD (Windows 7 OS).
2/ Downloaded xml-commons-resolver-1.2 (so resolver.jar is in C:\XML_DTD\xml-commons-resolver-1.2).
3/ Created a catalog file as follows (catalog.xml in C:\XML_DTD):
Code: Select all
<?xml version="1.0"?>
<!--<!DOCTYPE catalog
PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> -->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public
publicId="-//W3C//DTD SVG 1.1//EN"
uri="file:///c:/xml_dtd/svg11.dtd"/>
<system
systemId="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"
uri="file:///c:/xml_dtd/svg11.dtd"/>
</catalog>
catalogs=C:/XML_DTD/catalog.xml
Code: Select all
relative-catalogs=yes
verbosity=4
prefer=system
static-catalog=yes
allow-oasis-xml-catalog-pi=yes
Code: Select all
@echo off
rem This batch file encapsulates a standard XEP call.
set CP=C:\XML_DTD\xml-commons-resolver-1.2;C:\Program Files\RenderX\XEP\lib\xep.jar;C:\Program Files\RenderX\XEP\lib\saxon6.5.5\saxon.jar;C:\Program Files\RenderX\XEP\lib\saxon6.5.5\saxon-xml-apis.jar;C:\Program Files\RenderX\XEP\lib\xt.jar
if x%OS%==xWindows_NT goto WINNT
"C:\Program Files\Java\jre6\bin\java" -Dcom.renderx.sax.entityresolver=org.apache.xml.resolver.tools.CatalogResolver \
-Dcom.renderx.jaxp.uriresolver=org.apache.resolver.tools.CatalogResolver \ -classpath "%CP%" com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files\RenderX\XEP\xep.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:WINNT
"C:\Program Files\Java\jre6\bin\java" -classpath "%CP%" com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files\RenderX\XEP\xep.xml" %*
:END
set CP=
Code: Select all
CLASSPATH=C:\XML_DTD\xml-commons-resolver-1.2\resolver.jar;C:\XML_DTD\CatalogManager.properties
Thanks & regards,
(Also posting this question on Xep support email list and maybe Yahoo dita users group).