Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by rzzzt on Sunday January 15, 2023 @08:23AM
(#34389209)
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."
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by Semaphor on Sunday January 15, 2023 @08:58AM
(#34389405)
> "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?
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by jbotdev on Sunday January 15, 2023 @09:14AM
(#34389527)
It’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/00003...
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by mileza on Sunday January 15, 2023 @09:28AM
(#34389630)
I don't know if that's related to your question, but I've used XSLT templates with Apache FOP before to render PDF documents.
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by baald on Sunday January 15, 2023 @02:44PM
(#34392525)
Well, 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.
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by Semaphor on Monday January 16, 2023 @12:25AM
(#34397137)
We are using a mail system that uses a special version of VbScript. Not sure you’d want to trade ;)
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by antod on Sunday January 15, 2023 @07:13PM
(#34395148)
It 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.
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by Semaphor on Monday January 16, 2023 @12:24AM
(#34397132)
IIRC 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.
Re:I'm Shadow Banned by DuckDuckGo (and Bing)
by rzzzt on Monday January 16, 2023 @01:06PM
(#34403558)
I 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/adx09...
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?