Data Binding with XSL

I almost thought I had found something incredible when I first began playing with XSL. When you read the tutorials you can’t help but get lost in your dreams of unexpected power. For once (and without any database) you can have easy access to sorted information throughout a static website.

When you read more closely, you learn that Internet Explorer 5 doesn’t support this w3c recommendation. Ah well, no surprises there but that was enough to stop me from using it for a project at work. However, it does work in the recent standards-compliant browsers – I know IE6 doesn’t fit in that category, but he still understands XSL.

The simplest way I could find of using XSL was to combine it with JavaScript. It causes a major slowdown, but you make sure your XML content is outputted properly. You easily can use ASP as well, but when you have access to ASP you probably also have a database available and shouldn’t be wasting your time with XSL for data binding.

There’s one thing I couldn’t find an answer for however. Even after reading through the XSL homepage on the w3c it is not quite clear if it’s semantically correct to use XSL for data binding. I think it is as the tutorials seem to point that way. I can never understand anything on that website ;)

Leave a Reply