JSLT: A JavaScript alternative to XSLT

Written by on April 11th, 2007 in Ajax News.

Rik Arends has created JSLT, a pure JavaScript replacement for XSLT.

JSLT is a browser based templating language like XSLT, but instead of
using XML to encode the template logic, it uses normal Javascript with a
few extensions. You can transform XML with it or just template with
javascript variables. The JSLT processor parses the template using
a recursive tokenizing parser and generates javascript code for fast
dynamic (re-)execution. The general structure is:
template[js]template{inline-xpath}[js]template. All code is available
under the LGPL license.

You can visit a real-time example page that recompiles on each keystroke.

If you almost liked XSLT, and like JavaScript, maybe JSLT is for you.

Source: Ajaxian
Original Article: http://ajaxian.com/archives/jslt-a-javascript-alternative-to-xslt

Leave a Reply

You must be logged in to post a comment.



Site Navigation