Re: [xsl] Import stylesheets with xalan

Subject: Re: [xsl] Import stylesheets with xalan
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 21 Feb 2003 19:19:48 +0100
Andrey Guskov wrote:
We are developing application on Java that includes
XSL Transformation (jdk1.4 , xalan)
The task is: get file ss_1.xsl, parse and store result in
the memory. Then get ss_2.xsl and import ss_1.xsl (stored
result) into it using program facilities.
After that the result should be usable as single stylesheet.

It's already worked with xalan-1.*, but I can handle that
with xalan-2.*.

Look up javax.xml.transform.TransformerFactory.setURIResolver and javax.xml.transform.URIResolver. Implement your own URIResolver which reads preparsed stuff from memory for matching URLs. Use <xsl:import> or <xsl:include> to import ss_1.xsl from ss_2.xsl.

Or just have a look at Cocoon
 http://xml.apache.org/cocoon/

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread