Re: [xsl] How to mark every 5th output record.

Subject: Re: [xsl] How to mark every 5th output record.
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 11 Mar 2008 16:14:29 +0100 (CET)
David Carlisle wrote:

> often it doesn't need much of a change if you are doing

> <xsl:appy-templates select="something"/>

> to select a pile of them in parallel, instead do

> <xsl:appy-templates select="(something)[1]">
>   <xsl:with-param name="c" select="1"/>
> </xsl:apply-templates?

  Well, that's the simplest form.  But if there are a lot of template
rules, that can quickly become tedious.  And if the walking is not the
natural XSLT walking (for instance two different select expressions
that apply the same template rules in different context) that can
become complex...



Envoyez avec Yahoo! Mail. Une boite mail plus intelligente

Current Thread