2 ms·
But JSON doesn’t allow you to run it through an XSLT and get a normal webpage out of it, does it?
by mbirth 2mo ago
But JSON doesn’t allow you to run it through an XSLT and get a normal webpage out of it, does it?
- latexr 2mo agoApparently it does. https://stackoverflow.com/a/49011455 https://stackoverflow.com/a/49011455 That’s not something I care about, though. I don’t mean to imply that JSON feeds are objectively superior to RSS and Atom, I just mean to share what my personal observations are, which might be useful to someone else too.
- tjansen 2mo agoI guess it's like you can't transform XML with JSON-T :) Seriously, yes, the really old XSLT does not support JSON. But these days it is much easier to find tools that read or write JSON than to find decent XML support.
- rhdunn 2mo agoXSLT 3 (via XPath 3.1) has support for maps, arrays, and parsing JSON to/from those or an XML representation. The XML representation is easier to work with in 3. There's a draft version of XSLT 4 that Saxon supports which adds more capabilities for working with map and array types.