Re: [xsl] Simple XSL Pipelines

Subject: Re: [xsl] Simple XSL Pipelines
From: "steve.majewski@xxxxxxxxx" <steve.majewski@xxxxxxxxx>
Date: Tue, 9 Mar 2010 16:48:24 -0500
On Mar 9, 2010, at 4:03 PM, Jacobus Reyneke 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 would suggest either Xproc or Apache Cocoon as the proper way. But if you really want to do it only with Saxon, it's probably possible using Saxon extension functions like saxon:transform .

( Of course, if you run it as a web service (ala SaxonServlet)
 you can have the output of one transform be the input of another.
  But an internal pipeline (like Cocoon) only has to parse
  and serialize once. )

-- Steve Majewski

Current Thread