rendered paste body<?xml version="1.0" encoding="UTF-8" ?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/><xsl:variable name="num_results"> <xsl:choose> <xsl:when test="/GSP/PARAM[(@name='num') and (@value!='')]"> <xsl:value-of select="/GSP/PARAM[@name='num']/@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="10"/> </xsl:otherwise> </xsl:choose></xsl:variable><xsl:variable name="view_begin"> <xsl:value-of select="/GSP/RES/@SN"/></xsl:variable><xsl:variable name="view_end"> <xsl:value-of select="/GSP/RES/@EN"/></xsl:variable><xsl:variable name="q"> <xsl:value-of select="/GSP/Q"/></xsl:variable><xsl:variable name="next"> <xsl:value-of select="/GSP/RES/NB/NU"/></xsl:variable><xsl:variable name="prev"> <xsl:value-of select="/GSP/RES/NB/PU"/></xsl:variable> <xsl:variable name="mod_end"> <xsl:choose> <xsl:when test="$next"><xsl:value-of select="/GSP/RES/M"/></xsl:when> <xsl:otherwise><xsl:value-of select="/GSP/RES/@EN"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:template match="/"> <div class="ad160x600" style="float: right;width: 160px;"><script type="text/javascript"><!-- OAS_AD('x18'); //--></script></div> <h3>Search Results</h3> <xsl:choose> <xsl:when test="/GSP/RES"> <xsl:apply-templates select="GSP/RES/R"/> <xsl:call-template name="navigation"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> <xsl:with-param name="view_begin" select="$view_begin"/> <xsl:with-param name="view_end" select="$view_end"/> </xsl:call-template> </xsl:when> <xsl:otherwise> No results found. </xsl:otherwise> </xsl:choose> <div class="ad468x60"><script type="text/javascript"><!-- OAS_AD('x16'); //--></script></div> </xsl:template> <xsl:template match="R"> <div> <h2 style="padding: 0;margin: 0;"> <xsl:element name="a"> <xsl:attribute name="href"><xsl:value-of select="U"/></xsl:attribute> <xsl:attribute name="class">effect3</xsl:attribute> <xsl:value-of select="T" disable-output-escaping="yes"/> </xsl:element> </h2> <p style="margin:0;margin-bottom: 20px;"><xsl:value-of select="S" disable-output-escaping="yes"/></p> </div> </xsl:template> <xsl:template name="nbsp"> <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></xsl:template> <xsl:template name="result_nav"> <xsl:param name="start" select="'0'"/> <xsl:param name="end"/> <xsl:param name="current_view"/> <xsl:param name="navigation_style"/> <!-- *** Choose how to show this result set *** --> <xsl:choose> <xsl:when test="($start)<(($current_view)-(10*($num_results)))"> </xsl:when> <xsl:when test="(($current_view)>=($start)) and (($current_view)<(($start)+($num_results)))"> <td> <xsl:call-template name="nbsp"/> <strong><xsl:value-of select="(($start)div($num_results))+1"/></strong> <xsl:call-template name="nbsp"/> </td> </xsl:when> <xsl:otherwise> <td> <xsl:call-template name="nbsp"/> <a class="effect2" href="search?q={$q}&s={$start}"> <xsl:value-of select="(($start)div($num_results))+1"/> </a> <xsl:call-template name="nbsp"/> </td> </xsl:otherwise> </xsl:choose> <!-- *** Recursively iterate through result sets to display *** --> <xsl:if test="((($start)+($num_results))<($end)) and ((($start)+($num_results))<(($current_view)+ (10*($num_results))))"> <xsl:call-template name="result_nav"> <xsl:with-param name="start" select="$start+$num_results"/> <xsl:with-param name="end" select="$end"/> <xsl:with-param name="current_view" select="$current_view"/> <xsl:with-param name="navigation_style" select="$navigation_style"/> </xsl:call-template> </xsl:if></xsl:template><xsl:template name="navigation"> <xsl:param name="prev"/> <xsl:param name="next"/> <xsl:param name="view_begin"/> <xsl:param name="view_end"/> <xsl:param name="guess"/> <xsl:if test="($prev) or ($next)"> <h2>Result pages:</h2> <table> <tr> <!-- prev --> <xsl:choose> <xsl:when test="$prev"> <td> <a href="search?q={$q}&start={$view_begin - $num_results - 1}" class="effect3"> <xsl:text><</xsl:text> <xsl:text>Previous</xsl:text> </a> <xsl:call-template name="nbsp"/> </td> </xsl:when> <xsl:otherwise> <td> </td> </xsl:otherwise> </xsl:choose> <!-- num listing --> <xsl:call-template name="result_nav"> <xsl:with-param name="start" select="0"/> <xsl:with-param name="end" select="$mod_end"/> <xsl:with-param name="current_view" select="($view_begin)-1"/> </xsl:call-template> <!-- next --> <xsl:choose> <xsl:when test="$next"> <td> <xsl:call-template name="nbsp"/> <a href="search?q={$q}&s={$view_begin + $num_results - 1}" class="effect3"> <xsl:text>Next</xsl:text> <xsl:text>></xsl:text> </a> </td> </xsl:when> <xsl:otherwise> <td> <xsl:call-template name="nbsp"/> </td> </xsl:otherwise> </xsl:choose> </tr> </table> </xsl:if></xsl:template> </xsl:stylesheet>