|
|
|
|
|
by j45
354 days ago
|
|
Universal love is one factor, best tool for a job may leave only a few choices including XML. It's not my first choice, but I won't rule it out because I know how relatively flexible and capable it can be. XSLT might just need a higher abstraction level on top of it? |
|
The idea behind XSLT is genial, but the real essence of it is XPath which makes it possible. And we've seen XPath evolve into CSS Selectors, and being useful on its own.
So in essence there are two sides of the transformation:
And while there are established approaches to the first part, perhaps XSLT is the only one which fits the definition of 'generally accepted' when it comes to the transformation.But one can argue the transformation is possible with jq, it is just that I definitely don't like its overly-engineered syntax. IMHO the champion of the transformation syntax is yet undecided, even though in 2025 XSLT is still more or less king. Which is fascinating as XML is long not a usual choice of preference.