Subject: Re: [xsl] Finding distinct nodes using a function in XSLT 2.0 From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 18 Apr 2007 14:49:20 +0200 |
On 4/17/07, Scott Lynch <slynch@xxxxxxxxxx> wrote:Dimitre,
That works nicely.
However, is there any difference between <xsl:sequence select="."/> (which works) rather than say <xsl:sequence select="current-group()[1]"/> which also works, in the overall template logic?
Hi Scott,
No there isn't any difference (in this case), because as the XSLT2.0 spec says:
<!-- or, with sorting --> <xsl:perform-sort select=" for $i in distinct-values($files/*/bar/@id) return ($files/*/*[@id = $i])[1]" >
<xsl:sort select="@id" /> </xsl:perform-sort>
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Finding distinct nodes us, Dimitre Novatchev | Thread | Re: [xsl] Finding distinct nodes us, Dimitre Novatchev |
Re: [xsl] XSLT Dead?, Mukul Gandhi | Date | [xsl] Re: Grouping using the set:Di, Vandna Sharma |
Month |