Top
Best
New

Posted by _kush 6/27/2025

XSLT – Native, zero-config build system for the Web(github.com)
392 points | 325 commentspage 7
codelikeawolf 6/27/2025|
I know XML and XSLT gets a lot of hate. To some extent, the hate for XSLT is warranted. But I have to work with XML files for my job, and it was pretty refreshing to not have to install any libraries to work with them in a web app. We use XML as the serialization format for a spaceflight mission planning app, so there's a lot of complex data that would be trickier to represent with JSON. At the end of the day, HTML is spicy XML, so you can use all the native web APIs to read/write/query/manipulate XML files and even apply XSLT transformations.

I suspect some of the hate towards XML from the web dev community boils down to it being "old". I'll admit that used to have the same opinion until I actually started working with it. It's a little bit more of a PITA than working with JSON, but I think I'm getting a much more expressive and powerful serialization format for the cost of the added complexity.

nashashmi 6/27/2025|
Do you find it wrong that the XML needs to call the XSL instead of vice versa? As in XSLT calling XML data?
captn3m0 6/27/2025||
I use XSLT to generate a markdown README from a Zotero export XML file. It works well, but some simple things become much harder - sorting, counting, uniqueness.

https://github.com/captn3m0/boardgame-research

It also feels very arcane - hard to debug and understand unfortunately.

noisy_boy 6/27/2025||
I used XSLT in the past for trade message transformation from one format of XML (produced by an upstream system) to another (used by the downstream consuming system). It works reasonably well for not overly complex stuff but debugging things are a pain once the complexity increases. Prefer to not do that again.
_def 6/27/2025||
We've come full circle again. Yes this works great since many years, XML is just so much clutter.
kome 6/27/2025|
clutter? i find it MUCH more elegant and simple, but conceptually and practically, than the absolute clown-car of modern js driven web, css frameworks hacks, etc etc
smackeyacky 6/27/2025||
It’s weird to see the hate for xslt. I loved it, but maybe I just like stack based languages.
p2detar 6/27/2025||
I have last used XSLT probably about 2 decades ago. Back then XML was king. Companies were transferring data almost always using XML and translating it to a visual web-friendly format with XSLT was pretty neat. Cool tech and very impressive.
FjordWarden 6/27/2025||
You don't even need XML anymore to do XML, "thanks" to iXML where you can provide a grammer of any language and have that work as if you are working with XML. Not saying that is a good idea though.
bokchoi 6/27/2025|
Invisible XML? https://www.w3.org/community/reports/ixml/CG-FINAL-ixml-2023...

This is the first I've seen it. Interesting...

hamdouni 6/27/2025||
Still maintaining an e-commerce site using XML/xslt and Java/servlet... Passed easily each wave of tech and survived 2 databases migrations (mainframe/db2 => sqlserver => ERP)
HexDecOctBin 6/27/2025||
me busy fixing asan, "illegal instruction", blah blah blah, me sad and frustrated, much scowling.

me come to hn, see xml build system, me happy, much smiling, me hit up arrow, me thank good stranger.

7bit 6/27/2025|
Dear God the writing style on that article
tgma 6/27/2025|
https://packages.grpc.io is an XML page styled with XSLT updated by a bash script in CI
More comments...