Re: [xsl] Simple XSL Pipelines

Subject: Re: [xsl] Simple XSL Pipelines
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 9 Mar 2010 13:24:30 -0800
Look for the compose() function/template of FXSL.

In XSLT 1.0 the xxx:node-set() extension function (and no other
extension function) will still be needed in the general case.




--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play



On Tue, Mar 9, 2010 at 1:03 PM, Jacobus Reyneke
<jacobusreyneke@xxxxxxxxx> wrote:
> Good day,
>
> There are many ways to pipe XML output from one XSLT to another, but
> what is the proper way to do it? Using a programming language in
> between does the job, but is there some way to implement it elegantly
> with XSLT and Saxon alone?
>
> The idea is something like:
> data.xml -> filter.xls -> layout.xls -> targetmedia.xsl ->
> data_for_mobile_phone.svg
>
> This is just a thumb suck example, but that's the idea.
>
> I was thinking along the line of creating a master XSL such as
> pipeline.xsl which would work on parameters and call the other style
> sheets as required. I know I can do this easily from java, but I'm
> looking for a pure XSL solution. Also, I need to to be able in use
> more than one XML as input, which I know is not ideal, but it is
> better to get the requirements right, and to make the technology fit,
> than to get the technology right and to get the requirements to fit.
>
> The answer probably lies in correct use of <xsl:variable
> select="document(filter.xls)" name="filter" />, but I can't find an
> elegant solution. If someone can help or make suggestions or give an
> example that would be great.
>
> Kind regards
> Jacobus

Current Thread