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

David Tolpin dvd at davidashen.net
Thu Oct 21 13:42:37 PDT 2004


> David,
> 
> I have just found this solution, this last hour...  I have put this also:
> 
>     <option name="DISCARD_IF_NOT_VALID" value="false" />
> 
> But, I have the exception from the xsl:include before I can setURIResolve.  (at the construction of FOTransformer)

Frederic,

create your instance of javax.xml.transform.TransformerFactory;
set URI Resolver on it . Obtain a transformer from the factory.

create FOTransformer by passing two arguments to it, the XSLT transformer
and the formatter. 

TransformerFactory factory = TransformerFactory.newInstance();
factory.setURIResolver(uriResolver);
transformer = factory.newTransformer(stylesheet);
fotransformer = new FOTransformer(transformer,formatter);

David






David Tolpin


-------------------
(*) 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