Subject: Re: [xsl] Removing Duplicate Nodes From: "andrew welch" <andrew.j.welch@xxxxxxxxx> Date: Sun, 13 Aug 2006 10:33:10 +0100 |
With some work I have been able to get all the distinct values but I don't know how to get only first 8 distinct values :
My XSL goes something like this :
<xsl:apply-templates select="//HIT[generate-id(.) = generate-id(key('hit-keyword', substring-after(substring-before(substring-before(FIELD[@NAME='docvector'] ,'1]'),','),'['))[1])]" mode="col"/>
<xsl:apply-templates select="//HIT[generate-id(.) = generate-id(key('hit-keyword', substring-after(substring-before(substring-before(FIELD[@NAME='docvector'] ,'1]'),','),'['))[1])][position() <= 8]" mode="col"/>
cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Removing Duplicate Nodes, Ashutosh Bhardwaj | Thread | [xsl] Use of separator, Georg Hohmann |
Re: [xsl] Removing Duplicate Nodes, Ashutosh Bhardwaj | Date | Re: [xsl] Problem with embeded XHTM, Luuk Jansen |
Month |