[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Client-side cross-platform API


Subject: [xsl] Client-side cross-platform API
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Tue, 12 Jan 2010 15:32:59 -0800

uff.... keep using wrong email address

On Jan 12, 2010, at 12:28 AM, Michael Kay wrote:

>
> What's the state-of-the-art for writing cross-browser Javascript to invoke
> client-side XSLT transformations?
>
> Is it still Sarissa, or are there alternatives?


It depends :)

It would probably be the easiest solution that would allow you to cache the
processor.

Even easier, use the xsl processing instruction if performance is not a
problem. Is the XSL going to run multiple times after a page has loaded or
just once?

Would you be using it with some javascript framework like jquery? If so, there
is a jquery plugin for XSL which might fit in better.

If you are in control of the XSL, it might be better just to write the JS for
the transform yourself so you can tune it to provide just what you need. If
you just need a simple transform, the JS is pretty simple.

best,
-Rob


>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay


Current Thread
Keywords