3 ms·
Looking around his page, I see some interesting aspects on his atom page: https://daverupert.com/atom.xml https://daverupert.com/atom.xml First, he sends it w
by mg 4y ago
Looking around his page, I see some interesting aspects on his atom page:
https://daverupert.com/atom.xml https://daverupert.com/atom.xml
First, he sends it with a "content-type: application/xml" header. In contrast to most sites that send it with "content-type: application/atom+xml". Which seems to have the nice effect that it renders in Firefox instead of opening the usual "What should Firefox do with this file?" popup.
Secondly, he provides this nice header text "Yahaha, you found me! This is my RSS feed.". It seems to be fetched via this part of the code:
<?xml-stylesheet href="/pretty-feed-v3.xsl" type="text/xsl"?>
Pretty nice. Are those best practices? Or will "content-type: application/xml" mess with users who have a native feed reader installed and expect the reader to kick in when they click on a feed url?
- rzzzt 4y agoXSLT is a template language where you match snippets of XML using XPath expressions and output... anything else, in this case HTML using templates that can make use of the attributes, inner content, etc. of the captured XML portion. "An elegant weapon for a more... civilized age."
- Semaphor 4y ago> "An elegant weapon for a more... civilized age." One of the ideas people had back then was having a product catalog in XML that your tool would give you, and that you could upload to your website and display as a nice website via XSLT. It was such a fascinating technology when I learned about it, but I’m not sure if it ever saw any serious use? Maybe in enterprise?
- jbotdev 4y agoIt’s still used by the SEC to render company filings on their EDGAR site. I can’t find the exact files/docs, but I’ve rendered filings like this using the XML and XSLT they provide: https://www.sec.gov/ix?doc=/Archives/edgar/data/320193/000032019322000108/aapl-20220924.htm https://www.sec.gov/ix?doc=/Archives/edgar/data/320193/00003...
- mileza 4y agoI don't know if that's related to your question, but I've used XSLT templates with Apache FOP before to render PDF documents.
- baald 4y agoWell, I'm having the ... pleasure ... of learning it now, as much of CheetahMail's templating system uses it (at least as initially configured by their professional services team. The company I work for just switched over and had them do the initial implementation). Just a data point.
- Semaphor 4y agoWe are using a mail system that uses a special version of VbScript. Not sure you’d want to trade ;)
- antod 4y agoIt had some use. I'm pretty sure IE used to support client side transformations when rendering XML that linked an XSLT file. I know one SaaS used to do that before they rearchitected their front end. But XSLT was not fun work with.
- Semaphor 4y agoIIRC all browsers supported it, I played around with it back then. I just wondered about in-the-wild use. Though the others comments say there is/was some.
- rzzzt 4y agoI had a brief encounter with XSLT in a university course that used Oracle's software suite for demonstration purposes. I think it was related to the XSQL framework: https://docs.oracle.com/cd/B10501_01/appdev.920/a96621/adx09xsq.htm https://docs.oracle.com/cd/B10501_01/appdev.920/a96621/adx09...
- leni536 4y agoI would never call XSLT elegant, it is horrible IMO.
- masklinn 4y agoXSLT may well be the worst possible implementation of an elegant underlying concept.