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/slides/fo | |
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/slides/fo')
5 files changed, 2139 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xml new file mode 100644 index 000000000..c2ab9442d --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xml @@ -0,0 +1,1155 @@ +<?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>Kövesdán</surname> + <firstname>Gábor</firstname> + </personname> +</author> +<copyright> + <year>2012</year> + <holder>Gábor Kövesdán</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="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> + +<refentry version="5.0" xml:id="generate.copyright"> +<refmeta> +<refentrytitle>generate.copyright</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.copyright</refname> +<refpurpose>Specifies whether copyright is generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.copyright.frag"> + <xsl:param name="generate.copyright">1</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether the copyright info is generated + in the footer area.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.foilgroup.numbered.toc"> +<refmeta> +<refentrytitle>generate.foilgroup.numbered.toc</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.foilgroup.numbered.toc</refname> +<refpurpose>Specifies whether foilgroups have a numbered TOC</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.foilgroup.numbered.toc.frag"> + <xsl:param name="generate.foilgroup.numbered.toc">1</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>If TOC generation is turned on, this parameter specifies + whether foilgroups have a numbered TOC. If disabled, TOC items + will be bulleted, not numbered.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.foilgroup.toc"> +<refmeta> +<refentrytitle>generate.foilgroup.toc</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.foilgroup.toc</refname> +<refpurpose>Specifies whether foilgroups have a TOC</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.foilgroup.toc.frag"> + <xsl:param name="generate.foilgroup.toc">1</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether foilgroups will + contain a table of contents of the included foils.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.handoutnotes"> +<refmeta> +<refentrytitle>generate.handoutnotes</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.handoutnotes</refname> +<refpurpose>Specifies whether handoutnotes are generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.handoutnotes.frag"> + <xsl:param name="generate.handoutnotes">0</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether handoutnotes shall + be generated to the output.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.page.number"> +<refmeta> +<refentrytitle>generate.page.number</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="value">full<alt>1/2</alt></refmiscinfo> +<refmiscinfo class="other" otherclass="value">compact<alt>1</alt></refmiscinfo> +<refmiscinfo class="other" otherclass="value">no</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.page.number</refname> +<refpurpose>Specifies whether page numbers are generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.page.number.frag"> + <xsl:param name="generate.page.number">compact</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies how page numbers are generated in + the footer area.</para> + +<variablelist> + <varlistentry> + <term>no</term> + <listitem> + <para>No page numbers generated at all.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>full</term> + <listitem> + <para>Current page number, a slash and the total number of pages</para> + </listitem> + </varlistentry> + <varlistentry> + <term>compact</term> + <listitem> + <para>Current page number only</para> + </listitem> + </varlistentry> + <varlistentry> + <term>no</term> + <listitem> + <para>No page numbers generated at all.</para> + </listitem> + </varlistentry> +</variablelist> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.pubdate"> +<refmeta> +<refentrytitle>generate.pubdate</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.pubdate</refname> +<refpurpose>Specifies whether the pubdate is generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.pubdate.frag"> + <xsl:param name="generate.pubdate">1</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether the publication date is generated + in the footer area.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.speakernotes"> +<refmeta> +<refentrytitle>generate.speakernotes</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.speakernotes</refname> +<refpurpose>Specifies whether speakernotes are generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.speakernotes.frag"> + <xsl:param name="generate.speakernotes">0</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether speakernotes shall + be generated to the output.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="generate.titlepage"> +<refmeta> +<refentrytitle>generate.titlepage</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>generate.titlepage</refname> +<refpurpose>Specifies whether titlepage is generated</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="generate.titlepage.frag"> + <xsl:param name="generate.titlepage">1</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies whether titlepage is generated + for the presentation.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="mml.embedding.mode"> +<refmeta> +<refentrytitle>mml.embedding.mode</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="value">inline</refmiscinfo> +<refmiscinfo class="other" otherclass="value">external-graphic</refmiscinfo> +<refmiscinfo class="other" otherclass="value">instream-foreign-object</refmiscinfo> +</refmeta> +<refnamediv> +<refname>mml.embedding.mode</refname> +<refpurpose>Specifies how inline MathML is processed</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="mml.embedding.mode.fo.frag"> + <xsl:param name="mml.embedding.mode">external-graphic</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies how inline MathML formulas + are embedded into the output document.</para> + +<variablelist> + <varlistentry> + <term>inline</term> + <listitem> + <para>Content is copied over inline with its namespace.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>external-graphic</term> + <listitem> + <para>Content is extracted into an externel file and referenced + by an <markup>external-graphic</markup> element.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>instream-foreign-object</term> + <listitem> + <para>Content is copied over with its namespace inside an + <markup>instream-foreign-object</markup> element.</para> + </listitem> + </varlistentry> +</variablelist> + +</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="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="svg.embedding.mode"> +<refmeta> +<refentrytitle>svg.embedding.mode</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="value">external-graphic</refmiscinfo> +<refmiscinfo class="other" otherclass="value">instream-foreign-object</refmiscinfo> +</refmeta> +<refnamediv> +<refname>svg.embedding.mode</refname> +<refpurpose>Specifies how inline SVG is processed</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="svg.embedding.mode.fo.frag"> + <xsl:param name="svg.embedding.mode">instream-foreign-object</xsl:param> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies how inline SVG graphics + are embedded into the output document.</para> + +<variablelist> + <varlistentry> + <term>inline</term> + <listitem> + <para>Content is copied over inline with its namespace.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>external-graphic</term> + <listitem> + <para>Content is extracted into an externel file and referenced + by an <markup>external-graphic</markup> element.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>instream-foreign-object</term> + <listitem> + <para>Content is copied over with its namespace inside an + <markup>instream-foreign-object</markup> element.</para> + </listitem> + </varlistentry> +</variablelist> + +</refsection> +</refentry> + +</reference> +<reference xml:id="propsets"> + <title>FO: Property Sets</title> +<refentry version="5.0" xml:id="foil.header.properties"> +<refmeta> +<refentrytitle>foil.header.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.header.properties</refname> +<refpurpose>Specifies properties for foil header area</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.header.properties.frag"> + <xsl:attribute-set name="foil.header.properties"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"></xsl:value-of> + </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 for the foil header area.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.master.properties"> +<refmeta> +<refentrytitle>foil.master.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.master.properties</refname> +<refpurpose>Specifies properties for foil master</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.master.properties.frag"> + <xsl:attribute-set name="foil.master.properties"> + <xsl:attribute name="page-width"> + <xsl:value-of select="$page.width"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="page-height"> + <xsl:value-of select="$page.height"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$page.margin.top"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$page.margin.bottom"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-left"> + <xsl:value-of select="$page.margin.inner"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-right"> + <xsl:value-of select="$page.margin.outer"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil master.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.page-sequence.properties"> +<refmeta> +<refentrytitle>foil.page-sequence.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.page-sequence.properties</refname> +<refpurpose>Specifies properties for foil page-sequence</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.page-sequence.properties.frag"> + <xsl:attribute-set name="foil.page-sequence.properties"> + <xsl:attribute name="hyphenate"> + <xsl:value-of select="$hyphenate"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for foil page-sequence.</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-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="foil.region-after.properties"> +<refmeta> +<refentrytitle>foil.region-after.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.region-after.properties</refname> +<refpurpose>Specifies properties for foil region-after</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.region-after.properties.frag"> + <xsl:attribute-set name="foil.region-after.properties"> + <xsl:attribute name="extent"> + <xsl:value-of select="$region.after.extent"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="display-align">after</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil region-after.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.region-before.properties"> +<refmeta> +<refentrytitle>foil.region-before.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.region-before.properties</refname> +<refpurpose>Specifies properties for foil region-before</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.region-before.properties.frag"> + <xsl:attribute-set name="foil.region-before.properties"> + <xsl:attribute name="extent"> + <xsl:value-of select="$region.before.extent"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="display-align"> + <xsl:value-of select="'before'"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil region-before.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.region-body.properties"> +<refmeta> +<refentrytitle>foil.region-body.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.region-body.properties</refname> +<refpurpose>Specifies properties for foil region-body</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.region-body.properties.frag"> + <xsl:attribute-set name="foil.region-body.properties"> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$body.margin.bottom"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$body.margin.top"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="column-count"> + <xsl:value-of select="$column.count.body"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil region-body.</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.title.properties"> +<refmeta> +<refentrytitle>foil.title.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.title.properties</refname> +<refpurpose>Specifies properties for foil title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.title.properties.frag"> + <xsl:attribute-set name="foil.title.properties"> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.size"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil title.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="foil.footer.properties"> +<refmeta> +<refentrytitle>foil.footer.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>foil.footer.properties</refname> +<refpurpose>Specifies properties for slides footer</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="foil.footer.properties.frag"> + <xsl:attribute-set name="foil.footer.properties"></xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the foil footer.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="handoutnotes.properties"> +<refmeta> +<refentrytitle>handoutnotes.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>footnote.properties</refname> +<refpurpose>Properties applied to handoutnotes +</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<programlisting xml:id="handoutnotes.properties.frag"> +<xsl:attribute-set name="handoutnotes.properties"></xsl:attribute-set> +</programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This attribute set is applied to handoutnotes.</para> + +</refsection> +</refentry> + +<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="slides.titlepage.master.properties"> +<refmeta> +<refentrytitle>slides.titlepage.master.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.master.properties</refname> +<refpurpose>Specifies properties for slides titlepage master</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.master.properties.frag"> + <xsl:attribute-set name="slides.titlepage.master.properties"> + <xsl:attribute name="page-width"> + <xsl:value-of select="$page.width"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="page-height"> + <xsl:value-of select="$page.height"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$page.margin.top"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$page.margin.bottom"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-left"> + <xsl:value-of select="$page.margin.inner"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="margin-right"> + <xsl:value-of select="$page.margin.outer"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the slides titlepage master.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.region-body.properties"> +<refmeta> +<refentrytitle>slides.titlepage.region-body.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.region-body.properties</refname> +<refpurpose>Specifies properties for slides titlepage region-body</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.region-body.properties.frag"> + <xsl:attribute-set name="slides.titlepage.region-body.properties"> + <xsl:attribute name="margin-bottom">0pt</xsl:attribute> + <xsl:attribute name="margin-top">0pt</xsl:attribute> + <xsl:attribute name="column-count"> + <xsl:value-of select="$column.count.body"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the slides titlepage region-body.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.corpauthor.properties"> +<refmeta> +<refentrytitle>slides.titlepage.corpauthor.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.corpauthor.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.corpauthor.properties.frag"> + <xsl:attribute-set name="slides.titlepage.corpauthor.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">20.736pt</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the corpauthor on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.title.properties"> +<refmeta> +<refentrytitle>slides.titlepage.title.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.title.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.title.properties.frag"> + <xsl:attribute-set name="slides.titlepage.title.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="padding-top">1.5in</xsl:attribute> + <xsl:attribute name="keep-with-next">always</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.size"></xsl:value-of> + </xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the title on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.subtitle.properties"> +<refmeta> +<refentrytitle>slides.titlepage.subtitle.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.subtitle.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.subtitle.properties.frag"> + <xsl:attribute-set name="slides.titlepage.subtitle.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"></xsl:value-of> + </xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the subtitle on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.author.properties"> +<refmeta> +<refentrytitle>slides.titlepage.author.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.author.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.author.properties.frag"> + <xsl:attribute-set name="slides.titlepage.author.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">20.736pt</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the author on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.pubdate.properties"> +<refmeta> +<refentrytitle>slides.titlepage.pubdate.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.pubdate.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.pubdate.properties.frag"> + <xsl:attribute-set name="slides.titlepage.pubdate.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">17.28pt</xsl:attribute> + </xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the pubdate on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="slides.titlepage.authorgroup.properties"> +<refmeta> +<refentrytitle>slides.titlepage.authorgroup.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>slides.titlepage.authorgroup.properties</refname> +<refpurpose>Specifies properties for slides titlepage title</refpurpose> +</refnamediv> + +<refsynopsisdiv> + <programlisting xml:id="slides.titlepage.authorgroup.properties.frag"> + <xsl:attribute-set name="slides.titlepage.authorgroup.properties"></xsl:attribute-set> + </programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This parameter specifies properties for the authorgroup on the default + titlepage.</para> + +</refsection> +</refentry> + +<refentry version="5.0" xml:id="speakernotes.properties"> +<refmeta> +<refentrytitle>speakernotes.properties</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> +</refmeta> +<refnamediv> +<refname>footnote.properties</refname> +<refpurpose>Properties applied to speakernotes +</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<programlisting xml:id="speakernotes.properties.frag"> +<xsl:attribute-set name="speakernotes.properties"></xsl:attribute-set> +</programlisting> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>This attribute set is applied to speakernotes.</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="foil.title.master.frag"></src:fragref> +<src:fragref linkend="foil.title.size.frag"></src:fragref> +<src:fragref linkend="generate.copyright.frag"></src:fragref> +<src:fragref linkend="generate.foilgroup.numbered.toc.frag"></src:fragref> +<src:fragref linkend="generate.foilgroup.toc.frag"></src:fragref> +<src:fragref linkend="generate.handoutnotes.frag"></src:fragref> +<src:fragref linkend="generate.page.number.frag"></src:fragref> +<src:fragref linkend="generate.pubdate.frag"></src:fragref> +<src:fragref linkend="generate.speakernotes.frag"></src:fragref> +<src:fragref linkend="generate.titlepage.frag"></src:fragref> +<src:fragref linkend="mml.embedding.mode.fo.frag"></src:fragref> +<src:fragref linkend="slide.font.family.frag"></src:fragref> +<src:fragref linkend="slide.title.font.family.frag"></src:fragref> +<src:fragref linkend="svg.embedding.mode.fo.frag"></src:fragref> + +<src:fragref linkend="foil.header.properties.frag"></src:fragref> +<src:fragref linkend="foil.master.properties.frag"></src:fragref> +<src:fragref linkend="foil.page-sequence.properties.frag"></src:fragref> +<src:fragref linkend="foil.properties.frag"></src:fragref> +<src:fragref linkend="foil.region-after.properties.frag"></src:fragref> +<src:fragref linkend="foil.region-before.properties.frag"></src:fragref> +<src:fragref linkend="foil.region-body.properties.frag"></src:fragref> +<src:fragref linkend="foil.subtitle.properties.frag"></src:fragref> +<src:fragref linkend="foil.title.properties.frag"></src:fragref> +<src:fragref linkend="handoutnotes.properties.frag"></src:fragref> +<src:fragref linkend="slides.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.master.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.region-body.properties.frag"></src:fragref> +<src:fragref linkend="speakernotes.properties.frag"></src:fragref> + +<src:fragref linkend="slides.titlepage.corpauthor.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.title.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.subtitle.properties.frag"></src:fragref> +<src:fragref linkend="foil.footer.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.author.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.pubdate.properties.frag"></src:fragref> +<src:fragref linkend="slides.titlepage.authorgroup.properties.frag"></src:fragref> + +</xsl:stylesheet> +</programlisting> + +</appendix> +</book> diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xsl new file mode 100644 index 000000000..d972fcd68 --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/param.xsl @@ -0,0 +1,222 @@ +<?xml version="1.0"?> +<!-- 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="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:param name="generate.copyright">1</xsl:param> + + <xsl:param name="generate.foilgroup.numbered.toc">1</xsl:param> + + <xsl:param name="generate.foilgroup.toc">1</xsl:param> + + <xsl:param name="generate.handoutnotes">0</xsl:param> + + <xsl:param name="generate.page.number">compact</xsl:param> + + <xsl:param name="generate.pubdate">1</xsl:param> + + <xsl:param name="generate.speakernotes">0</xsl:param> + + <xsl:param name="generate.titlepage">1</xsl:param> + + <xsl:param name="mml.embedding.mode">external-graphic</xsl:param> + +<xsl:param name="slide.font.family">Helvetica</xsl:param> +<xsl:param name="slide.title.font.family">Helvetica</xsl:param> + <xsl:param name="svg.embedding.mode">instream-foreign-object</xsl:param> + + + <xsl:attribute-set name="foil.header.properties"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"/> + </xsl:attribute> + <xsl:attribute name="space-after">12pt</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.master.properties"> + <xsl:attribute name="page-width"> + <xsl:value-of select="$page.width"/> + </xsl:attribute> + <xsl:attribute name="page-height"> + <xsl:value-of select="$page.height"/> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$page.margin.top"/> + </xsl:attribute> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$page.margin.bottom"/> + </xsl:attribute> + <xsl:attribute name="margin-left"> + <xsl:value-of select="$page.margin.inner"/> + </xsl:attribute> + <xsl:attribute name="margin-right"> + <xsl:value-of select="$page.margin.outer"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.page-sequence.properties"> + <xsl:attribute name="hyphenate"> + <xsl:value-of select="$hyphenate"/> + </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-set> + + <xsl:attribute-set name="foil.region-after.properties"> + <xsl:attribute name="extent"> + <xsl:value-of select="$region.after.extent"/> + </xsl:attribute> + <xsl:attribute name="display-align">after</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.region-before.properties"> + <xsl:attribute name="extent"> + <xsl:value-of select="$region.before.extent"/> + </xsl:attribute> + <xsl:attribute name="display-align"> + <xsl:value-of select="'before'"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.region-body.properties"> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$body.margin.bottom"/> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$body.margin.top"/> + </xsl:attribute> + <xsl:attribute name="column-count"> + <xsl:value-of select="$column.count.body"/> + </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="foil.title.properties"> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.size"/> + </xsl:attribute> + </xsl:attribute-set> + +<xsl:attribute-set name="handoutnotes.properties"/> + <xsl:attribute-set name="slides.properties"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.font.family"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.master.properties"> + <xsl:attribute name="page-width"> + <xsl:value-of select="$page.width"/> + </xsl:attribute> + <xsl:attribute name="page-height"> + <xsl:value-of select="$page.height"/> + </xsl:attribute> + <xsl:attribute name="margin-top"> + <xsl:value-of select="$page.margin.top"/> + </xsl:attribute> + <xsl:attribute name="margin-bottom"> + <xsl:value-of select="$page.margin.bottom"/> + </xsl:attribute> + <xsl:attribute name="margin-left"> + <xsl:value-of select="$page.margin.inner"/> + </xsl:attribute> + <xsl:attribute name="margin-right"> + <xsl:value-of select="$page.margin.outer"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.region-body.properties"> + <xsl:attribute name="margin-bottom">0pt</xsl:attribute> + <xsl:attribute name="margin-top">0pt</xsl:attribute> + <xsl:attribute name="column-count"> + <xsl:value-of select="$column.count.body"/> + </xsl:attribute> + </xsl:attribute-set> + +<xsl:attribute-set name="speakernotes.properties"/> + + <xsl:attribute-set name="slides.titlepage.corpauthor.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">20.736pt</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.title.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="padding-top">1.5in</xsl:attribute> + <xsl:attribute name="keep-with-next">always</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$foil.title.size"/> + </xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.subtitle.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-family"> + <xsl:value-of select="$slide.title.font.family"/> + </xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="foil.footer.properties"/> + + <xsl:attribute-set name="slides.titlepage.author.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">20.736pt</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.pubdate.properties"> + <xsl:attribute name="text-align">center</xsl:attribute> + <xsl:attribute name="space-after">1em</xsl:attribute> + <xsl:attribute name="font-size">17.28pt</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="slides.titlepage.authorgroup.properties"/> + + +</xsl:stylesheet> + diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xml new file mode 100644 index 000000000..d817f130c --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xml @@ -0,0 +1,49 @@ +<!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:named-template="presentation.title" + xsl:use-attribute-sets="slides.titlepage.title.properties"/> + + <subtitle xsl:use-attribute-sets="slides.titlepage.subtitle.properties"/> + + <corpauthor xsl:use-attribute-sets="slides.titlepage.corpauthor.properties"/> + <authorgroup xsl:use-attribute-sets="slides.titlepage.authorgroup.properties"/> + <author xsl:use-attribute-sets="slides.titlepage.author.properties"/> + + <pubdate xsl:use-attribute-sets="slides.titlepage.pubdate.properties"/> + </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/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xsl new file mode 100644 index 000000000..f79cf8119 --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xsl @@ -0,0 +1,150 @@ +<?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"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/title"/> + </xsl:when> + <xsl:when test="info/title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/title"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="title"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="slidesinfo/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/subtitle"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/subtitle"/> + </xsl:when> + <xsl:when test="info/subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/subtitle"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="subtitle"/> + </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: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"> + <block> + <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)"> + <block><xsl:copy-of select="$recto.content"/></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)"> + <block><xsl:copy-of select="$verso.content"/></block> + </xsl:if> + <xsl:call-template name="slides.titlepage.separator"/> + </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"> +<block xsl:use-attribute-sets="slides.titlepage.title.properties"> +<xsl:call-template name="presentation.title"> +</xsl:call-template> +</block> +</xsl:template> + +<xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode"> +<block xsl:use-attribute-sets="slides.titlepage.subtitle.properties"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</block> +</xsl:template> + +<xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode"> +<block xsl:use-attribute-sets="slides.titlepage.corpauthor.properties"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</block> +</xsl:template> + +<xsl:template match="authorgroup" mode="slides.titlepage.recto.auto.mode"> +<block xsl:use-attribute-sets="slides.titlepage.authorgroup.properties"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</block> +</xsl:template> + +<xsl:template match="author" mode="slides.titlepage.recto.auto.mode"> +<block xsl:use-attribute-sets="slides.titlepage.author.properties"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</block> +</xsl:template> + +<xsl:template match="pubdate" mode="slides.titlepage.recto.auto.mode"> +<block xsl:use-attribute-sets="slides.titlepage.pubdate.properties"> +<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/> +</block> +</xsl:template> + +</xsl:stylesheet> + diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain.xsl new file mode 100644 index 000000000..40217ea99 --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain.xsl @@ -0,0 +1,563 @@ +<?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:db="http://docbook.org/ns/docbook" + xmlns:dbs="http://docbook.org/ns/docbook-slides" + xmlns:exsl="http://exslt.org/common" + exclude-result-prefixes="dbs db" + extension-element-prefixes="exsl" + version="1.0"> + +<xsl:import href="../../fo/docbook.xsl"/> +<xsl:import href="../common/common.xsl"/> +<xsl:include href="plain-titlepage.xsl"/> +<xsl:include href="param.xsl"/> + +<xsl:output indent="yes"/> + +<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:gentext key="Speakernotes" text="Speaker Notes"/> + <l:gentext key="Handoutnotes" text="Handout Notes"/> + <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> + +<!-- Start of overrides --> + +<xsl:param name="page.margin.top" select="'0.25in'"/> +<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="body.margin.top" select="'1in'"/> +<xsl:param name="body.margin.bottom" select="'0.5in'"/> +<xsl:param name="region.before.extent" select="'0.75in'"/> +<xsl:param name="region.after.extent" select="'0.5in'"/> +<xsl:param name="column.count.body" select="1"/> +<xsl:param name="body.font.size">20</xsl:param> + +<xsl:param name="callout.icon.size" select="'40pt'"/> +<xsl:param name="alignment" select="'start'"/> +<xsl:param name="preferred.mediaobject.role" select="'print'"/> +<xsl:param name="page.orientation" select="'landscape'"/> + +<xsl:variable name="root.elements" select="' slides '"/> + +<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="orderedlist.properties"> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.size"/> + </xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="footnote.properties"> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.size * 0.8"/> + </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:template name="bibliography.titlepage"/> + +<!-- Do not add db namespace to dbs elements --> +<xsl:template match="*[namespace-uri() = 'http://docbook.org/ns/docbook-slides']" mode="addNS"> + <xsl:copy-of select="."/> +</xsl:template> + +<!-- End of overrides --> + +<xsl:template name="user.pagemasters"> + <fo:simple-page-master master-name="slides-titlepage-master" + xsl:use-attribute-sets="slides.titlepage.master.properties"> + <fo:region-body xsl:use-attribute-sets="slides.titlepage.region-body.properties"/> + </fo:simple-page-master> + + <fo:simple-page-master master-name="slides-foil-master" + xsl:use-attribute-sets="foil.master.properties"> + <fo:region-body xsl:use-attribute-sets="foil.region-body.properties"/> + <fo:region-before region-name="xsl-region-before-foil" xsl:use-attribute-sets="foil.region-before.properties"/> + <fo:region-after region-name="xsl-region-after-foil" xsl:use-attribute-sets="foil.region-after.properties"/> + </fo:simple-page-master> + + <fo:simple-page-master master-name="slides-foil-continued-master" + xsl:use-attribute-sets="foil.master.properties"> + <fo:region-body xsl:use-attribute-sets="foil.region-body.properties"/> + <fo:region-before region-name="xsl-region-before-foil-continued" xsl:use-attribute-sets="foil.region-before.properties"/> + <fo:region-after region-name="xsl-region-after-foil-continued" xsl:use-attribute-sets="foil.region-after.properties"/> + </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 name="presentation.title"> + <xsl:call-template name="get.title"> + <xsl:with-param name="ctx" select="/dbs:slides"/> + </xsl:call-template> +</xsl:template> + +<xsl:template name="slides.bookmarks"> + <fo:bookmark-tree> + <xsl:apply-templates select="/dbs:slides/dbs:foil|/dbs:slides/dbs:foilgroup" mode="bookmark.mode"/> + </fo:bookmark-tree> +</xsl:template> + +<xsl:template match="dbs:foil|dbs:foilgroup" mode="bookmark.mode"> + <fo:bookmark> + <xsl:attribute name="internal-destination"> + <xsl:call-template name="object.id"/> + </xsl:attribute> + + <fo:bookmark-title> + <xsl:call-template name="get.title"/> + </fo:bookmark-title> + + <xsl:if test="self::dbs:foilgroup"> + <xsl:apply-templates select="dbs:foil" mode="bookmark.mode"/> + </xsl:if> + </fo:bookmark> +</xsl:template> + +<xsl:template match="db:author" mode="titlepage.mode"> + <fo:block> + <xsl:apply-templates select="db:personname" mode="titlepage.mode"/> + </fo:block> + + <fo:block> + <xsl:apply-templates select="db:affiliation" mode="titlepage.mode"/> + </fo:block> + + <fo:block> + <xsl:apply-templates select="db:email" mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="/"> + <fo:root xsl:use-attribute-sets="slides.properties"> + <fo:layout-master-set> + <xsl:call-template name="user.pagemasters"/> + </fo:layout-master-set> + + <xsl:call-template name="slides.bookmarks"/> + + <xsl:if test="$generate.titlepage != 0"> + <fo:page-sequence hyphenate="{$hyphenate}" + master-reference="slides-titlepage"> + <xsl:attribute name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:attribute> + + <fo:flow flow-name="xsl-region-body"> + <fo:block> + <xsl:apply-templates select="/dbs:slides" mode="titlepage"/> + </fo:block> + </fo:flow> + </fo:page-sequence> + </xsl:if> + + <xsl:apply-templates select="/dbs:slides/dbs:foil|/dbs:slides/dbs:foilgroup"/> + </fo:root> +</xsl:template> + +<xsl:template match="dbs:slides" mode="titlepage"> + <xsl:call-template name="slides.titlepage"/> +</xsl:template> + +<xsl:template name="page.template"> + <xsl:param name="mode" select="'normal'"/> + + <xsl:param name="title"> + <xsl:call-template name="get.title"/> + </xsl:param> + + <xsl:param name="subtitle"> + <xsl:call-template name="get.subtitle"/> + </xsl:param> + + <fo:page-sequence master-reference="slides-foil" xsl:use-attribute-sets="foil.page-sequence.properties"> + <xsl:attribute name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:attribute> + + <xsl:attribute name="id"> + <xsl:call-template name="object.id"/> + </xsl:attribute> + + <fo:static-content flow-name="xsl-region-before-foil"> + <fo:block xsl:use-attribute-sets="foil.header.properties"> + <fo:block xsl:use-attribute-sets="foil.title.properties"> + <xsl:value-of select="$title"/> + </fo:block> + + <fo:block xsl:use-attribute-sets="foil.subtitle.properties"> + <xsl:value-of select="$subtitle"/> + </fo:block> + </fo:block> + </fo:static-content> + + <fo:static-content flow-name="xsl-region-before-foil-continued"> + <fo:block xsl:use-attribute-sets="foil.header.properties"> + <fo:block xsl:use-attribute-sets="foil.title.properties"> + <xsl:value-of select="$title"/> + <xsl:text> </xsl:text> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Continued'"/> + </xsl:call-template> + </fo:block> + </fo:block> + </fo:static-content> + + <fo:static-content flow-name="xsl-region-after-foil"> + <xsl:call-template name="generate.footer"/> + </fo:static-content> + + <fo:static-content flow-name="xsl-region-after-foil-continued"> + <xsl:call-template name="generate.footer"/> + </fo:static-content> + + <fo:flow flow-name="xsl-region-body"> + <fo:block xsl:use-attribute-sets="foil.properties"> + <xsl:choose> + <xsl:when test="$mode = 'normal'"> + <xsl:apply-templates select="*[not(self::dbs:foil)][not(self::db:info)][not(self::db:title)][not(self::db:titleabbrev)][not(self::db:subtitle)][not(self::dbs:speakernotes)][not(self::dbs:handoutnotes)]"/> + + <xsl:if test="self::dbs:foilgroup and ($generate.foilgroup.toc != 0)"> + <xsl:call-template name="foilgroup.generate.toc"/> + </xsl:if> + </xsl:when> + + <xsl:when test="$mode = 'speakernotes'"> + <xsl:apply-templates select="dbs:speakernotes"/> + </xsl:when> + + <xsl:when test="$mode = 'handoutnotes'"> + <xsl:apply-templates select="dbs:handoutnotes"/> + </xsl:when> + </xsl:choose> + </fo:block> + </fo:flow> + </fo:page-sequence> +</xsl:template> + +<xsl:template match="dbs:foil|dbs:foilgroup"> + <xsl:call-template name="page.template"/> + + <xsl:call-template name="generate.slide.notes"/> + + <xsl:if test="self::dbs:foilgroup"> + <xsl:apply-templates select="dbs:foil"/> + </xsl:if> +</xsl:template> + +<xsl:template name="generate.slide.notes"> + <xsl:variable name="subtitle.handoutnotes"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Handoutnotes'"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="subtitle.speakernotes"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Speakernotes'"/> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="($generate.handoutnotes != 0) and ./dbs:handoutnotes"> + <xsl:call-template name="page.template"> + <xsl:with-param name="mode" select="'handoutnotes'"/> + <xsl:with-param name="subtitle" select="$subtitle.handoutnotes"/> + </xsl:call-template> + </xsl:if> + + <xsl:if test="($generate.speakernotes != 0) and ./dbs:speakernotes"> + <xsl:call-template name="page.template"> + <xsl:with-param name="mode" select="'speakernotes'"/> + <xsl:with-param name="subtitle" select="$subtitle.speakernotes"/> + </xsl:call-template> + </xsl:if> +</xsl:template> + +<xsl:template match="dbs:handoutnotes"> + <fo:block xsl:use-attribute-sets="handoutnotes.properties"> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="dbs:speakernotes"> + <fo:block xsl:use-attribute-sets="speakernotes.properties"> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="dbs:block"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template name="generate.footer"> +<fo:block xsl:use-attribute-sets="foil.footer.properties"> + <fo:table> + <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"> + <xsl:call-template name="footer.left"/> + </fo:table-cell> + + <fo:table-cell text-align="center"> + <xsl:call-template name="footer.center"/> + </fo:table-cell> + + <fo:table-cell text-align="right"> + <xsl:call-template name="footer.right"/> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> +</fo:block> +</xsl:template> + +<xsl:template name="footer.left"> + <fo:block/> +</xsl:template> + +<xsl:template name="footer.center"> + <xsl:if test="($generate.copyright != 0) and /dbs:slides/db:info/db:copyright"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Copyright'"/> + </xsl:call-template> + <xsl:call-template name="gentext.space"/> + <xsl:text>©</xsl:text> + <xsl:call-template name="gentext.space"/> + <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:year"/> + <xsl:call-template name="gentext.space"/> + <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:holder"/> + </fo:block> + </xsl:if> + + <xsl:if test="($generate.pubdate != 0) and /dbs:slides/db:info/db:pubdate"> + <xsl:call-template name="slide.pubdate"/> + </xsl:if> +</xsl:template> + +<xsl:template name="footer.right"> + <fo:block> + <xsl:if test="$generate.page.number != 'no'"> + <fo:page-number/> + </xsl:if> + + <xsl:if test="$generate.page.number = 'full'"> + <xsl:text> / </xsl:text> + <fo:page-number-citation> + <xsl:attribute name="ref-id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="(//dbs:foilgroup|//dbs:foil)[last()]"/> + </xsl:call-template> + </xsl:attribute> + </fo:page-number-citation> + </xsl:if> + </fo:block> +</xsl:template> + +<xsl:template name="slide.pubdate"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Published'"/> + </xsl:call-template> + <xsl:text>: </xsl:text> + <xsl:value-of select="/dbs:slides/db:info/db:pubdate"/> + </fo:block> +</xsl:template> + +<xsl:template name="foilgroup.generate.toc"> + <xsl:choose> + <xsl:when test="$generate.foilgroup.numbered.toc != 0"> + <fo:list-block xsl:use-attribute-sets="list.block.spacing orderedlist.properties"> + <xsl:for-each select="./dbs:foil"> + <fo:list-item xsl:use-attribute-sets="list.item.spacing"> + <fo:list-item-label end-indent="label-end()" xsl:use-attribute-sets="orderedlist.label.properties"> + <fo:block> + <xsl:value-of select="position()"/> + </fo:block> + </fo:list-item-label> + + <fo:list-item-body start-indent="body-start()"> + <fo:block> + <xsl:call-template name="get.title"/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + </fo:list-block> + </xsl:when> + + <xsl:otherwise> + <fo:list-block xsl:use-attribute-sets="list.block.spacing itemizedlist.properties"> + <xsl:for-each select="./dbs:foil"> + <fo:list-item xsl:use-attribute-sets="list.item.spacing"> + <fo:list-item-label end-indent="label-end()" xsl:use-attribute-sets="itemizedlist.label.properties"> + <fo:block> + <xsl:call-template name="itemizedlist.label.markup"> + <xsl:with-param name="itemsymbol"> + <xsl:call-template name="list.itemsymbol"/> + </xsl:with-param> + </xsl:call-template> + </fo:block> + </fo:list-item-label> + + <fo:list-item-body start-indent="body-start()"> + <fo:block> + <xsl:call-template name="get.title"/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + </fo:list-block> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="*[namespace-uri() = 'http://www.w3.org/2000/svg']"> + <xsl:call-template name="handle.embedded"> + <xsl:with-param name="modeParam" select="$svg.embedding.mode"/> + <xsl:with-param name="fileExt" select="'.svg'"/> + </xsl:call-template> +</xsl:template> + +<xsl:template match="*[namespace-uri() = 'http://www.w3.org/1998/Math/MathML']"> + <xsl:call-template name="handle.embedded"> + <xsl:with-param name="modeParam" select="$mml.embedding.mode"/> + <xsl:with-param name="fileExt" select="'.mml'"/> + </xsl:call-template> +</xsl:template> + +<xsl:template name="handle.embedded"> + <xsl:param name="modeParam">inline</xsl:param> + <xsl:param name="fileExt"/> + + <xsl:choose> + <xsl:when test="$modeParam = 'inline'"> + <xsl:copy-of select="."/> + </xsl:when> + + <xsl:when test="$modeParam = 'instream-foreign-object'"> + <fo:instream-foreign-object> + <xsl:copy-of select="."/> + </fo:instream-foreign-object> + </xsl:when> + + <xsl:otherwise> + <xsl:variable name="id"> + <xsl:call-template name="object.id"/> + </xsl:variable> + <xsl:variable name="fname"> + <xsl:value-of select="concat($id, $fileExt)"/> + </xsl:variable> + <xsl:variable name="prefix">url('</xsl:variable> + <xsl:variable name="suffix">')</xsl:variable> + <xsl:variable name="file.uri"> + <xsl:value-of select="concat($prefix, $fname, $suffix)"/> + </xsl:variable> + + <exsl:document href="{$fname}"> + <xsl:copy-of select="."/> + + <xsl:fallback> + <xsl:message terminate="yes"> + Your XSLT processor does not support exsl:document. + You can only use inline SVG images. + </xsl:message> + </xsl:fallback> + </exsl:document> + + <xsl:choose> + <xsl:when test="$modeParam = 'external-graphic'"> + <fo:external-graphic src="{$file.uri}"/> + </xsl:when> + + <xsl:otherwise> + <xsl:message terminate="yes"> + Unknown processing mode <xsl:value-of select="$modeParam"/>. + </xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="dbs:foil|dbs: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> |