lfs-ru/stylesheets/lfs-xsl/docbook-xsl-1.79.1/slides/common/common.xsl
2023-05-25 00:08:02 +05:00

20 lines
638 B
XML

<?xml version="1.0" encoding="ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns:dbs="http://docbook.org/ns/docbook-slides"
exclude-result-prefixes="dbs d"
version="1.0">
<xsl:template name="get.title">
<xsl:param name="ctx" select="."/>
<xsl:value-of select="($ctx/d:info/d:titleabbrev|$ctx/d:titleabbrev|$ctx/d:info/d:title|$ctx/d:title)[1]"/>
</xsl:template>
<xsl:template name="get.subtitle">
<xsl:param name="ctx" select="."/>
<xsl:value-of select="($ctx/d:info/d:subtitle|$ctx/d:subtitle)[1]"/>
</xsl:template>
</xsl:stylesheet>