diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
commit | 15c7d39533a1eb1da0748011f3378fd0f02ed14d (patch) | |
tree | a7ed12df60c5ffd4d00a570804c51470bfb8b0f5 /stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl | |
parent | 09a35dd7178070f01a7961d2ded39e11ba2aac83 (diff) |
Update stylesheets to docbook-xsl-1.78.1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl new file mode 100644 index 000000000..9fb4ae80f --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl @@ -0,0 +1,180 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" + version='1.0'> + +<!-- ******************************************************************** + $Id: subtitles.xsl 9286 2012-04-19 10:10:58Z bobstayton $ + ******************************************************************** + + This file is part of the XSL DocBook Stylesheet distribution. + See ../README or http://docbook.sf.net/release/xsl/current/ for + copyright and other information. + + ******************************************************************** --> + +<!-- ==================================================================== --> + +<!-- subtitle markup --> + +<doc:mode mode="subtitle.markup" xmlns=""> +<refpurpose>Provides access to element subtitles</refpurpose> +<refdescription id="subtitle.markup-desc"> +<para>Processing an element in the +<literal role="mode">subtitle.markup</literal> mode produces the +subtitle of the element. +</para> +</refdescription> +</doc:mode> + +<xsl:template match="*" mode="subtitle.markup"> + <xsl:param name="verbose" select="1"/> + <xsl:if test="$verbose != 0"> + <xsl:message> + <xsl:text>Request for subtitle of unexpected element: </xsl:text> + <xsl:value-of select="local-name(.)"/> + </xsl:message> + <xsl:text>???SUBTITLE???</xsl:text> + </xsl:if> +</xsl:template> + +<xsl:template match="subtitle" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="set" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(setinfo/subtitle|info/subtitle|subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="book" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(bookinfo/subtitle|info/subtitle|subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="part" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(partinfo/subtitle + |docinfo/subtitle + |info/subtitle + |subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="preface|chapter|appendix" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(docinfo/subtitle + |info/subtitle + |prefaceinfo/subtitle + |chapterinfo/subtitle + |appendixinfo/subtitle + |subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="article" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(artheader/subtitle + |articleinfo/subtitle + |info/subtitle + |subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="dedication|colophon" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(subtitle|info/subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="reference" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(referenceinfo/subtitle + |docinfo/subtitle + |info/subtitle + |subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="qandaset" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(blockinfo/subtitle|info/subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="refentry" mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(refentryinfo/subtitle + |info/subtitle + |docinfo/subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |topic + |simplesect" + mode="subtitle.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="verbose" select="1"/> + <xsl:apply-templates select="(info/subtitle + |sectioninfo/subtitle + |sect1info/subtitle + |sect2info/subtitle + |sect3info/subtitle + |sect4info/subtitle + |sect5info/subtitle + |refsect1info/subtitle + |refsect2info/subtitle + |refsect3info/subtitle + |subtitle)[1]" + mode="subtitle.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> +</xsl:template> + +</xsl:stylesheet> + |