| ▲ | FeepingCreature 2 days ago |
| 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. |
|
| ▲ | _heimdall 2 days ago | parent [-] |
| 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. |
| |
| ▲ | bilog 2 days ago | parent | next [-] | | Also, fun fact, XSLT 3 relies on XPath 3.1 which can also handle JSON. | | |
| ▲ | _heimdall 2 days ago | parent [-] | | 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! |
| |
| ▲ | FeepingCreature 2 days ago | parent | prev [-] | | Yes but React is not built into the browser, that's kinda my point. | | |
| ▲ | _heimdall 18 hours ago | parent [-] | | 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. |
|
|