Warning, /frameworks/kdoctools/src/customization/kde-web.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:import href="kde-include-common.xsl"/>
0005 <xsl:include href="kde-web-navig.xsl"/>
0006 <xsl:include href="kde-ttlpg.xsl"/>
0007 <xsl:include href="kde-style.xsl"/>
0008
0009 <xsl:variable name="KDOCTOOLS_XSLT_VERSION">1.13</xsl:variable>
0010
0011 <xsl:template name="make-relative-filename">
0012 <xsl:param name="base.dir" select="'./'"/>
0013 <xsl:param name="base.name" select="''"/>
0014
0015 <!-- XT makes chunks relative -->
0016 <xsl:choose>
0017 <xsl:when test="count(parent::*) = 0">
0018 <xsl:value-of select="concat($base.dir,$base.name)"/>
0019 </xsl:when>
0020 <xsl:otherwise>
0021 <xsl:value-of select="$base.name"/>
0022 </xsl:otherwise>
0023 </xsl:choose>
0024 </xsl:template>
0025
0026 <xsl:template name="write.chunk">
0027 <xsl:param name="filename" select="''"/>
0028 <xsl:param name="method" select="'html'"/>
0029 <xsl:param name="encoding" select="'utf-8'"/>
0030 <xsl:param name="content" select="''"/>
0031
0032 <FILENAME filename="{$filename}">
0033 <xsl:copy-of select="$content"/>
0034 </FILENAME>
0035 </xsl:template>
0036
0037 <xsl:param name="use.id.as.filename">1</xsl:param>
0038 <xsl:param name="generate.section.toc">0</xsl:param>
0039 <xsl:param name="generate.component.toc">0</xsl:param>
0040 <xsl:param name="use.extensions">0</xsl:param>
0041 <xsl:param name="admon.graphics">0</xsl:param>
0042 <xsl:param name="kde.common">../common/</xsl:param>
0043 <xsl:param name="html.stylesheet" select="concat($kde.common,'kde-default.css')"/>
0044 <xsl:param name="admon.graphics.path"><xsl:value-of select="kde.common"/></xsl:param>
0045
0046
0047 <xsl:template name="dbhtml-filename">
0048 <xsl:choose>
0049 <xsl:when test=". != /*">
0050 <xsl:value-of select="@id"/>
0051 <xsl:value-of select="$html.ext"/>
0052 </xsl:when>
0053 <xsl:otherwise>
0054 <xsl:text>index.html</xsl:text>
0055 </xsl:otherwise>
0056 </xsl:choose>
0057 </xsl:template>
0058
0059 <xsl:template name="dbhtml-dir">
0060 </xsl:template>
0061
0062 <xsl:template name="user.head.content">
0063 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
0064 <meta name="GENERATOR" content="KDE XSL Stylesheet V{$KDOCTOOLS_XSLT_VERSION} using libxslt"/>
0065 </xsl:template>
0066
0067 <!-- try with olinks: it nearly works --><!--
0068 <xsl:template match="olink">
0069 <a>
0070 <xsl:attribute name="href">
0071 <xsl:choose>
0072 <xsl:when test="@type = 'kde-installation'">
0073 <xsl:choose>
0074 <xsl:when test="@linkmode = 'kdems-man'">
0075 <xsl:value-of select="id(@linkmode)"/>
0076 <xsl:value-of select="@targetdocent"/>
0077 <xsl:text>(</xsl:text>
0078 <xsl:value-of select="@localinfo"/>
0079 <xsl:text>)</xsl:text>
0080 </xsl:when>
0081 <xsl:when test="@linkmode = 'kdems-help'">
0082 <xsl:value-of select="id(@linkmode)"/>
0083 <xsl:text>/</xsl:text>
0084 <xsl:value-of select="@targetdocent"/>
0085 <xsl:variable name="targetdocent" select="@targetdocent"/>
0086 <xsl:value-of select="$targetdocent"/>
0087 <xsl:if test="@targetdocent">
0088 <xsl:value-of select="unparsed-entity-uri(string($targetdocent))"/>
0089 </xsl:if>
0090 <xsl:for-each select="document('/home/fouvry/kdeutils/doc/kedit/index.docbook')">
0091 <xsl:value-of select=".//*[@id=$localinfo]"/>
0092 </xsl:for-each>
0093 <xsl:text>#</xsl:text>
0094 <xsl:value-of select="@localinfo"/>
0095 </xsl:when>
0096 </xsl:choose>
0097 </xsl:when>
0098 </xsl:choose>
0099 </xsl:attribute>
0100 <xsl:value-of select="."/>
0101 </a>
0102 </xsl:template>
0103 -->
0104
0105 </xsl:stylesheet>
0106
0107