[xep-support] How can I use FOTransformer with xsl:include relative path.

David Tolpin dvd at davidashen.net
Thu Oct 21 10:06:24 PDT 2004


> 
> How can I use xsl:include relative path (with the URIResolver) with the FOTransformer?
> 
> The only logical path I found to do it:
> 
>     FOTransformer transformer = new FOTransformer(new StreamSource(XSLfile.openStream()),formatter);
>     transformer.setURIResolver(genPDFURIResolver);
>     transformer.transform(new StreamSource(new StringReader(xmlStringData)), target);

Frederic,

this looks reasonable. Are you sure your resolver is working properly.
XEP takes uriresolver on the command-line.

if you call it as 

java -Dcom.renderx.jaxp.uriresolver=your.package.name.URIResolver \
	com.renderx.xep.XSLDriver -DCONFIG=/path/to/XEP/xep.xml \
	document.xml -xsl style.xsl

it should call your resolver to resolve URLs. Does it work for
your resolver? It works with DocBook XSL stylesheets and catalogs.

What XSLT transformer are you using? Is it a problem with SAXON
or with another XSLT engine?

David

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list