2 ms·
RSS is truly in its own little universe. I recently became aware of RSS stylesheets. Apparently there is a specification for that called XSLT which is distinct
by gradientsrneat 4mo ago
RSS is truly in its own little universe.
I recently became aware of RSS stylesheets. Apparently there is a specification for that called XSLT which is distinct from CSS in both form and function. However, there are plans by Google/Mozilla to remove XSLT from their browser engines for security/maintainability reasons. Apparently RSS supports javascript though, so it's possible to manipulate the RSS DOM that way. One could imagine a javascript polyfill that interprets XSLT, although I'm not sure if there's some cross-site security issues that would make that impractical.
- moebrowne 4mo agoThe removal was discussed here: https://news.ycombinator.com/item?id=45873434 https://news.ycombinator.com/item?id=45873434 No need to imagine a polyfil, they already exist: https://github.com/mfreed7/xslt_polyfill https://github.com/mfreed7/xslt_polyfill
- Fileformat 4mo agoIf you want to style RSS, you can just go straight to JavaScript and avoid all the XSLT mishegas. I made a site with to get people started: https://www.rss.style/ https://www.rss.style/ Example RSS feed: https://www.rss.style/changelog.xml https://www.rss.style/changelog.xml Cross-site is fine by default, though the script is small enough to easily self-host. If you have a content-security-policy, you'll need to allow the host in script-src.
- perilunar 4mo ago> RSS is truly in its own little universe. More like a little island in the XML archipelago. > RSS stylesheets. Apparently there is a specification for that called XSLT XSLT is a bit more than just “RSS stylesheets”.