JSLT javascript-based XSLT alternative
Tuesday, April 17th, 2007
Click here for a live example (IE/FF) . 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 (Or JSON). 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. Read along for a step by step why and how.








