Warning, /frameworks/kdoctools/src/customization/kde-navig-online.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 <!-- only for the online version --> 0005 <!-- obfuscate email addresses --> 0006 <xsl:template match="email"> 0007 <xsl:call-template name="inline.monoseq"> 0008 <xsl:with-param name="content"> 0009 <xsl:text>(</xsl:text> 0010 <xsl:call-template name="replaceCharsInString"> 0011 <xsl:with-param name="stringIn" select="."/> 0012 <xsl:with-param name="charsIn" select="'@'"/> 0013 <xsl:with-param name="charsOut" select="' '"/> 0014 </xsl:call-template> 0015 <xsl:text>)</xsl:text> 0016 </xsl:with-param> 0017 </xsl:call-template> 0018 </xsl:template> 0019 <xsl:template name="replaceCharsInString"> 0020 <xsl:param name="stringIn"/> 0021 <xsl:param name="charsIn"/> 0022 <xsl:param name="charsOut"/> 0023 <xsl:choose> 0024 <xsl:when test="contains($stringIn,$charsIn)"> 0025 <xsl:value-of select="concat(substring-before($stringIn,$charsIn),$charsOut)"/> 0026 <xsl:call-template name="replaceCharsInString"> 0027 <xsl:with-param name="stringIn" select="substring-after($stringIn,$charsIn)"/> 0028 <xsl:with-param name="charsIn" select="$charsIn"/> 0029 <xsl:with-param name="charsOut" select="$charsOut"/> 0030 </xsl:call-template> 0031 </xsl:when> 0032 <xsl:otherwise> 0033 <xsl:value-of select="$stringIn"/> 0034 </xsl:otherwise> 0035 </xsl:choose> 0036 </xsl:template> 0037 <!-- end "only for the online version" --> 0038 0039 <xsl:template name="header.navigation"> 0040 <xsl:param name="prev" select="/foo"/> 0041 <xsl:param name="next" select="/foo"/> 0042 <xsl:variable name="home" select="/*[1]"/> 0043 <xsl:variable name="up" select="parent::*"/> 0044 <xsl:if test="$suppress.navigation = '0'"> 0045 <div id="header"> 0046 <div id="header_content"> 0047 <div id="header_left"> 0048 <div id="header_right"> 0049 <img src="{$kde.common}top-kde.jpg" width="36" height="34" /> 0050 <!-- The space is for spacing between the logo and title text --> 0051 <xsl:text> </xsl:text> 0052 <xsl:apply-templates 0053 select="." mode="title.markup"/> 0054 </div> 0055 </div> 0056 </div> 0057 </div> 0058 0059 <!-- output navigation links --> 0060 <div class="navCenter"> 0061 <table class="navigation"> 0062 <tr> 0063 <td class="prevCell"> 0064 <xsl:if test="count($prev)>0"> 0065 <a accesskey="p"> 0066 <xsl:attribute name="href"> 0067 <xsl:call-template name="href.target"> 0068 <xsl:with-param name="object" select="$prev"/> 0069 </xsl:call-template> 0070 </xsl:attribute> 0071 <xsl:call-template name="gentext.nav.prev"/> 0072 </a> 0073 </xsl:if> 0074 </td> 0075 <td class="upCell"> 0076 <xsl:choose> 0077 <xsl:when test="count($up) > 0 and $up != $home"> 0078 <xsl:apply-templates select="$up" mode="title.markup"/> 0079 </xsl:when> 0080 <xsl:otherwise> </xsl:otherwise> 0081 </xsl:choose> 0082 </td> 0083 <td class="nextCell"> 0084 <xsl:if test="count($next)>0"> 0085 <a accesskey="n"> 0086 <xsl:attribute name="href"> 0087 <xsl:call-template name="href.target"> 0088 <xsl:with-param name="object" select="$next"/> 0089 </xsl:call-template> 0090 </xsl:attribute> 0091 <xsl:call-template name="gentext.nav.next"/> 0092 </a> 0093 </xsl:if> 0094 </td> 0095 </tr> 0096 </table> 0097 </div> 0098 </xsl:if> 0099 </xsl:template> 0100 0101 <!-- ==================================================================== --> 0102 0103 <xsl:template name="footer.navigation"> 0104 <xsl:param name="prev" select="/foo"/> 0105 <xsl:param name="next" select="/foo"/> 0106 <xsl:variable name="home" select="/*[1]"/> 0107 <xsl:variable name="up" select="parent::*"/> 0108 0109 <xsl:if test="$suppress.navigation = '0'"> 0110 <div id="footer"> 0111 <!-- output navigation links --> 0112 <div class="navCenter"> 0113 <table class="navigation"> 0114 <tr> 0115 <td class="prevCell"> 0116 <xsl:if test="count($prev)>0"> 0117 <a accesskey="p"> 0118 <xsl:attribute name="href"> 0119 <xsl:call-template name="href.target"> 0120 <xsl:with-param name="object" select="$prev"/> 0121 </xsl:call-template> 0122 </xsl:attribute> 0123 <xsl:call-template name="gentext.nav.prev"/> 0124 </a> 0125 </xsl:if> 0126 </td> 0127 <td class="upCell"> 0128 <xsl:choose> 0129 <xsl:when test="$home != ."> 0130 <a accesskey="h"> 0131 <xsl:attribute name="href"> 0132 <xsl:call-template name="href.target"> 0133 <xsl:with-param name="object" select="$home"/> 0134 </xsl:call-template> 0135 </xsl:attribute> 0136 <xsl:call-template name="gentext.nav.home"/> 0137 </a> 0138 </xsl:when> 0139 <xsl:otherwise> </xsl:otherwise> 0140 </xsl:choose> 0141 </td> 0142 <td class="nextCell"> 0143 <xsl:if test="count($next)>0"> 0144 <a accesskey="n"> 0145 <xsl:attribute name="href"> 0146 <xsl:call-template name="href.target"> 0147 <xsl:with-param name="object" select="$next"/> 0148 </xsl:call-template> 0149 </xsl:attribute> 0150 <xsl:call-template name="gentext.nav.next"/> 0151 </a> 0152 </xsl:if> 0153 </td> 0154 </tr> 0155 <tr> 0156 <td class="prevCell"> 0157 <xsl:apply-templates select="$prev" mode="title.markup"/> 0158 <xsl:text> </xsl:text> 0159 </td> 0160 <td class="upCell"> 0161 <xsl:choose> 0162 <xsl:when test="count($up) > 0 and $up != $home"> 0163 <xsl:apply-templates select="$up" mode="title.markup"/> 0164 </xsl:when> 0165 <xsl:otherwise> </xsl:otherwise> 0166 </xsl:choose> 0167 </td> 0168 <td class="nextCell"> 0169 <xsl:text> </xsl:text> 0170 <xsl:apply-templates select="$next" mode="title.markup"/> 0171 </td> 0172 </tr> 0173 </table> 0174 </div> 0175 </div> 0176 </xsl:if> 0177 </xsl:template> 0178 0179 </xsl:stylesheet>