News for hackers. Stuff that matters.
Re:Google is killing the open web by FeepingCreature on Tuesday August 19, 2025 @08:07AM (#44950645)
That kind of demonstrates why XSLT is a bad idea as well though. JSON has its corner cases, but mostly the standard is done. If you want to manipulate it, you write code to do so.
Re:Google is killing the open web by _heimdall on Tuesday August 19, 2025 @09:58AM (#44951635)
JSON correlates to XML rather than XSLT. As far as I'm aware, XML as a standard is already done as well.

XSLT is more related to frontend frameworks like react. Where XML and JSON are ways of representing state, XSLT and react (or similar) are ways of defining how that state is converted to HTML meant for human consumption.

Re:Google is killing the open web by bilog on Tuesday August 19, 2025 @10:31AM (#44951969)
Also, fun fact, XSLT 3 relies on XPath 3.1 which can also handle JSON.
Re:Google is killing the open web by _heimdall on Tuesday August 19, 2025 @10:43AM (#44952117)
Ah, so it can! I've only ever used XSLT with built-in browser support, never even realized the latest would allow JSON to be rendered with XSLT!
Re:Google is killing the open web by FeepingCreature on Tuesday August 19, 2025 @11:31AM (#44952744)
Yes but React is not built into the browser, that's kinda my point.
Re:Google is killing the open web by _heimdall on Wednesday August 20, 2025 @09:14AM (#44961666)
XSLT is a browser spec and part of the web platform though, react never went through that process.

For what its worth, XSLT 3.0 can apparently work with JSON as well if your main concern from a couple comments up is XML vs JSON.