The ugliest code I ever wrote: a parser generator in XSLT
nathanwiegand.com
nathanwiegand.com
As an aside, if I took all the effort I spent in doing things the hard way to prove somebody wrong and spent that effort on making money, my life would be a lot better right now.
You'll thank me later... ;)
I'm still quite fond of XPath though.
Haven't used it myself in years though.