4 ms·
I once encountered a podcast’s Atom feed that included an <?xml-stylesheet ?> reference to an XSLT stylesheet, so when opened in a browser the feed became a dec
by mananaysiempre 1y ago
I once encountered a podcast’s Atom feed that included an <?xml-stylesheet ?> reference to an XSLT stylesheet, so when opened in a browser the feed became a decently laid out list of episodes, complete with <audio> tags to listen to them in place. And there’s nothing even the slightest bit hackish about it, in contrast to the usual polyglots like the one in TFA, but somehow it had never occurred to me that you could do that. Your reference to JSON-LD feels similar.
(In general, XML stylesheets leave me conflicted. It’s a nice idea, in principle, but I do not really see a way it could fit into a frontend with more than the slightest amount of interactivity. Also, I’ve lived through the absolute misery that was rebuilding the hefty Nixpkgs manual on every system update using the—quadratic—DocBook stylesheets, and I don’t want to go back to that.)