3 ms·
You forgot to mention XSLT, which is just such a ridiculously powerful tool when you got XML data. It allows one to transform XML into XHTML or even other forma
by p2detar 1y ago
You forgot to mention XSLT, which is just such a ridiculously powerful tool when you got XML data. It allows one to transform XML into XHTML or even other formats. Edit: Browsers also support this automatically, so you open an XML document and you get to see a rendered HTML from it.
I had been tasked at least several times in my past jobs to develop XSLT scripts to transform data into user-readable content. I don't know of anyone that uses XSLT today and I have no idea if there is a JSON equivalent.
- rimunroe 1y ago> Browsers also support this automatically, so you open an XML document and you get to see a rendered HTML from it. Though as I understand it it's possible that this might not be the case for much longer: https://github.com/whatwg/html/issues/11523 https://github.com/whatwg/html/issues/11523
- oneeyedpigeon 1y agoI wrote a simple CMS a few years ago that used XSLT to assemble static pages from templates and data. It worked like a dream, although writing XSLT is not the easiest task!
- wpm 1y agoI use XSLT still, it’s a lot of fun. Mostly in shell scripts. jq is the closest thing for json, but it’s far messier to write longer filters than XSLT, and that’s saying something!
- theshrike79 1y agoI remember when Blizzard's web pages were just XML+XSLT. I was building some kind of parser for them and got confused for a second when my Python script returned bare XML when fetching the front page :D