]> granicus.if.org Git - apache/commitdiff
Add a <parentdocument href="...">...</parentdocument> tag to
authorJoshua Slive <slive@apache.org>
Sun, 10 Nov 2002 20:34:48 +0000 (20:34 +0000)
committerJoshua Slive <slive@apache.org>
Sun, 10 Nov 2002 20:34:48 +0000 (20:34 +0000)
allow the docs to have a little more structure.  Used for the
"back" link and for the breadcrumb links.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97476 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index 84d76e69142a3829383f685940eb5d63a1f1d49d..16663001a7ceb9ea37a4f2fbdb7e6f6174a56776 100644 (file)
     </div> <!-- /page-header -->
 
     <div class="up">
-      <a href="./"><img src="{$path}/images/left.gif" alt="&lt;-" title="&lt;-" /></a>
+      <xsl:choose>
+        <xsl:when test="parentdocument">
+          <a href="{parentdocument/@href}"><img src="{$path}/images/left.gif" alt="&lt;-" title="&lt;-" /></a>
+        </xsl:when>
+        <xsl:otherwise>
+          <a href="./"><img src="{$path}/images/left.gif" alt="&lt;-" title="&lt;-" /></a>
+        </xsl:otherwise>
+      </xsl:choose>
     </div>
 
     <div id="path">
               <xsl:value-of select="$messages/message[@name='modules']"/>
             </a>
           </xsl:if>
-
+          <xsl:if test="parentdocument">
+            <xsl:text> &gt; </xsl:text>
+            <a href="{parentdocument/@href}">
+              <xsl:value-of select="parentdocument"/>
+            </a>
+          </xsl:if>
     </div> <!-- /path -->
   </xsl:template>
   <!-- /top -->