←back to thread

418 points akagusu | 5 comments | | HN request time: 0s | source
Show context
Aurornis ◴[] No.45955140[source]
I have yet to read an article complaining about XSLT deprecation from someone who can explain why they actually used it and why it’s important to them.

> I will keep using XSLT, and in fact will look for new opportunities to rely on it.

This is the closest I’ve seen, but it’s not an explanation of why it was important before the deprecation. It’s a declaration that they’re using it as an act of rebellion.

replies(10): >>45955238 #>>45955283 #>>45955351 #>>45955795 #>>45955805 #>>45955821 #>>45956141 #>>45956722 #>>45956976 #>>45958239 #
James_K ◴[] No.45955821[source]
I use XSLT because I want my website to work for users with JavaScript disabled and I want to present my Atom feed link as an HTML document on a statically hosted site without breaking standards compliance. Hope this helps.
replies(2): >>45955882 #>>45958444 #
matthews3 ◴[] No.45955882[source]
Could you run XSLT as part of your build process, and serve the generated HTML?
replies(4): >>45955943 #>>45955956 #>>45956760 #>>45959294 #
kuschku ◴[] No.45956760[source]
I have arduinos with sensors providing their measurements as XML, with an external XSLT stylesheet to make them user-friendly. The arduinos have 2KB RAM and 16 MIPS.

Which build process are you talking about? Which XSLT library would you recommend for running on microcontrollers?

replies(1): >>45957373 #
1. matthews3 ◴[] No.45957373[source]
> Which build process are you talking about?

The one in the comment I replied to.

replies(1): >>45957448 #
2. kuschku ◴[] No.45957448[source]
Fair, but that shows the issue at hand, doesn't it? XSLT is a general solution, while most alternatives are relatively specific solutions.

(Though I've written repeatedly about my preferred alternative to XSLT)

replies(1): >>45959234 #
3. righthand ◴[] No.45959234[source]
> (Though I've written repeatedly about my preferred alternative to XSLT)

Link to example?

replies(1): >>45960166 #
4. kuschku ◴[] No.45960166{3}[source]
I've previously suggested the XML stylesheet tag should allow

    <?xml-stylesheet type="application/javascript" href="https://example.org/script.js"?>
which would then allow the script to use the service-worker APIs to intercept and transform the request.
replies(1): >>45961073 #
5. righthand ◴[] No.45961073{4}[source]
Oh yes sorry I thought you meant you had a blog post or something on it.