Okay, so I’ve been intrigued by XSLT for a minute. Being able to turn an XML document not designed to be displayed by a browser into one that can be displayed by one seems like the most common web use case. But also, XSLT stylesheets are themselves XML documents. And they take as input XML documents and produce as output other XML documents. And as far as I can tell, the same input given to an XSLT program should produce the same output every time. So what’s stopping me from doing functional programming things like making an XSLT file that takes as input, or produces as output, another XSLT? Or from doing something like currying? Has anyone done something like this before? It sounds cursed as hell but also fun!
You must log in or register to comment.