5 ms·
XSLT 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
by rzzzt 4y ago
XSLT 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.