RE: [xsl] client-side ajax & xslt

Subject: RE: [xsl] client-side ajax & xslt
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 09 Mar 2007 13:55:11 +0000

Reading your question I'm not completely sure if you want to use Ajax and server-side transformations or client-side ones, Sarissa is a cross-browser client-side XML/XSLT framework.
I tend to avoid client-side transforma unless I know that they are extremely simple or I know there is only one target browser, an intranet for example.

I have done something similar to what you describe in ASP.NET but all the transformations have been done server-side albeit via Ajax. To be fair it was only tested in Internet Explorer and Firefox for the full functionality, for other browsers it just used a full page refresh to show the new data.


From: Erik Wilde <dret@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] client-side ajax & xslt
Date: Thu, 08 Mar 2007 22:26:32 -0800


this is not an xslt programming language question, but i hope that maybe somebody knows the answer anyway, and it certainly has xslt as its main topic. here is what i want to do:

- start with an xml with tabular values which is transformed into a table (server-side) and embedded into an html page.

- on the web page surrounding the data table, there should be various buttons to reformat the table, each of these is associated with an xslt.

- when pressing the button, the xml and the xslt is loaded from the server, and the static table is replaced with the result of transforming the xml into html.

- the user can then update the display any number of times with a minimum amount of network traffic (the browser cache will cache the data and the xslt).

now, i do know that ajax frameworks such as sarissa or even better freja are supposed to support this kind of functionality, but they are poorly documented, under constant development, and seem to routinely break with every minor version of a browser. so i have two questions:

- did anybody have success implementing the above scenario, and if so, which framework did you use and on which browsers did you test it? and would you recommend to do it in the same way you did it?

- in general, is there a chance that something like this runs reasonably stable and works for the majority of users? the static strting table should be good enough for those with older browsers, but i want the more flexible solution to be available to the majority of users.

if possible, please cc answers to my email as well. thanks and kind regards for any pointers or suggestions,

erik wilde   tel:+1-510-6432253 - fax:+1-510-6425814
       dret@xxxxxxxxxxxx  -
       UC Berkeley - School of Information (iSchool)

Current Thread