From: [] On Behalf Of Michael Kay
Sent: 22 July 2008 16:20
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Compiling a Stylesheet

Saxon-SA now has the ability to generate Java source code from XQuery - this is then executed directly by the JVM (though of course it needs Saxon as a runtime library.
But the (older) facility for "compiling" stylesheets is rather different. It basically takes the optimized syntax tree produced by the Saxon compile-time code and serializes it as a data structure on disk, so that it can be reloaded and executed at any time. Frankly, there are no significant performance advantages in doing this compared with recompiling the source.
Michael Kay

From: [] On Behalf Of
Sent: 22 July 2008 15:22
Subject: [saxon] Compiling a Stylesheet

  what actually happens when you compile a stylesheet?
  does it become an executable piece of code i.e. java Class(es)?