XML / XSL conversion using Javascript / JQuery

Can someone tell me if there is a way to do XML / XSLT conversion on the client side using Javascript or JQuery, a way that works in all major browsers? (Chrome, Safari, Firefox, and IE)? Thanks.

+4
source share
4 answers

I have to say from the very beginning that I wrote this script, but if you just want to do some conversions and pass some parameters to your XSLT (nothing unusual), you can try Magic XML .

You can also automatically load your data and apply transformations by setting some data- attributes on your DOM elements. For instance...

 <div data-xml="example.xml" data-xslt="transform.xslt"></div> 

... will automatically extract data from example.xml and apply transform.xslt to it.

It works in Opera, Chrome, Firefox, and IE and is open source.

+5
source

Did you consider Saxon CE ? This required a commercial deployment license, but the latest version was released as open.

+4
source
+1
source

I had a pretty good impression of Sarissa . The conversion interface, supported by some XForms engines, is also a convenient way to manage conversions in the client.

0
source

All Articles