citronized
citronized

Reputation: 1

Render xml (from an exe) to a new window

I'm trying to render (on client side) some XML data retrieved from an EXE (on server side). I can't add any link to an XSLT stylesheet in the XML data, so I'm looking for a javascript function that could transform the XML through my XSLT (which can be stored on the server).

Currently, my webpage opens the XML using :

onclick="openWindow('Exe/the_url_and_args')"

I have no problem in creating an XSLT but I don't know how to call that file using javascript ! Can't find anything relevant googling :( Many thanks !

Upvotes: 0

Views: 70

Answers (1)

Michael Kay
Michael Kay

Reputation: 163312

The Sarissa API is often used as a portable cross-browser API for invoking XSLT 1.0 transformations from Javascript.

These days you can also use XSLT 2.0 in the browser using Saxon-CE, whose Javascript API is described here:

http://www.saxonica.com/ce/doc/api/intro.xml

In many cases, Saxon-CE does the whole job for you, so you don't need to write any Javascript at all.

Upvotes: 1

Related Questions