Warning, /frameworks/kdoctools/src/customization/kde-web-navig.xsl is written in an unsupported language. File is not indexed.
0001 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 0002 version="1.0"> 0003 0004 0005 <xsl:template name="header.navigation"> 0006 <xsl:param name="prev" select="/foo"/> 0007 <xsl:param name="next" select="/foo"/> 0008 <xsl:variable name="home" select="/*[1]"/> 0009 <xsl:variable name="up" select="parent::*"/> 0010 <xsl:if test="$suppress.navigation = '0'"> 0011 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 0012 <tr class="header"> 0013 <td colspan="2"> </td> 0014 </tr> 0015 <tr id="logo"> 0016 <td valign="top"> 0017 <img src="{$kde.common}part_of_the_kde_family_horizontal_190.png" alt="Part of the KDE family" 0018 width="190" height="68" border="0" /> 0019 </td> 0020 <td valign="middle" align="center" id="location"> 0021 <h1><!-- Why was this used in fact: could the text not just be copied?--> 0022 <xsl:apply-templates select="." mode="title.markup"/> 0023 </h1> 0024 </td> 0025 </tr> 0026 </table> 0027 0028 <table width="100%" class="header"> 0029 <tbody> 0030 <tr> 0031 <td align="left" class="navLeft" width="33%"> 0032 <xsl:if test="count($prev)>0"> 0033 <a accesskey="p"> 0034 <xsl:attribute name="href"> 0035 <xsl:call-template name="href.target"> 0036 <xsl:with-param name="object" select="$prev"/> 0037 </xsl:call-template> 0038 </xsl:attribute> 0039 <xsl:call-template name="gentext.nav.prev"/> 0040 </a> 0041 </xsl:if> 0042 </td> 0043 0044 <td align="center" class="navCenter" width="34%"> 0045 <xsl:choose> 0046 <xsl:when test="count($up) > 0 and $up != $home"> 0047 <xsl:apply-templates select="$up" mode="title.markup"/> 0048 </xsl:when> 0049 <xsl:otherwise> </xsl:otherwise> 0050 </xsl:choose> 0051 </td> 0052 <td align="right" class="navRight" width="33%">  0053 <xsl:if test="count($next)>0"> 0054 <a accesskey="n"> 0055 <xsl:attribute name="href"> 0056 <xsl:call-template name="href.target"> 0057 <xsl:with-param name="object" select="$next"/> 0058 </xsl:call-template> 0059 </xsl:attribute> 0060 <xsl:call-template name="gentext.nav.next"/> 0061 </a> 0062 </xsl:if> 0063 </td> 0064 </tr> 0065 </tbody> 0066 </table> 0067 0068 </xsl:if> 0069 </xsl:template> 0070 0071 <!-- ==================================================================== --> 0072 0073 <xsl:template name="footer.navigation"> 0074 <xsl:param name="prev" select="/foo"/> 0075 <xsl:param name="next" select="/foo"/> 0076 <xsl:variable name="home" select="/*[1]"/> 0077 <xsl:variable name="up" select="parent::*"/> 0078 0079 <xsl:if test="$suppress.navigation = '0'"> 0080 0081 <!-- Bottom Navigation --> 0082 <table width="100%" class="bottom-nav"> 0083 <tr> 0084 <td width="33%" align="left" valign="top" class="navLeft"> 0085 <xsl:if test="count($prev)>0"> 0086 <a> 0087 <xsl:attribute name="href"> 0088 <xsl:call-template name="href.target"> 0089 <xsl:with-param name="object" select="$prev"/> 0090 </xsl:call-template> 0091 </xsl:attribute> 0092 <xsl:call-template name="gentext.nav.prev"/> 0093 </a> 0094 </xsl:if> 0095 </td> 0096 <td width="34%" align="center" valign="top" class="navCenter"> 0097 <xsl:choose> 0098 <xsl:when test="$home != ."> 0099 <a> 0100 <xsl:attribute name="href"> 0101 <xsl:call-template name="href.target"> 0102 <xsl:with-param name="object" select="$home"/> 0103 </xsl:call-template> 0104 </xsl:attribute> 0105 <xsl:call-template name="gentext.nav.home"/> 0106 </a> 0107 </xsl:when> 0108 <xsl:otherwise> </xsl:otherwise> 0109 </xsl:choose> 0110 </td> 0111 0112 <td width="33%" align="right" valign="top" class="navRight"> 0113 <xsl:if test="count($next)>0"> 0114 <a> 0115 <xsl:attribute name="href"> 0116 <xsl:call-template name="href.target"> 0117 <xsl:with-param name="object" select="$next"/> 0118 </xsl:call-template> 0119 </xsl:attribute> 0120 <xsl:call-template name="gentext.nav.next"/> 0121 </a> 0122 </xsl:if> 0123 </td> 0124 </tr> 0125 0126 <tr> 0127 <td width="33%" align="left" class="navLeft"> 0128 <xsl:apply-templates select="$prev" mode="title.markup"/> 0129 <xsl:text> </xsl:text> 0130 </td> 0131 <td width="34%" align="center" class="navCenter"> 0132 <xsl:choose> 0133 <xsl:when test="count($up)>0"> 0134 <a> 0135 <xsl:attribute name="href"> 0136 <xsl:call-template name="href.target"> 0137 <xsl:with-param name="object" select="$up"/> 0138 </xsl:call-template> 0139 </xsl:attribute> 0140 <xsl:call-template name="gentext.nav.up"/> 0141 </a> 0142 </xsl:when> 0143 <xsl:otherwise> </xsl:otherwise> 0144 </xsl:choose> 0145 </td> 0146 <td width="33%" align="right" class="navRight"> 0147 <xsl:text> </xsl:text> 0148 <xsl:apply-templates select="$next" mode="title.markup"/> 0149 </td> 0150 </tr> 0151 </table> 0152 0153 </xsl:if> 0154 </xsl:template> 0155 0156 0157 </xsl:stylesheet>