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