2 ms·
I always figured you could get the vast majority of XSLT's benefits without its (numerous) drawbacks by implementing the core match/transform idea in an actual
by masklinn 10y ago
I always figured you could get the vast majority of XSLT's benefits without its (numerous) drawbacks by implementing the core match/transform idea in an actual general-purpose expression-oriented language like Haskell or Clojure or Ruby or whatever.
- rwmj 10y agoExactly. CDuce was a noble (but IMHO failed) attempt to add an XML-like DSL with functional-language overtones. For example you could write: transform bib with <_ (a)> [(x::(Author|Title|Url)|_)*] -> [ <book ({isbn="fake"}+a\year)> x ] where the <...> syntax looks similar to XML. (This example copied from http://www.cduce.org/tutorial_patterns.html http://www.cduce.org/tutorial_patterns.html )