Date: Monday February 3, 2003 @ 8:34
Author: matt
Update of /home/cvs/AxKit-XSP-Wiki/webstuff
In directory ted.sergeant.org:/home/matt/Perl/AxKit-XSP-Wiki/webstuff
Modified Files:
wiki.xsl
Log Message:
Added XSL for search
Log:
PR:
Index: wiki.xsl
===================================================================
RCS file: /home/cvs/AxKit-XSP-Wiki/webstuff/wiki.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -u -r1.6 -r1.7
--- wiki.xsl 2003/01/29 14:09:58 1.6
+++ wiki.xsl 2003/02/03 08:34:44 1.7
@@ -147,6 +147,28 @@
<td><xsl:apply-templates/></td>
</xsl:template>
+<xsl:template match="search-results">
+ <h1>Search Results:</h1>
+ <xsl:choose>
+ <xsl:when test="./result">
+ <table>
+ <tr><th>Page</th><th>Rank</th></tr>
+ <xsl:apply-templates/>
+ </table>
+ </xsl:when>
+ <xsl:otherwise>
+ No match found for <em><xsl:value-of select="$q"/></em>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="search-results/result">
+ <tr>
+ <td><a href="{page/text()}"><xsl:apply-templates select="page"/></a></td>
+ <td><xsl:apply-templates select="rank"/></td>
+ </tr>
+</xsl:template>
+
<xsl:template match="newpage">
<i>This page has not yet been created</i>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]