Remix.run Logo
ajxs 4 days ago

The core concept behind XSLT is evergreen: Being able to programmatically transform the results of a HTTP request into a document with native tools is still useful. I don't foresee any equivalent native framework for styling JSON ever coming into being though.

_heimdall 4 days ago | parent | next [-]

If I'm not mistaken, XSLT 3 works with JSON too. It'd be nice to see that shipped in browsers instead of seeing v1 removed.

stmw 4 days ago | parent | prev | next [-]

I could easily imagine a functional-programming JSON transformation language, or perhaps even a JSLT based on latest XSLT spec. The key in these things is to constraing what is can do.

ajxs 4 days ago | parent [-]

We wouldn't even need anything as complex as XSLT, or a functional language for transforming JSON. Other markup-based template processing systems exist for higher-level languages like Pug, Mustache, etc. for Node.js. You could achieve a lot with a template engine in the browser!

b_e_n_t_o_n 4 days ago | parent [-]

JSX!

stmw 4 days ago | parent [-]

That's not... really the same.

mpyne 4 days ago | parent | prev | next [-]

> I don't foresee any equivalent native framework for styling JSON ever coming into being though.

Well yeah I hope not! That's what a programming language is for, to turn data into documents.

asteroidburger 4 days ago | parent | next [-]

XSLT 2.0 is Turing complete.

mpyne 3 days ago | parent [-]

So are many esoteric languages, but I doubt people would appreciate me comparing XSLT to Brainfuck or FORTRAN 66.

stuaxo 4 days ago | parent | prev [-]

Having something declarative is good here, and XSL fills that.

nashashmi 4 days ago | parent | prev [-]

Let’s rewrite W3C into XML and xslt.