summaryrefslogtreecommitdiff
path: root/doc/site.xsl
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-01-07 12:15:06 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-01-07 12:15:06 +0000
commit1cd1c40976c303da89a54bee29eb817c8d3f5efb (patch)
tree1c8277e22d8aada0b25575828904aa4a8980acd8 /doc/site.xsl
parentc3a88317d5e8ab4554d96b7446a6a31ba1bae5d7 (diff)
downloadlibxslt-1cd1c40976c303da89a54bee29eb817c8d3f5efb.tar.gz
libxslt-1cd1c40976c303da89a54bee29eb817c8d3f5efb.tar.bz2
libxslt-1cd1c40976c303da89a54bee29eb817c8d3f5efb.zip
a little cleanup of scripts, assuring page tables are consistent. api docs
* doc/api.xsl, doc/site.xsl, doc/search.php: a little cleanup of scripts, assuring page tables are consistent. * doc/*: api docs rebuilt with enhanced scripts.
Diffstat (limited to 'doc/site.xsl')
-rw-r--r--doc/site.xsl19
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/site.xsl b/doc/site.xsl
index b5829e83..18a0339c 100644
--- a/doc/site.xsl
+++ b/doc/site.xsl
@@ -20,7 +20,18 @@
<!-- href_base gives the location of 'base documentation' files
and is often changed by importing stylesheets -->
<xsl:variable name="href_base" select="''"/>
-
+
+ <xsl:variable name="home_base">
+ <xsl:choose>
+ <xsl:when test="$dirname != ''">
+ <xsl:value-of select = "'../'"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select = "''"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<!--
- returns the filename associated to an ID in the original file
-->
@@ -84,7 +95,7 @@
- The table of content
-->
<xsl:variable name="toc">
- <form action="search.php"
+ <form action="{$home_base}search.php"
enctype="application/x-www-form-urlencoded" method="get">
<input name="query" type="text" size="20" value=""/>
<input name="submit" type="submit" value="Search ..."/>
@@ -109,7 +120,7 @@
<xsl:choose>
<xsl:when test="$dirname != ''">
- <li><a href="{$href_base}index.html" style="font-weight:bold">libxslt</a></li>
+ <li><a href="../index.html" style="font-weight:bold">libxslt</a></li>
</xsl:when>
<xsl:otherwise>
<li><a href="EXSLT/index.html" style="font-weight:bold">libexslt</a></li>
@@ -340,7 +351,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
<td bgcolor="#fffacd">
- <xsl:apply-templates mode="subfile" select="$header/following-sibling::*[preceding-sibling::h2[1] = $header and name() != 'h2' ]"/>
+ <xsl:apply-templates mode="subfile" select="$header/following-sibling::*[preceding-sibling::h2[1] = $header and name() != 'h2' and position() != last()]"/>
<p><a href="bugs.html">Daniel Veillard</a></p>
</td>
</tr>