Re: [xsl] Preferred declarative approach for outputting tallies based on complex triggers

Subject: Re: [xsl] Preferred declarative approach for outputting tallies based on complex triggers
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 10 Apr 2014 12:20:53 +0100
On 10/04/2014 12:12, David Rudel wrote:
Another method would be to use a recursive function on a sequence:

The new xsl:iterate and friends can be seen (at the definitional level) as syntactic sugar for a recursive function. So at one level these are equivalent but (especially if you plan to use the new streaming features) I would guess (without looking at the source of an XSLT system) that the xsl:iterate is much easier to optimise/stream as identifying a specific xsl construct introduced for that purpose is going to be "slightly easier" than analysing the structure of an arbitrary user supplied recursive function to see if it amenable for streaming or optimisation in any way.




David


Current Thread