xsl-list
[Top] [All Lists]

Re: [xsl] XSLT translated into C/C++

2012-01-22 08:18:35
What about translets, or are these not really compiled?

On Sat, Jan 21, 2012 at 9:00 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> 
wrote:
On 20/01/2012 18:36, Rand McRanderson wrote:

Hi Everyone,

I was curious about if there was any implementation of XSLT which
translated it first into a compiled language. Any one know of any
commercial or open source projects along these lines? How about any
implementations that compile a stylesheet into Java bytecode?


Way back in 1999, a very early version of Saxon included Java source code
generation for a subset of XSLT - with the translation from XSLT to Java
being written in XSLT, no less. It wasn't very useful (it generated really
bad code) and was quickly abandoned.

More recently, in Saxon 9.4 released last month, Saxon-EE now does
on-the-fly bytecode generation for selected parts of your stylesheet, mixing
compiled code and interpreted code freely so either can call the other.

This isn't exactly new, though: the XSLTC product, which became part of
Xalan, was probably the first to make a major feature of code generation.

For a discussion of what to expect from code generation, at least in Saxon,
see

http://www.balisage.net/Proceedings/vol7/html/Delpratt01/BalisageVol7-Delpratt01.html

Michael Kay
Saxonica


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>