diff options
author | Luca Falavigna <dktrkranz@debian.org> | 2014-04-26 15:11:58 +0200 |
---|---|---|
committer | Luca Falavigna <dktrkranz@debian.org> | 2014-04-26 15:11:58 +0200 |
commit | a3a0ab66f0da855e75e3a0e2acfb8aa106b46510 (patch) | |
tree | 5352edff1387c3d7e5a8b49ec56524f085c22782 /doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl | |
parent | 51fa4e4acb6fc8fc7a2af0fbdc21fd1e8feddb3a (diff) | |
parent | 140d836e9cd54fb67b969fd82ef7ed19ba574d40 (diff) |
Merge tag 'upstream/2.3.1'
Upstream version 2.3.1
Diffstat (limited to 'doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl')
-rw-r--r-- | doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl new file mode 100644 index 0000000..430cec0 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl @@ -0,0 +1,126 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + extension-element-prefixes="dtm" + version='1.0'> + +<dtm:doc dtm:idref="appendix"/> +<xsl:template match="appendix" dtm:id="appendix"> + <xsl:variable name="preamble" + select="title|subtitle|titleabbrev|appendixinfo|docinfo"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle + or self::titleabbrev + or self::appendixinfo or self::docinfo)]"/> + <fo:block + xsl:use-attribute-sets="component.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="appendix.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + + +<dtm:doc dtm:idref="article"/> +<xsl:template match="article" dtm:id="article"> + <xsl:variable name="preamble" + select="title|subtitle|articleinfo|artheader"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle + or self::articleinfo or self::artheader)]"/> + <fo:block + xsl:use-attribute-sets="component.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="article.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="preface"/> +<xsl:template match="preface" dtm:id="preface"> + <xsl:variable name="preamble" + select="title|subtitle|titleabbrev|docinfo|prefaceinfo"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle or self::titleabbrev + or self::docinfo or self::prefaceinfo)]"/> + <fo:block + xsl:use-attribute-sets="component.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="preface.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="chapter"/> +<xsl:template match="chapter" dtm:id="chapter"> + <xsl:variable name="preamble" + select="title|subtitle|titleabbrev|docinfo|chapterinfo"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle or self::titleabbrev + or self::docinfo or self::chapterinfo)]"/> + <fo:block + xsl:use-attribute-sets="component.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="chapter.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="sections"/> +<xsl:template match="section|sect1|sect2|sect3|sect4|sect5" dtm:id="sections"> + <xsl:variable name="preamble" + select="title|subtitle|titleabbrev|sectioninfo|sect1info + |sect2info|sect3info|sect4info|sect5info"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle or self::titleabbrev + or self::sectioninfo or self::sect1info + or self::sect2info or self::sect3info + or self::sect4info or self::sect5info)]"/> + <fo:block + xsl:use-attribute-sets="section.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="section.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="simplesect"/> +<xsl:template match="simplesect" dtm:id="simplesect"> + <xsl:variable name="preamble" + select="title|subtitle|titleabbrev"/> + <xsl:variable name="content" + select="*[not(self::title or self::subtitle or self::titleabbrev)]"/> + <fo:block + xsl:use-attribute-sets="section.block.properties"> + <xsl:call-template name="handle.empty"> + <xsl:with-param name="titles"> + <xsl:call-template name="simplesect.titlepage"/> + </xsl:with-param> + <xsl:with-param name="preamble" select="$preamble"/> + <xsl:with-param name="content" select="$content"/> + </xsl:call-template> + </fo:block> +</xsl:template> + +</xsl:stylesheet> |