News for hackers. Stuff that matters.
Re:Why I like XSLT by ams6110 on Friday December 05, 2014 @07:40PM (#8707850)
I used to use it in the browser (IE with MSXML, back in the early/middle part of the last decade) for web apps. XML from the server, XSLT in the browser to generate the UI. You could re-sort, filter, drill-down, etc. all without ever hitting the server again. Just different transforms on the same data. I loved it. Never felt so productive. Rich responsive apps years before JSON and Jquery and all the subsequent JS frameworks started gaining traction.

Syntax is verbose, but felt that the power was worth it. Never found a declarative, functional way to do the same kind of transforms on JSON data, but I'm sure it must exist by now.

Re:Why I like XSLT by tchvil on Saturday December 06, 2014 @02:12AM (#8708627)
Nothing came close to the speed of XSLT when IE was ruling. I loved it, and enabled us to build very fast web apps.

But then came JSON, Firefox and other browsers that made XSLT/XML look a less supported and ageing tech.

I tried to write a js equivalent in 2008. And after a couple of iterations it finally ended up with this: http://gitHub.com/pure/pure

It is declarative. With CSS selectors instead of XPATH. Do not mix at all with HTML. And fast rendering.