You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2002/11/10 21:34:48 UTC
cvs commit: httpd-2.0/docs/manual/style/xsl common.xsl
slive 2002/11/10 12:34:48
Modified: docs/manual/style/xsl common.xsl
Log:
Add a <parentdocument href="...">...</parentdocument> tag to
allow the docs to have a little more structure. Used for the
"back" link and for the breadcrumb links.
Revision Changes Path
1.18 +14 -2 httpd-2.0/docs/manual/style/xsl/common.xsl
Index: common.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/common.xsl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -b -u -r1.17 -r1.18
--- common.xsl 16 Oct 2002 06:45:22 -0000 1.17
+++ common.xsl 10 Nov 2002 20:34:48 -0000 1.18
@@ -110,7 +110,14 @@
</div> <!-- /page-header -->
<div class="up">
+ <xsl:choose>
+ <xsl:when test="parentdocument">
+ <a href="{parentdocument/@href}"><img src="{$path}/images/left.gif" alt="<-" title="<-" /></a>
+ </xsl:when>
+ <xsl:otherwise>
<a href="./"><img src="{$path}/images/left.gif" alt="<-" title="<-" /></a>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
<div id="path">
@@ -136,7 +143,12 @@
<xsl:value-of select="$messages/message[@name='modules']"/>
</a>
</xsl:if>
-
+ <xsl:if test="parentdocument">
+ <xsl:text> > </xsl:text>
+ <a href="{parentdocument/@href}">
+ <xsl:value-of select="parentdocument"/>
+ </a>
+ </xsl:if>
</div> <!-- /path -->
</xsl:template>
<!-- /top -->