XSL example, XSLT example, XSL sample, XSLT sample, XSL tutorial, XSLT tutorial, stupid XSL trick, stupid XSLT trick.
A Stupid XSL/XSLT Trick is a use of XSL/XSLT for something unusual or amusing for which it wasn't necessarily designed.
Let charlie@IncrementalDevelopment.com know about your XSL/XSLT tricks to and they will be put on proud display (or linked to), properly accredited, in this area.
Deborah Pickett was has gone all meta-circular on us and implemented an XSLT processor in XSLT:
Matt Gibson was "inspired to carry on with the madness that recently gripped" him, creating "a version of the Lorenz attractor that renders in the client-side XSLT engines in Firefox, Safari, Chrome, Opera and IE6+, using both SVG and VML":
Bob Copeland implemented a square root routine in XSLT:
He comments:
It would be interesting though if someone put together a set of stylesheets implementing a standard math library, e.g. including the trig functions via log tables or Taylor series. Because you never know when you'll need to compute an arctan while generating XML documents.
Mike Edwards thinks he saw another version of this idea somewhere. I know I've suggested that someone try it. And now here it is:
David Caveney, of OmniSphere, has used XSLT to implement feature-based code generation:
Bob Lyons, of Unidex, has proved XSLT capable of computing anything by:
Joel Aufgang, of Agile, has used XSLT to create fractals:
And, speaking of fractals, Joel Yliluoma, as part of his brief introduction to HTML, XML and XSLT, has created Mandelbrot sets using XSLT:
Rick Jelliffe provided one of the inspirations for this gallery:
Francis Norton used XSLT to generate a validator (expressed in XSLT):
The first three are from the paper presented at Markup Technologies '99:
These were created by Oliver Becker, Department of Computer Science, Humboldt University Berlin:
Chris Rathman explains: "I have been studying a bunch of programming languages of late and have used the Object Oriented Shape example on Jim Weirich's page as a kind of sample problem for a lot of different languages."
Jean-Marc Vanel maintains a collection of useful XSLT transforms, models and reusable fragments under GPL. These have been developed as part of the Worlwide Botanical Knowledge Base project.
Josh Lubell, at NIST, is developing an XSLT toolbox. This toolbox currently contains:
Muhammad Athar Parvez, Ruksun Software Tech in Poona, India, has developed a calendar generator: