Re: [xsl] When to use conditional constructions?

Subject: Re: [xsl] When to use conditional constructions?
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Sat, 5 Apr 2014 04:49:33 +0100
On Sun, Mar 30, 2014 at 6:28 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> This raises the question as to how much of the logic to put in XSLT instructions and how much in XPath expressions.
>
>
> I do have a strong preferance for multiple template rules over xsl:choose. I think this is mainly because it makes it easier to evolve the code as it develops over time.
>

xsl:choose doesn't cut the mustard when you want multiple things done
rather than to exit as soon as one condition is true. I am about to
rip out one of the few chooses that I have allowed to survive for this
very reason and because the template is already rather long - see
earlier remarks about implications for testing and I don't want it to
get even longer.

Current Thread