[xslt] Compiling stylesheets



Is it possible to compile stylesheets?

The thing I wan't to do is:

#> compilestylesheet test.xsl > compiledStylesheet.exe

What should the result do?
===================
xsltproc test.xsl test.xml --param one '1' --param two '2'
should deliver the same result as:
compiledStylesheet.exe test.xml --param one '1' --param two '2'


Questions
========
Is this possible with libxslt?
Is there an example?
(I'm not a C Coder)

Xalan
=====

I think Xalan has this feature 
(see:
http://xml.apache.org/xalan-c/usagepatterns.html#compiled
)
But I never tried.

What to do with compiled stylesheets
==========================

A realy usefull thing would be to make a fastcgi modul
for apache from a single stylesheet.

To make the thing perfect, caching results is always a good thing.

Licence
======
Is it allowed to sell compiled stylesheets, without deliver the 
xslt-stylesheet source?
What does LGPL say about that?

Bernhard Zwischenbrugger
http://datenkueche.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]