Hacker News new | ask | show | jobs
by Someone1234 4216 days ago
As someone who has written a lot of XSL I completely agree.

Just having a standard format which is XML-based which is able to take in XML and spit out: different XML, plain text (e.g. CSV, HTML, bespoke UTF-8 formats, etc), and so on is a wonderful idea and XSL does in fact accomplish it.

But, yes, writing XSL is extremely painful. Much of it needlessly so. Although XSL 2 did fix some of my whines (DateTime library?!). I'm still legitimately annoyed (irrationally so) that indexes start at 1 and not 0 in XSL.

The way template matching works is clunky. I think the first answer in this Stackoverflow question illistrates my point well:

https://stackoverflow.com/questions/3127108/xsl-xsltemplate-...