[xep-support] XML catalog resolution for stylesheet

From: Alejandro Masino <amasino@atsec.com>
Date: Sat Oct 06 2007 - 14:38:05 PDT

I am using the apache catalog resolver in a building environment where I
use Ant, Saxon and Render X. All catalog resolutions work fine with the
exception of the stylesheet passed to the Render XSLDriver.

The following is the Ant code that I am using for Render X:

> <java
> fork="true"
> classname="com.renderx.xep.XSLDriver"
> classpathref="xep.classpath"
> classpath="${prjdir}">
> <arg value="-xml"/>
> <arg value="${report-file}"/>
> <arg value="-param"/>
> <arg value="prjdir=${prjdir}"/>
> <arg value="-param"/>
> <arg value="prjfile=${prjfile}"/>
> <arg value="-param"/>
> <arg value="xmldir=${xmldir}"/>
> <arg value="-param"/>
> <arg value="dbg=${dbg}"/>
> <arg value="-xsl"/>
> <arg value="${xmldir}/StylesheetWithProblems.xsl"/>
> <arg value="-pdf"/>
> <arg value="${pdf-file}"/>
> <sysproperty key="com.renderx.xep.CONFIG"
> value="${xepdir}/xep.xml"/>
> <sysproperty key="com.renderx.sax.entityresolver"
> value="org.apache.xml.resolver.tools.CatalogResolver"/>
> <sysproperty key="com.renderx.jaxp.uriresolver"
> value="org.apache.xml.resolver.tools.CatalogResolver"/>
> </java>
With this target, stylesheets included and imported by
StylesheetWithProblems.xsl are properly resolved (they have an URL
prefix). However, if the StylesheetWithProblems.xls is itself prefixed
with an URL in this script (that is, xmldir has the value
"http://hostname/directory/xml"), the script fails.

Is this a limitation of the XSLDriver class, in the sense that it only
calls the resolver for the documents referenced by the main stylesheet,
or am I missing a parameter here?

Thanks for your cooperation,

Alejandro

-- 
______________________________________________________ 
Alejandro Fabio Masino
atsec information security
Visit our web-site at: www.atsec.com
@sec: the information security provider
Project=General
-------------------
(*) 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 Sat Oct 6 15:11:28 2007

This archive was generated by hypermail 2.1.8 : Sat Oct 06 2007 - 15:11:34 PDT