Re: [xsl] execute external batch program

Subject: Re: [xsl] execute external batch program
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 27 Feb 2007 15:15:43 +0100
Davide Antoni wrote:
there's a way to execute an'external batch from a stylesheets?

XSLT is a Transformation language, it is, in principal, not meant to call other programs. Often, a stylesheet transformation is processed as part of a chain, where on the pre-or post-processing side some program is called to do something with the input (i.e., FO processing, translation, another xslt process). In addition, XSLT is a functional language, with the (in)famous "no side effects" rule, which would be quickly violated by calling into another program.


It would help if you explained your problem, so we can provide you with some possible solutions.

That said, if you *must* call some "external batch" (whatever that is) from your stylesheet, you can always create an extension function, which is simple enough. Consult the manual of your particular processor for how to do this.

-- Abel

Current Thread