Hacker News new | ask | show | jobs
by cowlevel 28 days ago
Yeah but you can also implement that by appending .json to the path to get JSON, like in the old reddit API
1 comments

By addinng .json you trigger a different render mode on the server. With in-browser XSLT the server does not need to support different rendering requirements.
But the browser does and that's the dangerous attack surface
Valid point. And as someone who used XSLT in the browser before 2k heavily it was clear, that this is not the way the web will go. To care not only browser specific rendering and styling behaviour, with browser-based XSLT you also had to track different integrations of libxsl.

But it was fun. One use case was a browsable work package documentation for a big public funded project. The browser native print function rendered the page in a different style with valid page breaks and numbers.