Date:   Monday February 3, 2003 @ 14:30
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 
Added Files:
        wikitags.xsl 
Log Message:
Updated stylesheets for search
Log:
PR:

Index: wiki.xsl
===================================================================
RCS file: /home/cvs/AxKit-XSP-Wiki/webstuff/wiki.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -u -r1.8 -r1.9
--- wiki.xsl    2003/02/03 14:18:25     1.8
+++ wiki.xsl    2003/02/03 14:30:11     1.9
@@ -4,6 +4,7 @@
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 >
 
+<xsl:inclued href="wikitags.xsl"/>
 <xsl:include href="pod.xsl"/>
 <xsl:include href="wikitext.xsl"/>
 <xsl:include href="docbook.xsl"/>
@@ -24,6 +25,13 @@
       <body>
        <div class="topbanner">
          Wiki
+         <div class="searchbanner">
+            <form action="./{/xspwiki/page}" method="GET">
+              <input type="hidden" name="action" value="search"/>
+              <input type="text" name="q" maxlength="255" size="20"/>
+              <input type="submit" value=" Search "/>
+            </form>
+         </div>
        </div>
        <div class="base">
         <table><tr><td valign="top" width="160">
@@ -90,106 +98,5 @@
        
     </html>
 </xsl:template>
-
-<xsl:template match="/xspwiki/title"/>
-<xsl:template match="/xspwiki/page"/>
-<xsl:template match="/xspwiki/db"/>
-
-<xsl:template match="xspwiki">
-  <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="edit">
-<form action="./{/xspwiki/page}" method="POST" 
enctype="application/x-www-form-urlencoded">
-  <input type="hidden" name="action" value="save"/>
-  <h1><xsl:value-of select="/xspwiki/page"/> : 
-      <input type="submit" value=" Save "/>
-      <input type="submit" name="preview" value=" Preview "/></h1>
-  <textarea name="text" style="width:100%" rows="18" cols="80" wrap="virtual">
-    <xsl:value-of select="string(./text)"/>
-  </textarea>
-  <xsl:apply-templates select="./texttypes"/>
-</form>
-</xsl:template>
-
-<xsl:template match="texttypes">
-  Text Type: 
-  <select name="texttype">
-    <xsl:apply-templates/>
-  </select>
-</xsl:template>
-
-<xsl:template match="texttype">
-  <option value="{@id}">
-  <xsl:if test="@selected">
-         <xsl:attribute name="selected">selected</xsl:attribute>
-  </xsl:if>
-         <xsl:apply-templates/>
-  </option>
-</xsl:template>
-
-<xsl:template match="history">
-  <h1>History for <xsl:value-of select="/xspwiki/page"/></h1>
-  <table>
-  <tr><th>Date</th><th>IP Address</th><th>Bytes</th></tr>
-  <xsl:apply-templates select="./entry"/>
-  </table>
-</xsl:template>
-
-<xsl:template match="history/entry">
-  <tr>
-    <xsl:apply-templates/>
-  </tr>
-</xsl:template>
-
-<xsl:template match="history/entry/id">
-</xsl:template>
-
-<xsl:template match="history/entry/modified">
-  <td><a 
href="./{/xspwiki/page}?action=historypage;id={../id}"><xsl:apply-templates/></a></td>
-</xsl:template>
-
-<xsl:template match="history/entry/ip-address">
-  <td><xsl:apply-templates/></td>
-</xsl:template>
-
-<xsl:template match="history/entry/bytes">
-  <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>
-
-<!-- useful for testing - commented out for live
-<xsl:template match="node()|@*">
-  <xsl:copy>
-   <xsl:apply-templates select="@*"/>
-   <xsl:apply-templates/>
-  </xsl:copy>
-</xsl:template>
--->
 
 </xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to