Cross Browser XSL Wrapper

Simple and easy wrapper for transformation XML document with XSL on client side. Supports: Firefox, Opera and IE.

How use it ?

var xml = document.getElementById('xml'); // string or DOM object
var xsl = document.getElementById('xsl'); // string or DOM object
var proc = new xslProcessor();
proc.importStylesheet( xsl );
proc.setParameter( null, 'foo', 'bar' );
document.getElementById('content').innerHTML = proc.transformText( xml );

You can get it here.

comments powered by Disqus