New ranking rank-2 .. Like rank-1 but subtracts staticrank.
[idzebra-moved-to-github.git] / test / xslt / snippet.xsl
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2  version="1.0">
3 <!-- Identity transform stylesheet -->
4
5 <xsl:param name="snippet" select="''"/>
6 <xsl:param name="score" select="''"/>
7 <xsl:param name="id" select="''"/>
8 <xsl:param name="rank" select="''"/>
9 <xsl:output indent="yes"
10       method="xml"
11       version="1.0"
12       encoding="UTF-8"/>
13
14  <xsl:template match="/">
15    <snippet>
16      <id><xsl:value-of select="$id"/></id>
17      <score><xsl:value-of select="$score"/></score>
18      <rank><xsl:value-of select="$rank"/></rank>
19      <xsl:copy-of select="$snippet"/>
20    </snippet>
21  </xsl:template>
22
23 </xsl:stylesheet>