summaryrefslogtreecommitdiffstats
path: root/kdoctools/customization/kde-ttlpg-online.xsl
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdoctools/customization/kde-ttlpg-online.xsl
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdoctools/customization/kde-ttlpg-online.xsl')
-rw-r--r--kdoctools/customization/kde-ttlpg-online.xsl85
1 files changed, 85 insertions, 0 deletions
diff --git a/kdoctools/customization/kde-ttlpg-online.xsl b/kdoctools/customization/kde-ttlpg-online.xsl
new file mode 100644
index 000000000..523648b7f
--- /dev/null
+++ b/kdoctools/customization/kde-ttlpg-online.xsl
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template match="releaseinfo" mode="titlepage.mode">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">revision</xsl:with-param>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ <span class="{name(.)}">
+ <xsl:apply-templates mode="titlepage.mode"/>
+ <xsl:text> (</xsl:text>
+ <xsl:apply-templates mode="titlepage.mode" select="../date"/>
+ <xsl:text>)</xsl:text>
+ </span>
+</xsl:template>
+
+<xsl:template match="author" mode="titlepage.mode">
+ <p class="{name(.)}"><!--Documentation by--> <!-- to internationalise -->
+ <xsl:call-template name="person.name"/>
+ <xsl:text> </xsl:text>
+ <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
+ </p>
+</xsl:template>
+
+<xsl:template match="date" mode="titlepage.mode">
+ <span class="{name(.)}">
+ <xsl:apply-templates mode="titlepage.mode"/>
+ </span>
+</xsl:template>
+
+<!-- Reduces affiliation to emailaddress -->
+<xsl:template match="affiliation" mode="titlepage.mode">
+ <xsl:apply-templates mode="titlepage.mode" select="./address/email"/>
+</xsl:template>
+
+<!-- Don't add a link to the author's email address on the page -->
+<!-- modified for the online version -->
+<xsl:template match="email" mode="titlepage.mode">
+ <xsl:call-template name="inline.monoseq">
+ <xsl:with-param name="content">
+ <xsl:text>(</xsl:text>
+ <xsl:call-template name="replaceCharsInString">
+ <xsl:with-param name="stringIn" select="."/>
+ <xsl:with-param name="charsIn" select="'@'"/>
+ <xsl:with-param name="charsOut" select="' '"/>
+ </xsl:call-template>
+ <xsl:text>)</xsl:text>
+ </xsl:with-param>
+ </xsl:call-template>
+</xsl:template>
+
+ <xsl:template match="othercredit" mode="titlepage.mode">
+ <span class="{name(.)}">
+ <xsl:choose>
+ <xsl:when test="./contrib">
+ <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
+ </xsl:when>
+ <xsl:when test="not(./contrib)">
+ <span style="text-transform: capitalize">
+ <xsl:apply-templates mode="titlepage.mode" select="@role"/>
+ </span>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:text>: </xsl:text>
+ <xsl:call-template name="person.name"/>
+ <br />
+ </span>
+</xsl:template>
+
+<xsl:template match="contrib" mode="titlepage.mode">
+ <span class="{name(.)}">
+ <xsl:apply-templates mode="titlepage.mode"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="abstract" mode="titlepage.mode">
+ <div>
+ <xsl:call-template name="semiformal.object"/>
+ </div>
+</xsl:template>
+
+<xsl:template match="abstract/title" mode="titlepage.mode">
+</xsl:template>
+
+</xsl:stylesheet>