Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Current state of client-side XSLT

Tags:

html

xml

xslt

Last I heard, Blizzard was one of the few companies to put client-side XSLT into practice (2008). Is this still the case in 2011, or are more people now exploring this technique in production? 

It seems that modern browsers (IE9, FF4, Chrome) and client processing power are primed to exploit this standard for tangible savings in server CPU power and bandwidth on large scale properties. Am I missing something?

The negative aspects I'm aware of include

  • additional rendering time
  • additional assets required on uncached page load
  • additional layer of complexity
  • noticably less developer experience than server-side template techniques

The benefits I perceive include

  • template composition offloaded on the client
  • caching of common template fragments offloaded on the client
  • logical separation of document structure and data
  • well-documented web standard supported by all modern browsers

Finally, although I know it's impossible to predict the future, I am curious to know opinions on whether or not client-side XSLT's day will come. With interest in HTML5 driving users to upgrade their browsers and developers to explore new techniques, I'm eager to see what develops.

Thanks in advance,

Casey

Edit:

Any insight into how transformed XML is viewed by Google and the ramifications it has on SEO is appreciated too.

like image 934
Casey Avatar asked Jan 04 '11 18:01

Casey


3 Answers

I use client-side XSLT on kulesh.info. I haven't found any differences in IE 6–9, Chrome, Safari, and Firefox. XSLT transformation happens very fast. I haven't done any speed measurement, but I don't see any differences comparing to pure HTML version (even on first generation of iPod Touch).

mail.yandex.ru (big mail provider in Russia) is also using XSLT on client-side.

like image 198
NVI Avatar answered Sep 22 '22 17:09

NVI


Last I heard, Blizzard was one of the few companies to put client-side XSLT into practice (2008). Is this still the case in 2011, or are more people now exploring this technique in production?

Here are some examples:

  1. Jenni Tennison's site is completely XSLT-client-site driven and has been so for years.

  2. This commercial website is totally client-side XSLT driven: http://www.skechers.com/

  3. We already have an implementation of XQuery in the browser: XQIB

  4. Michael Kay has blogged about his attempt to produce XSLT 2.0 in the browser and there would be something working soon.

Some people argue that XSLT isn't designed for "programming in the large" -- for example it lacks any separate compilation capabilities. Let's hope that the coming XSLT 3.0 will change this.

like image 30
Dimitre Novatchev Avatar answered Sep 24 '22 17:09

Dimitre Novatchev


I may be somehow lost in translation, but I guess SEO issues is the main reason, preventing a lot of people of using client-side XSLT.

I'm not aware of search robots, capable of parsing application/xml instead of plain html or even flash.

Still it's a good practice (mail.yandex.ru is a notable example indeed) for highly loaded web-apps to use XSLT partially on the client, because traffic is large and SEO-friendliness isn't necessary.

like image 34
Flack Avatar answered Sep 20 '22 17:09

Flack