-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|514|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Link Home -> Help/Tutorials


 
HoboBen
Created : 05 August 2008
Edited : 05 August 2008

XSLT Introduction



https://www.tizag.com/xmlTutorial/xslttutorial.php
Instead of using (X)HTML to markup a page, you can use pure XML to hold the data and then use an XSLT stylesheet which then decides how the markup is applied. e.g:





This is slightly less important when you're using a server-side scripting language such as PHP, as you can easily separate data from markup (and if you need to, tweak it to generate XML), but I think it's a really good approach anyway.

 

Comments


Tuesday, 05 August 2008, 09:12
Jayenkai
Neat, but I'd be worried about compatibility when playing with things like that.
Tuesday, 05 August 2008, 09:49
9572AD
Looks like user-defined-HTML
Tuesday, 05 August 2008, 20:31
Nolan
Compatibility, Jay? XSLT is supported by every major browser, and can always be done on the server if needed.

I love XSL -- I had never even heard of it before this summer and now use it for a variety of things. It's really great for taking almost any piece of XML, in any form, and transforming it into XHTML for rendering.

Nice intro, Ben!