Re: [xslt] Compiling stylesheets



On 06 Aug 2001 13:59:48 +0200, Bernhard Zwischenbrugger wrote:
> Is it possible to compile stylesheets?

Yes, but it doesn't do what you think it does :-)

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

This is doing exactly the same as what you can do with libxslt - compile
the stylesheet into memory and re-use it for multiple transformations.
This is not the same as compiling it to an .exe.

> 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.

Try AxKit, it does exactly that, including using compiled stylesheets on
the next "hit".

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

Wouldn't matter much, as you can use libxml/libxslt under the W3C
license,
which is pretty much a BSD type license. Of course it's irrelevant given
the 
above.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





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