I don’t hate this, but it’s fundamentally exactly the same language with a terser syntax. Once you’ve drunk the XSLT kool-aid you’re deep into an IDE that knows how to write it, with auxiliary tooling that knows how to process it, so I’m not sure what actual problem this would solve in the trenches.
Also, "Built on top of libxslt and libxml2" is a fairly harsh restriction in that it stops any usage of xslt 2.x or 3.x. Which has quite significant improvements.
The SLAX Scripting Language: An Alternate Syntax for XSLT
11–15 of 15 posts
Re: The SLAX Scripting Language: An Alternate Syntax for XSLT
#12Re: The SLAX Scripting Language: An Alternate Syntax for XSLT
#13And while that sounds like just a funny gimmick, it has real practical applications:
If you've got a CMS that generates HTML from XML documents, you can write the XSLT for that by hand of course. But if there are common patterns that most sites use (menus, for example), while different customers use their own custom document format, it would be really nice if you could generate that XSLT from the data model definition. Long ago I've worked on a CMS that did exactly that.
Re: The SLAX Scripting Language: An Alternate Syntax for XSLT
#14Some examples of where it improves XSLT would be helpful. The first one I found in the docs looks roughly identical: https://juniper.github.io/libslax/slax-manual.html#expressio...
In "peeking under the hood", it says quite honestly "SLAX is purely syntactic sugar." I think that the XML syntax of XSLT itself was only one barrier for people to adopt XSLT, even in the XML heydays. The main obstacles appear to me that the execution model is hard for people to graps; you need to think both as a parser (apply-templates/) and in a more declarative style at the same time. The XSLT can be in a complete…