Re: [xsl] Haskell programmer's rant about xslt

Subject: Re: [xsl] Haskell programmer's rant about xslt
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 17 Apr 2012 16:34:27 +0100
> I agree. I was puzzled by this criticism. Surely it wasn't about the
> encapsulation of logic in templates, subroutines, or (gasp) functions. So is
> he unhappy about data-driven transformations? (Does he have a better idea
> for this class of problem?)

I think he was caught out by import precedence, the old problem of the
order of the imports determining the priority of the templates.

And then (if we want to be harsh) wasn't able to debug the problem,
although he says it only took an hour to sort out...  if thats the
case its hardly worth blogging about.

I think the 'final' modifier in 3.0 might help here, as you would be
able to make the template you expect to be being matched (but isnt)
final, then the processor will complain about the template that's
overriding it.

Andrew Welch

Current Thread