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 | 140d836e9cd54fb67b969fd82ef7ed19ba574d40 (patch) | |
tree | 0df3e32ee39603d43f9b90fd2f2e1f7cce4249d4 /src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo | |
parent | cb3425abe0bc2d05caf401ca24b82a25a81f009d (diff) |
Imported Upstream version 2.3.1upstream/2.3.1
Diffstat (limited to 'src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo')
5 files changed, 1224 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xml b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xml new file mode 100644 index 0000000..040ac22 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xml @@ -0,0 +1,356 @@ +<?xml version="1.0" encoding="ASCII"?> +<book version="5.0" xml:id="slides_fo_doc"> +<info> +<title>Slides FO Parameter Reference</title> +<releaseinfo role="meta"> +$Id: param.xweb 6633 2007-02-21 18:33:33Z xmldoc $ +</releaseinfo> +<author> + <personname> + <surname>Walsh</surname> + <firstname>Norman</firstname> + </personname> +</author> +<copyright> + <year>2002</year> + <holder>Norman Walsh</holder> +</copyright> +<abstract> + <para>This is reference documentation for all user-configurable + parameters in the DocBook XSL Slides FO stylesheet (for + generating PDF slide presentations). Note that the Slides + stylesheet for FO output is a customization layer of the + DocBook XSL FO stylesheet. Therefore, in addition to the + slides-specific parameters listed in this section, you can + also use a number of <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../fo/">FO stylesheet + parameters</link> to control Slides FO output.</para> +</abstract> +</info> +<reference xml:id="fo"> + <title>FO: General Params</title> +<refentry version="5.0" xml:id="slide.title.font.family"> +<refmeta> +<refentrytitle>slide.title.font.family</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="list-type">open</refmiscinfo> +<refmiscinfo class="other" otherclass="value">serif</refmiscinfo> +<refmiscinfo class="other" otherclass="value">sans-serif</refmiscinfo> +<refmiscinfo class="other" otherclass="value">monospace</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slide.title.font.family</refname> +<refpurpose>Specifies font family to use for slide titles</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<programlisting xml:id="slide.title.font.family.frag"> +<xsl:param name="slide.title.font.family">Helvetica</xsl:param> +</programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>Specifies the font family to use for slides titles.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slide.font.family"> +<refmeta> +<refentrytitle>slide.font.family</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="list-type">open</refmiscinfo> +<refmiscinfo class="other" otherclass="value">serif</refmiscinfo> +<refmiscinfo class="other" otherclass="value">sans-serif</refmiscinfo> +<refmiscinfo class="other" otherclass="value">monospace</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slide.font.family</refname> +<refpurpose>Specifies font family to use for slide bodies</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<programlisting xml:id="slide.font.family.frag"> +<xsl:param name="slide.font.family">Helvetica</xsl:param> +</programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>Specifies the font family to use for slides bodies.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.title.master"> +<refmeta> +<refentrytitle>foil.title.master</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">number</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.title.master</refname> +<refpurpose>Specifies unitless font size to use for foil titles</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<programlisting xml:id="foil.title.master.frag"> +<xsl:param name="foil.title.master">36</xsl:param> +<!-- Inconsistant use of point size? --> +</programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>Specifies a unitless font size to use for foil titles; used in +combination with the <parameter>foil.title.size</parameter> +parameter.</para> +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.title.size"> +<refmeta> +<refentrytitle>foil.title.size</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">length</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.title.size</refname> +<refpurpose>Specifies font size to use for foil titles, including units</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.title.size.frag"> + <xsl:param name="foil.title.size"> + <xsl:value-of select="$foil.title.master"></xsl:value-of><xsl:text>pt</xsl:text> + </xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter combines the value of the +<parameter>foil.title.master</parameter> parameter with a unit +specification. The default unit is <literal>pt</literal> +(points).</para> + +</refsection> +</refentry> + +</reference> +<reference xml:id="propsets"> + <title>FO: Property Sets</title> +<refentry version="5.0" xml:id="slides.properties"> +<refmeta> +<refentrytitle>slides.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.properties</refname> +<refpurpose>Specifies properties for all slides</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.properties.frag"> + <xsl:attribute-set name="slides.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to all slides.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foilgroup.properties"> +<refmeta> +<refentrytitle>foilgroup.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foilgroup.properties</refname> +<refpurpose>Specifies properties for all foilgroups</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foilgroup.properties.frag"> + <xsl:attribute-set name="foilgroup.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to all foilgroups.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.subtitle.properties"> +<refmeta> +<refentrytitle>foil.subtitle.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.subtitle.properties</refname> +<refpurpose>Specifies properties for all foil subtitles</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.subtitle.properties.frag"> + <xsl:attribute-set name="foil.subtitle.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.master * 0.8"></xsl:value-of><xsl:text>pt</xsl:text> + </xsl:attribute> + <xsl:attribute name="space-after">12pt</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to all foil subtitles.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.properties"> +<refmeta> +<refentrytitle>foil.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.properties</refname> +<refpurpose>Specifies properties for all foils</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.properties.frag"> + <xsl:attribute-set name="foil.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-{$direction.align.start}">1in</xsl:attribute> + <xsl:attribute name="margin-{$direction.align.end}">1in</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.size"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to all foils.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="speakernote.properties"> +<refmeta> +<refentrytitle>speakernote.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>speakernote.properties</refname> +<refpurpose>Specifies properties for all speakernotes</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="speakernote.properties.frag"> + <xsl:attribute-set name="speakernote.properties"> + <xsl:attribute name="font-family">Times Roman</xsl:attribute> + <xsl:attribute name="font-style">italic</xsl:attribute> + <xsl:attribute name="font-size">12pt</xsl:attribute> + <xsl:attribute name="font-weight">normal</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to all speakernotes.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="running.foot.properties"> +<refmeta> +<refentrytitle>running.foot.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>running.foot.properties</refname> +<refpurpose>Specifies properties for running foot on each slide</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="running.foot.properties.frag"> + <xsl:attribute-set name="running.foot.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="font-size">14pt</xsl:attribute> + <xsl:attribute name="color">#9F9F9F</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties that are applied to the +running foot area of each slide.</para> + +</refsection> +</refentry> + +</reference> + +<appendix xml:id="styleheet"><title>The Stylesheet</title> + +<para>The <filename>param.xsl</filename> stylesheet is just a wrapper +around all these parameters.</para> + +<programlisting xml:id="top"> + +<!-- This file is generated from param.xweb --> + +<xsl:stylesheet exclude-result-prefixes="src" version="1.0"> + +<!-- ******************************************************************** + $Id: param.xweb 6633 2007-02-21 18:33:33Z xmldoc $ + ******************************************************************** + + This file is part of the DocBook Slides Stylesheet distribution. + See ../README or http://docbook.sf.net/release/xsl/current/ for + copyright and other information. + + ******************************************************************** --> + +<src:fragref linkend="slide.font.family.frag"></src:fragref> +<src:fragref linkend="slide.title.font.family.frag"></src:fragref> +<src:fragref linkend="foil.title.master.frag"></src:fragref> +<src:fragref linkend="foil.title.size.frag"></src:fragref> +<src:fragref linkend="foilgroup.properties.frag"></src:fragref> +<src:fragref linkend="foil.properties.frag"></src:fragref> +<src:fragref linkend="foil.subtitle.properties.frag"></src:fragref> +<src:fragref linkend="running.foot.properties.frag"></src:fragref> +<src:fragref linkend="speakernote.properties.frag"></src:fragref> +<src:fragref linkend="slides.properties.frag"></src:fragref> + +</xsl:stylesheet> +</programlisting> + +</appendix> +</book> diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xsl b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xsl new file mode 100644 index 0000000..bfeb493 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/param.xsl @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- This file is generated from param.xweb --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<!-- ******************************************************************** + $Id: param.xweb 6633 2007-02-21 18:33:33Z xmldoc $ + ******************************************************************** + + This file is part of the DocBook Slides Stylesheet distribution. + See ../README or http://docbook.sf.net/release/xsl/current/ for + copyright and other information. + + ******************************************************************** --> + +<xsl:param name="slide.font.family">Helvetica</xsl:param> +<xsl:param name="slide.title.font.family">Helvetica</xsl:param> +<xsl:param name="foil.title.master">36</xsl:param> +<!-- Inconsistant use of point size? --> + <xsl:param name="foil.title.size"> + <xsl:value-of select="$foil.title.master"/><xsl:text>pt</xsl:text> + </xsl:param> + + <xsl:attribute-set name="foilgroup.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> + <xsl:attribute name="margin-{$direction.align.start}">1in</xsl:attribute> + <xsl:attribute name="margin-{$direction.align.end}">1in</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.size"/> + </xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.subtitle.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"/> + </xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.master * 0.8"/><xsl:text>pt</xsl:text> + </xsl:attribute> + <xsl:attribute name="space-after">12pt</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="running.foot.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> + <xsl:attribute name="font-size">14pt</xsl:attribute> + <xsl:attribute name="color">#9F9F9F</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="speakernote.properties"> + <xsl:attribute name="font-family">Times Roman</xsl:attribute> + <xsl:attribute name="font-style">italic</xsl:attribute> + <xsl:attribute name="font-size">12pt</xsl:attribute> + <xsl:attribute name="font-weight">normal</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> + </xsl:attribute-set> + + +</xsl:stylesheet> diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xml b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xml new file mode 100644 index 0000000..d0a92da --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xml @@ -0,0 +1,79 @@ +<!DOCTYPE t:templates [ +<!ENTITY hsize0 "10pt"> +<!ENTITY hsize1 "12pt"> +<!ENTITY hsize2 "14.4pt"> +<!ENTITY hsize3 "17.28pt"> +<!ENTITY hsize4 "20.736pt"> +<!ENTITY hsize5 "24.8832pt"> +<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 --> +<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 --> +<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 --> +<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 --> +<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 --> +<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 --> +]> +<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0" + xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<!-- ==================================================================== --> + +<t:titlepage t:element="slides" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title t:predicate="[1]" + t:named-template="component.title" + param:node="ancestor-or-self::slides[1]" + text-align="center" + space-after="1em" + padding-top="1.5in" + keep-with-next="always" + font-size="{$foil.title.size}" + font-weight="bold" + font-family="{$slide.title.font.family}"/> + + <subtitle t:predicate="[1]" + text-align="center" + space-after="1em" + font-family="{$slide.title.font.family}"/> + + <corpauthor font-size="&hsize4;" + text-align="center" + space-after="1em"/> + <authorgroup/> + <author font-size="&hsize4;" + text-align="center" + space-after="1em"/> + + <pubdate font-size="&hsize3;" + text-align="center" + space-after="1em"/> + + <confgroup font-size="&hsize3;" + text-align="center" + space-after="1em"/> + + <releaseinfo font-size="&hsize3;" + text-align="center" + space-after="1em"/> + + <copyright font-size="&hsize3;" + text-align="center"/> + + <revision text-align="center"/> + </t:titlepage-content> + + <t:titlepage-content t:side="verso"> + </t:titlepage-content> + + <t:titlepage-separator> + </t:titlepage-separator> + + <t:titlepage-before t:side="recto"> + </t:titlepage-before> + + <t:titlepage-before t:side="verso"> + </t:titlepage-before> +</t:titlepage> + +</t:templates> diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xsl b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xsl new file mode 100644 index 0000000..a6148aa --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain-titlepage.xsl @@ -0,0 +1,187 @@ +<?xml version="1.0"?> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl"> + +<!-- This stylesheet was created by template/titlepage.xsl--> + +<xsl:template name="slides.titlepage.recto"> + <xsl:choose> + <xsl:when test="slidesinfo/title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/title[1]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/title[1]"/> + </xsl:when> + <xsl:when test="info/title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/title[1]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="title[1]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="slidesinfo/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/subtitle[1]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/subtitle[1]"/> + </xsl:when> + <xsl:when test="info/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/subtitle[1]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="subtitle[1]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/corpauthor"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/corpauthor"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/authorgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/authorgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/author"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/author"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/author"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/pubdate"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/pubdate"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/pubdate"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/confgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/confgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/confgroup"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/releaseinfo"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/releaseinfo"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/copyright"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/copyright"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/copyright"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/revision"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/revision"/> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/revision"/> +</xsl:template> + +<xsl:template name="slides.titlepage.verso"> +</xsl:template> + +<xsl:template name="slides.titlepage.separator"> +</xsl:template> + +<xsl:template name="slides.titlepage.before.recto"> +</xsl:template> + +<xsl:template name="slides.titlepage.before.verso"> +</xsl:template> + +<xsl:template name="slides.titlepage"> + <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <xsl:variable name="recto.content"> + <xsl:call-template name="slides.titlepage.before.recto"/> + <xsl:call-template name="slides.titlepage.recto"/> + </xsl:variable> + <xsl:variable name="recto.elements.count"> + <xsl:choose> + <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> + <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> + <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> + <xsl:otherwise>1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> + <fo:block><xsl:copy-of select="$recto.content"/></fo:block> + </xsl:if> + <xsl:variable name="verso.content"> + <xsl:call-template name="slides.titlepage.before.verso"/> + <xsl:call-template name="slides.titlepage.verso"/> + </xsl:variable> + <xsl:variable name="verso.elements.count"> + <xsl:choose> + <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> + <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> + <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> + <xsl:otherwise>1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> + <fo:block><xsl:copy-of select="$verso.content"/></fo:block> + </xsl:if> + <xsl:call-template name="slides.titlepage.separator"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="slides.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="slides.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center" space-after="1em" padding-top="1.5in" keep-with-next="always" font-size="{$foil.title.size}" font-weight="bold" font-family="{$slide.title.font.family}"> +<xsl:call-template name="component.title"> +<xsl:with-param name="node" select="ancestor-or-self::slides[1]"/> +</xsl:call-template> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center" space-after="1em" font-family="{$slide.title.font.family}"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="20.736pt" text-align="center" space-after="1em"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="20.736pt" text-align="center" space-after="1em"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="confgroup" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="slides.titlepage.recto.auto.mode"> +<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +</xsl:stylesheet> + diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain.xsl b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain.xsl new file mode 100644 index 0000000..b4e729e --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/slides/fo/plain.xsl @@ -0,0 +1,528 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:rx="http://www.renderx.com/XSL/Extensions" + version="1.0"> + +<!-- ******************************************************************** + $Id: plain.xsl 8101 2008-08-03 18:35:14Z mzjn $ + ******************************************************************** + + This file is part of the DocBook Slides Stylesheet distribution. + See ../README or http://docbook.sf.net/release/xsl/current/ for + copyright and other information. + + ******************************************************************** --> + +<xsl:import href="../../fo/docbook.xsl"/> +<xsl:import href="param.xsl"/> + +<xsl:param name="alignment" select="'start'"/> + +<xsl:include href="plain-titlepage.xsl"/> + +<xsl:param name="local.l10n.xml" select="document('')"/> +<i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0"> + <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en"> + <l:gentext key="Continued" text="(Continued)"/> + <l:context name="title"> + <l:template name="slides" text="%t"/> + <l:template name="foilgroup" text="%t"/> + <l:template name="foil" text="%t"/> + </l:context> + </l:l10n> +</i18n> + +<xsl:variable name="root.elements" select="' slides '"/> + +<xsl:param name="preferred.mediaobject.role" select="'print'"/> + +<xsl:param name="page.orientation" select="'landscape'"/> + +<xsl:param name="body.font.master" select="24"/> + +<xsl:attribute-set name="formal.title.properties" + use-attribute-sets="normal.para.spacing"> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.master * 1.2"/> + <xsl:text>pt</xsl:text> + </xsl:attribute> + <xsl:attribute name="hyphenate">false</xsl:attribute> + <xsl:attribute name="space-after.minimum">8pt</xsl:attribute> + <xsl:attribute name="space-after.optimum">6pt</xsl:attribute> + <xsl:attribute name="space-after.maximum">10pt</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="list.block.spacing"> + <xsl:attribute name="space-before.optimum">12pt</xsl:attribute> + <xsl:attribute name="space-before.minimum">8pt</xsl:attribute> + <xsl:attribute name="space-before.maximum">14pt</xsl:attribute> + <xsl:attribute name="space-after.optimum">0pt</xsl:attribute> + <xsl:attribute name="space-after.minimum">0pt</xsl:attribute> + <xsl:attribute name="space-after.maximum">0pt</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="list.item.spacing"> + <xsl:attribute name="space-before.optimum">6pt</xsl:attribute> + <xsl:attribute name="space-before.minimum">4pt</xsl:attribute> + <xsl:attribute name="space-before.maximum">8pt</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="normal.para.spacing"> + <xsl:attribute name="space-before.optimum">8pt</xsl:attribute> + <xsl:attribute name="space-before.minimum">6pt</xsl:attribute> + <xsl:attribute name="space-before.maximum">10pt</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="slides.titlepage.recto.style"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="slides.titlepage.verso.style"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> +</xsl:attribute-set> + +<!-- ============================================================ --> + +<xsl:param name="page.margin.top" select="'0.25in'"/> +<xsl:param name="region.before.extent" select="'0.75in'"/> +<xsl:param name="body.margin.top" select="'1in'"/> + +<xsl:param name="region.after.extent" select="'0.5in'"/> +<xsl:param name="body.margin.bottom" select="'0.5in'"/> +<xsl:param name="page.margin.bottom" select="'0.25in'"/> + +<xsl:param name="page.margin.inner" select="'0.25in'"/> +<xsl:param name="page.margin.outer" select="'0.25in'"/> +<xsl:param name="column.count.body" select="1"/> + +<xsl:template name="user.pagemasters"> + <fo:simple-page-master master-name="slides-titlepage-master" + page-width="{$page.width}" + page-height="{$page.height}" + margin-top="{$page.margin.top}" + margin-bottom="{$page.margin.bottom}" + margin-left="{$page.margin.inner}" + margin-right="{$page.margin.outer}"> + <fo:region-body margin-bottom="0pt" + margin-top="0pt" + column-count="{$column.count.body}"> + </fo:region-body> + </fo:simple-page-master> + + <fo:simple-page-master master-name="slides-foil-master" + page-width="{$page.width}" + page-height="{$page.height}" + margin-top="{$page.margin.top}" + margin-bottom="{$page.margin.bottom}" + margin-left="{$page.margin.inner}" + margin-right="{$page.margin.outer}"> + <fo:region-body margin-bottom="{$body.margin.bottom}" + margin-top="{$body.margin.top}" + column-count="{$column.count.body}"> + </fo:region-body> + <fo:region-before region-name="xsl-region-before-foil" + extent="{$region.before.extent}" + display-align="before"/> + <fo:region-after region-name="xsl-region-after-foil" + extent="{$region.after.extent}" + display-align="after"/> + </fo:simple-page-master> + + <fo:simple-page-master master-name="slides-foil-continued-master" + page-width="{$page.width}" + page-height="{$page.height}" + margin-top="{$page.margin.top}" + margin-bottom="{$page.margin.bottom}" + margin-left="{$page.margin.inner}" + margin-right="{$page.margin.outer}"> + <fo:region-body margin-bottom="{$body.margin.bottom}" + margin-top="{$body.margin.top}" + column-count="{$column.count.body}"> + </fo:region-body> + <fo:region-before region-name="xsl-region-before-foil-continued" + extent="{$region.before.extent}" + display-align="before"/> + <fo:region-after region-name="xsl-region-after-foil-continued" + extent="{$region.after.extent}" + display-align="after"/> + </fo:simple-page-master> + + <fo:page-sequence-master master-name="slides-titlepage"> + <fo:repeatable-page-master-alternatives> + <fo:conditional-page-master-reference master-reference="slides-titlepage-master"/> + </fo:repeatable-page-master-alternatives> + </fo:page-sequence-master> + + <fo:page-sequence-master master-name="slides-foil"> + <fo:repeatable-page-master-alternatives> + <fo:conditional-page-master-reference master-reference="slides-foil-master" + page-position="first"/> + <fo:conditional-page-master-reference master-reference="slides-foil-continued-master"/> + </fo:repeatable-page-master-alternatives> + </fo:page-sequence-master> +</xsl:template> + +<xsl:template match="*" mode="running.head.mode"> + <xsl:param name="master-reference" select="'unknown'"/> + <!-- use the foilgroup title if there is one --> + <fo:static-content flow-name="xsl-region-before-foil"> + <fo:block background-color="white" + color="black" + font-size="{$foil.title.size}" + font-weight="bold" + text-align="center" + font-family="{$slide.title.font.family}"> + <xsl:apply-templates select="title" mode="titlepage.mode"/> + </fo:block> + </fo:static-content> + + <fo:static-content flow-name="xsl-region-before-foil-continued"> + <fo:block background-color="white" + color="black" + font-size="{$foil.title.size}" + font-weight="bold" + text-align="center" + font-family="{$slide.title.font.family}"> + <xsl:apply-templates select="title" mode="titlepage.mode"/> + <xsl:text> </xsl:text> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Continued'"/> + </xsl:call-template> + </fo:block> + </fo:static-content> +</xsl:template> + +<xsl:template match="*" mode="running.foot.mode"> + <xsl:param name="master-reference" select="'unknown'"/> + + <xsl:variable name="last-slide" + select="(//foil|//foilgroup)[last()]"/> + + <xsl:variable name="last-id"> + <xsl:choose> + <xsl:when test="$last-slide/@id"> + <xsl:value-of select="$last-slide/@id"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="generate-id($last-slide)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="content"> + <fo:table table-layout="fixed" width="100%" + xsl:use-attribute-sets="running.foot.properties"> + <fo:table-column column-number="1" column-width="33%"/> + <fo:table-column column-number="2" column-width="34%"/> + <fo:table-column column-number="3" column-width="33%"/> + <fo:table-body> + <fo:table-row height="14pt"> + <fo:table-cell text-align="left"> + <fo:block> + <xsl:if test="self::foil"> + <xsl:choose> + <xsl:when test="ancestor::foilgroup[1]/titleabbrev"> + <xsl:apply-templates select="ancestor::foilgroup[1]/titleabbrev" + mode="titlepage.mode"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="ancestor::foilgroup[1]/title" + mode="titlepage.mode"/> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + </fo:block> + </fo:table-cell> + <fo:table-cell text-align="center"> + <fo:block> + <xsl:if test="/slides/slidesinfo/releaseinfo[@role='copyright']"> + <xsl:apply-templates select="/slides/slidesinfo/releaseinfo[@role='copyright']" + mode="value"/> + <xsl:text>   </xsl:text> + </xsl:if> + <xsl:apply-templates select="/slides/slidesinfo/copyright" + mode="titlepage.mode"/> + </fo:block> + </fo:table-cell> + <fo:table-cell text-align="right"> + <fo:block> + <fo:page-number/> + <xsl:text> / </xsl:text> + <fo:page-number-citation ref-id="{$last-id}"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </xsl:variable> + + <fo:static-content flow-name="xsl-region-after-foil"> + <fo:block> + <xsl:copy-of select="$content"/> + </fo:block> + </fo:static-content> + + <fo:static-content flow-name="xsl-region-after-foil-continued"> + <fo:block> + <xsl:copy-of select="$content"/> + </fo:block> + </fo:static-content> +</xsl:template> + +<xsl:template name="select.user.pagemaster"> + <xsl:param name="element"/> + <xsl:param name="pageclass"/> + <xsl:param name="default-pagemaster"/> + + <xsl:choose> + <xsl:when test="$element = 'slides'">slides-titlepage</xsl:when> + <xsl:otherwise>slides-foil</xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="slides"> + <xsl:variable name="master-reference"> + <xsl:call-template name="select.pagemaster"/> + </xsl:variable> + + <fo:page-sequence hyphenate="{$hyphenate}" + master-reference="{$master-reference}"> + <xsl:attribute name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:attribute> + + <xsl:apply-templates select="." mode="running.head.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + <xsl:apply-templates select="." mode="running.foot.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + <fo:flow flow-name="xsl-region-body"> + <fo:block> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> + <xsl:call-template name="slides.titlepage"/> + <xsl:apply-templates select="speakernotes"/> + </fo:block> + </fo:flow> + </fo:page-sequence> + <xsl:apply-templates select="foil|foilgroup"/> +</xsl:template> + +<xsl:template match="slidesinfo"/> + +<xsl:template match="slides" mode="title.markup"> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(slidesinfo/title|title)[1]" + mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<!-- ============================================================ --> + +<xsl:template name="foilgroup.titlepage"> + <fo:block background-color="black" + color="white" + font-size="{$foil.title.size}" + font-weight="bold" + text-align="center" + padding-top="12pt" + padding-bottom="12pt" + space-after="1em"> + <xsl:apply-templates select="title" mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="foilgroup"> + <xsl:variable name="master-reference"> + <xsl:call-template name="select.pagemaster"/> + </xsl:variable> + + <fo:page-sequence hyphenate="{$hyphenate}" + master-reference="{$master-reference}"> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> + <xsl:attribute name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:attribute> + + <xsl:apply-templates select="." mode="running.head.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + <xsl:apply-templates select="." mode="running.foot.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + + <fo:flow flow-name="xsl-region-body"> + <fo:block> + <xsl:if test="*[not(self::foil)]"> + <fo:block xsl:use-attribute-sets="foil.properties" space-after="1em"> + <xsl:apply-templates select="*[not(self::foil)]"/> + </fo:block> + </xsl:if> + + <xsl:call-template name="foilgroup.titlepage"/> + </fo:block> + </fo:flow> + </fo:page-sequence> + <xsl:apply-templates select="foil"/> +</xsl:template> + +<xsl:template match="foilgroup/title"/> +<xsl:template match="foilgroup/titleabbrev"/> + +<xsl:template match="foilgroup/titleabbrev" mode="titlepage.mode"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="slides/foilgroup/title" mode="titlepage.mode"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="title" mode="foilgroup.titlepage.recto.mode"> + <fo:block> + <fo:inline color="white">.</fo:inline> + <fo:block space-before="2in"> + <xsl:apply-templates select="." mode="titlepage.mode"/> + </fo:block> + </fo:block> +</xsl:template> + +<xsl:template match="foilgroupinfo"/> + +<!-- ============================================================ --> + +<!-- +<xsl:template name="foil.titlepage"> + <fo:block background-color="white" + color="black" + font-size="{$foil.title.size}" + font-weight="bold" + text-align="center" + padding-top="12pt" + padding-bottom="12pt" + space-after="1em"> + <xsl:apply-templates select="title" mode="titlepage.mode"/> + </fo:block> +</xsl:template> +--> + +<xsl:template match="foil"> + <xsl:variable name="master-reference"> + <xsl:call-template name="select.pagemaster"/> + </xsl:variable> + + <fo:page-sequence hyphenate="{$hyphenate}" + master-reference="{$master-reference}"> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> + <xsl:attribute name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:attribute> + + <xsl:apply-templates select="." mode="running.head.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + <xsl:apply-templates select="." mode="running.foot.mode"> + <xsl:with-param name="master-reference" select="$master-reference"/> + </xsl:apply-templates> + <fo:flow flow-name="xsl-region-body"> + <fo:block> + <fo:block xsl:use-attribute-sets="foil.properties"> + <xsl:apply-templates/> + </fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> +</xsl:template> + +<xsl:template match="foilinfo"/> +<xsl:template match="foil/title"/> +<xsl:template match="foil/subtitle"> + <fo:block xsl:use-attribute-sets="foil.subtitle.properties"> + <xsl:apply-templates/> + </fo:block> +</xsl:template> +<xsl:template match="foil/titleabbrev"/> + +<!-- ============================================================ --> + +<xsl:template match="slides" mode="label.markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<!-- ============================================================ --> + +<xsl:template match="speakernotes"> + <fo:block xsl:use-attribute-sets="speakernote.properties"> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<!-- ============================================================ --> +<!-- Bookmarks --> + +<!-- XEP --> + +<xsl:template match="slides|foilgroup|foil[not(@role) or @role != 'ENDTITLE']" + mode="xep.outline"> + <xsl:variable name="id"> + <xsl:call-template name="object.id"/> + </xsl:variable> + <xsl:variable name="bookmark-label"> + <xsl:apply-templates select="." mode="object.title.markup"/> + </xsl:variable> + + <!-- Put the root element bookmark at the same level as its children --> + <!-- If the object is a set or book, generate a bookmark for the toc --> + + <xsl:choose> + <xsl:when test="parent::*"> + <rx:bookmark internal-destination="{$id}"> + <rx:bookmark-label> + <xsl:value-of select="$bookmark-label"/> + </rx:bookmark-label> + <xsl:apply-templates select="*" mode="xep.outline"/> + </rx:bookmark> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$bookmark-label != ''"> + <rx:bookmark internal-destination="{$id}"> + <rx:bookmark-label> + <xsl:value-of select="$bookmark-label"/> + </rx:bookmark-label> + </rx:bookmark> + </xsl:if> + + <xsl:apply-templates select="*" mode="xep.outline"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- Handling of xrefs --> + +<xsl:template match="foil|foilgroup" mode="xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> +</xsl:template> + + +</xsl:stylesheet> |