2 ms·
A site I worked in more than a decade ago now had all the HTML generated by applying XSLT to the API output. An argument determined if you wanted the page as X
by vidarh 6y ago
A site I worked in more than a decade ago now had all the HTML generated by applying XSLT to the API output.
An argument determined if you wanted the page as XML, html or RSS. If you opted for XML, and your browser supported XSL, the XSL would be applied client-side. We still applied the XSL server-side by default to avoid having to deal with compatibility issues for the XSL, but it worked perfectly in most browsers and was great for testing.
XSLT was/is a massive pain, though.
- cbsks 6y agoI store my resume in XML and use XSLT to generate an html version and Python to generate a plain text version. I made it about 10 years ago after I learned XSLT for a project at work. I feel secure in knowing that the XSLT code I wrote will never become obsolete, as compared to the Python script I wrote which will eventually become harder to run as Python 2 is phased out. The biggest disadvantage is that I haven’t done any XSLT work in 10 years so I need to relearn it every time the script needs modification.
- jefftk 6y agoIt seems that the XSLT code you have written has become a different kind of obsolete