
2025-10-11 13:50:39
#XSLT used to be my goto tool for transforming documents. Today I was facing a document transformation problem (the daring fireball `markdown` program does not emit valid HTML, and although you can pipe it through `tidy`, tidy won't extract the first `h1` and use it as `title`), so I thought 'yay! XSLT'.
Reader, I am no longer competent to write a simple XSLT transform.
I *kno…