summaryrefslogtreecommitdiffstats
path: root/kdoctools/customization/tde-ttlpg.xsl
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-04-18 19:01:11 -0500
committerTimothy Pearson <[email protected]>2013-04-18 19:01:11 -0500
commit2b31f11f979f3ffc3dd060072b85559a832bfab5 (patch)
tree081358a0df37f88e89a3e2fa4e137810681ab480 /kdoctools/customization/tde-ttlpg.xsl
parent30b0af1f01cdbfcc51a56943e8c091bc8991f83a (diff)
parent1c68d332fd7e08a190daedbaa6ace857b575b7c4 (diff)
downloadtdelibs-2b31f11f979f3ffc3dd060072b85559a832bfab5.tar.gz
tdelibs-2b31f11f979f3ffc3dd060072b85559a832bfab5.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'kdoctools/customization/tde-ttlpg.xsl')
-rw-r--r--kdoctools/customization/tde-ttlpg.xsl80
1 files changed, 80 insertions, 0 deletions
diff --git a/kdoctools/customization/tde-ttlpg.xsl b/kdoctools/customization/tde-ttlpg.xsl
new file mode 100644
index 000000000..78d4792cd
--- /dev/null
+++ b/kdoctools/customization/tde-ttlpg.xsl
@@ -0,0 +1,80 @@
+<?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 -->
+<xsl:template match="email" mode="titlepage.mode">
+ <xsl:call-template name="inline.monoseq">
+ <xsl:with-param name="content">
+ <xsl:text>&lt;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&gt;</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>