News for hackers. Stuff that matters.
Re:Chrome intends to remove XSLT from the HTML spec by youngtaff on Sunday August 24, 2025 @04:45AM (#45002544)
I too spent a chunk of time seeing what worked and what it looks like…

JS referenced by the XML can manipulate the XML but it frequently executes before the XML DOM is ready (even when waiting for onload) and so misses elements

So while possible it’s a pretty horrible experience to translate XML to HTML using JS - the declarative approach is more reliable and easier IMV

The XSLT polyfill doesn’t seem to work when loaded as a script in an XML doc but not quite sure why ATM

application/xml is commonly used for RSS feeds on static hosts because it’s the correct mimetype for say a feeds.xml response

Re:Chrome intends to remove XSLT from the HTML spec by 8NNTt8z3QvLT8tp on Monday August 25, 2025 @05:42AM (#45012040)
https://github.com/mfreed7/xslt_polyfill/pull/5 - it will be able to do this soon.
Re:Chrome intends to remove XSLT from the HTML spec by em-bee on Monday August 25, 2025 @08:22PM (#45020810)
nice. thanks for the link.

someone else mentioned xjslt here: https://news.ycombinator.com/item?id=44994310 which is an xslt 2.0 implementation. i have been trying to get that to work by loading the script directly into the xml data but so far could not figure out how to do it.