Contact Jan Thomas Consulting

May 12, 2007

xslt transformation using javascript and sarissa

Filed under: Programming Techniques — jan @ 10:12 am

I read that Sarissa was a way to do xml transformations with cross-browser support.  I gave this a try and had some problems with javascript that was unsupported.  I found another solution to xml transformations – using php version 5 and doing the transformations on the server.

 This works OK with Firefox but it has problems in IE.

window.onload = function() {
 var xslt = new XSLTProcessor();
 xslt.importStylesheet(xsl);
 var out = xslt.transformToDocument(xml);
 document.write(Sarissa.serialize(out));
};

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress