'XSL: Dead or not dead
I'm currently taking on a new project at home. In this project I'm going to be generating HTML emails. For this purpose, I believe XSL to be a good candidate.
However, I have heard people say that XSL is a dead language, and if it's not that it is on it's way out. In fact, MS has been very leary to support XSL 2.0.
Personally I feel that any time you are going from text to text, it is a great tool. Such as:
- Generating HTML e-mails
- Creating Open Office Docs
- Generating another XML doc
What are your thoughts? Is it dead, or is it still a viable, usefull tool?
Solution 1:[1]
Most of the answers here have not aged well.
At the time of writing, it's 2016, and XSLT is pretty much dead.
It's just far too cumbersome to transform XML with XSLT.
Even XML is being phased out. XML still lives on, mostly in long-running projects, but not many new projects would work with it.
Solution 2:[2]
It's 2017 and I haven't touched it since 2010. Have completely forgotten the transformation syntaxes as well. RIP
Solution 3:[3]
DEAD! The company I work for used it for almost a decade now. They ported an old ASP classic site over to .NET and instead of creating new aspx pages they just continue spewing all of the data into a large XML tree and sending it to render and then stying it's output using xslt.. I mean literally everything was done in xsl.
The problem? XSL(t) is extremely limited in it's ability to handle anything other then arrays, simple if statements and just displaying variables.
The language has 1 REAL use.. Styling XML, and for that it will never really "go away" but for all practical usages, I'd say DEAD, don't waste your brain learning it unless you have too and even then it might only take you a day or two max reading on Google search results to learn all the basics of XSL and it's capabilities.
Solution 4:[4]
Not dead, W3C is currently working on version 2.1
Check out XPath and XSLT 2.0 for .NET?, MS is not implementing it any time soon, but there are alternatives.
There's a big difference between not popular and dead.
Solution 5:[5]
I use it every day, as many others do. I think the problem with XSL is that it requires some getting used to because it isn't an imperative programming language, and it can be pretty verbose sometimes. That said, support for XSLT 1.0 is great and with an engine supporting extension objects (such as the .NET engine) you can add missing functionality pretty easily.
Solution 6:[6]
I am just finishing up a project which uses XSL to generate HTML emails from Infopath forms. We like this tool chain because our designers can read and edit the XSL without too much hand holding and as new fields and business cases pop up the InfoPath form is also editable by non-programmers. The only real code which had to be written was a .net webservice to perform the transformation and update the database. The only real issue which has come up was figuring out how to display non ascii characters inside the XSL template.
Solution 7:[7]
We used XSL very successfully in my company to create reports. It is very useful and flexible and permits to convert source data into multiple file formats.
We have to admit though, that preprocessors like PHP are even easier to use and more flexible in terms of programming (think of OOP and the possibility of using libraries like mysql, pdf-generatiion, etc.)
So XSL is surely a very powerful tool, but there are a lot of easier and even more powerful alternatives to use nowadays.
Solution 8:[8]
At my company, we use XSLT to transform XML export formats of different applications, so we can export from one and import to another application. We use XSLT and STX, with callbacks to Java code for complex computations.
Solution 9:[9]
Not dead, but not the only game in town. I'd say that a templating solution like Velocity is better suited for e-mails.
You can't look at an XSL stylesheet and see what the resulting document looks like as easily.
Solution 10:[10]
Judging from how often I see it used, it is most certainly not dead. It is, however, still kinda slow. What else did you investigate before deciding on XSL?
Solution 11:[11]
Many answers seem a little biased against XML...
The world of finance is migrating to ISO 20022, which is based on XML.
Microsoft BizTalk Server 2020 includes XSLT 3.0 Support.
For example.
Solution 12:[12]
IMO, in order to answer this question, one could look for jobs on https://stackoverflow.com/jobs.
As of this writing, filtering jobs by tech with XSLT returns 0 jobs. While a technology like Java returns a humble number of 180 jobs.
Anotherway to see the "liveness" of a technology would be the number of questions asked on SO.
As of this writing, the XSLT top users page indicates 108 questions over last 30 days. The same page for React returns a whopping 9497 questions over last 30 days (nearly 88 times more than xslt).
If not dead, XSLT isn't vibrant anymore.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | |
| Solution 3 | |
| Solution 4 | |
| Solution 5 | |
| Solution 6 | |
| Solution 7 | |
| Solution 8 | |
| Solution 9 | |
| Solution 10 | |
| Solution 11 | |
| Solution 12 |
