Re: [xsl] When to use conditional constructions?

Subject: Re: [xsl] When to use conditional constructions?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 31 Mar 2014 17:52:20 +0100
On 31/03/2014 17:40, Graydon wrote:

-- so I wouldn't expect to be able to use the same definition in
multiple match attributes without defining it each time, which isn't
helpful on the "define in one place, debug, use with confidence"

-- Graydon

Oh but that's XSLT use rather than pure XPath so you can do that already
in XSLT 2 define the function using xsl:function and use it in any XPath
within the stylesheet.

XPath3 gives a way of defining functions within XPath itself, which is
useful especially if ou are using XPath directly not via XSLT or XSquery


Current Thread