Re:Chrome intends to remove XSLT from the HTML spec
by kstrauser on Tuesday August 19, 2025 @02:06PM
(#44954433)
I'm asking this genuinely, not as a leading question or a gotcha trap: why use this client side, instead of running it on the server and sending the rendered output?
[ Parent
| on HN ]
Re:Chrome intends to remove XSLT from the HTML spec
by joe_the_user on Tuesday August 19, 2025 @03:26PM
(#44955318)
I think the obvious answer is that client side mapping would let the browser give different view of the data to the client. The obvious problem is that downloading all the data and then transforming is inherently inefficient (and sure, despite this, download-then-process is a common solution used for many problems - but it's problematic to specify the worst solution before you know the problem).
Perhaps there's an alternative universe where javascript lost and an elegant, declarative XSLT could declaratively present data and incrementally download only what's needed, allowing compact and elegant websites.
But in our universe today, this mapping language wound-up a half-thought-idea that just kicked around for a long time in the specs without ever making sense.
Re:Chrome intends to remove XSLT from the HTML spec
by kstrauser on Tuesday August 19, 2025 @03:33PM
(#44955403)
My gut instinct is to agree with every bit of that. I admit that I might be missing something, but I've never wanted to send the data once and then have the client view it in multiple transformed ways (minus simple presentation stuff like sorting a table by column and things like that).
And using it to generate RSS as mentioned elsewhere in the comments? That makes perfect sense to me on the server. I don't know that I've ever even seen client-side generated RSS.
But again, this may all be my own lack of imagination.
Re:Chrome intends to remove XSLT from the HTML spec
by bilog on Tuesday August 19, 2025 @05:43PM
(#44956542)
For one, in many cases the XML + XSLT is more compact than the rendered output, so there are hosting and bandwidth benefits, especially if you're transforming a lot of XML files with the same XSLT.
Re:Chrome intends to remove XSLT from the HTML spec
by kstrauser on Tuesday August 19, 2025 @08:55PM
(#44957681)
That’s fascinating because I wouldn’t have expected it. What’s an example of when they rendered output would be bigger?
Re:Chrome intends to remove XSLT from the HTML spec
by amonith on Wednesday August 20, 2025 @02:49AM
(#44959322)
Imagine 1000 numbers in XML and a XSLT with xsl:for-each which renders a div with a label, textbox with the number and maybe a button.
That's a simple example. Output would be a lot longer than XML+XSLT.