Simple AJAX with client XSLT

Post your example source code and application notes to share with others
Post Reply
arbotic
Posts: 7
Joined: Wed May 19, 2010 12:39 pm

Simple AJAX with client XSLT

Post by arbotic »

This is a very simple AJAX application with client XSL transforms. AJAX is a great way to display information on a web page without refreshing the page. There are several AJAX examples in this forum, nothing new here.

XSLT can take that functionality a step further. With XML/XSLT in mind, you can grab a bunch of data and send it to the caller, in this case an AJAX method, as an XML stream. Then transform the stream to an XHTML element. The attached files simulate reading a 3 axis I2C accelerometer then displaying the results in a table. Well, the attachment actually contains working source files, I simply commented the I2C reads with random numbers.
AjaxXsltDemo.zip
AJAX with XSLT Demo
(9.92 KiB) Downloaded 457 times
Post Reply