xsl-list
[Top] [All Lists]

Re: [xsl] When to use conditional constructions?

2014-04-04 22:49:51
On Sun, Mar 30, 2014 at 6:28 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> 
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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>