Im trying to display results based on a keyword which is working just fine.
The problem is that it shows the results found 3 times (the current total number of records).
I want it to just show the records I choose and then sort them.
heres the XSL I'm using:
<xsl:template match="fiches/fiche">
<xsl:for-each select="//fiche">
<xsl:sort order="descending" select="texte/fichetitre"/>
<xsl:if test="texte/*= $keyword">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="*" class="pad">
<xsl:value-of select="texte/fichetitre" />
</td>
<td width="150" align="center" class="pad"><xsl:value-of select="texte/typeheberg" /></td>
<td width="150" align="center" class="pad"><xsl:text>73</xsl:text></td>
<td width="100" align="center" class="pad"><xsl:value-of select="region/regionnseo" /></td>
</tr>
</table>
</xsl:if>
</xsl:for-each>
</xsl:template>
Anyone know how to fix this?
I think I have the code in the wrong order?
thanks!
The problem is that it shows the results found 3 times (the current total number of records).
I want it to just show the records I choose and then sort them.
heres the XSL I'm using:
<xsl:template match="fiches/fiche">
<xsl:for-each select="//fiche">
<xsl:sort order="descending" select="texte/fichetitre"/>
<xsl:if test="texte/*= $keyword">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="*" class="pad">
<xsl:value-of select="texte/fichetitre" />
</td>
<td width="150" align="center" class="pad"><xsl:value-of select="texte/typeheberg" /></td>
<td width="150" align="center" class="pad"><xsl:text>73</xsl:text></td>
<td width="100" align="center" class="pad"><xsl:value-of select="region/regionnseo" /></td>
</tr>
</table>
</xsl:if>
</xsl:for-each>
</xsl:template>
Anyone know how to fix this?
I think I have the code in the wrong order?
thanks!