summaryrefslogtreecommitdiff
path: root/slides/common
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-17 20:07:05 +0000
committer <>2015-07-07 10:18:30 +0000
commit802da9dd5d4bc18f46a916eedc0c5c1980a15e59 (patch)
treef78a8637465b7a4c9624fef03d27eb7aeaa779d4 /slides/common
parent18f63104106b81bf37ca1af774d7be38051e5444 (diff)
downloaddocbook-xsl-802da9dd5d4bc18f46a916eedc0c5c1980a15e59.tar.gz
Imported from /home/lorry/working-area/delta_docbook-xsl/docbook-xsl-1.78.1.tar.bz2.HEADdocbook-xsl-1.78.1master
Diffstat (limited to 'slides/common')
-rw-r--r--slides/common/common.xsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/slides/common/common.xsl b/slides/common/common.xsl
new file mode 100644
index 0000000..2d4f9e9
--- /dev/null
+++ b/slides/common/common.xsl
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ASCII"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:db="http://docbook.org/ns/docbook"
+ xmlns:dbs="http://docbook.org/ns/docbook-slides"
+ exclude-result-prefixes="dbs db"
+ version="1.0">
+
+<xsl:template name="get.title">
+ <xsl:param name="ctx" select="."/>
+
+ <xsl:value-of select="($ctx/db:info/db:titleabbrev|$ctx/db:titleabbrev|$ctx/db:info/db:title|$ctx/db:title)[1]"/>
+</xsl:template>
+
+<xsl:template name="get.subtitle">
+ <xsl:param name="ctx" select="."/>
+
+ <xsl:value-of select="($ctx/db:info/db:subtitle|$ctx/db:subtitle)[1]"/>
+</xsl:template>
+</xsl:stylesheet>