diff options
Diffstat (limited to 'slides/common/common.xsl')
-rw-r--r-- | slides/common/common.xsl | 19 |
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> |