The SLAX Scripting Language: An Alternate Syntax for XSLT

(juniper.github.io)

12 points | by thefilmore 2 days ago

4 comments

  • codeulike 1 hour ago
    The result is scripts that are easier to develop and maintain.

    I believe this goes against the official specification of XML

    • pwagland 20 minutes ago
      At the very least, it goes against the spirit of the specification, even if there is no explicit wording forbidding it.
  • nullorempty 49 minutes ago
    Any incremental improvement and simplification had higher value in the past. Nowadays, the improvements need to be grandeur to justify introducing another way to achieve the same thing. I expect that LLMs will be great at writing standard XSL.
  • pitched 1 hour ago
    Some 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...
  • petesergeant 56 minutes ago
    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.
    • yxhuvud 52 minutes ago
      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.