summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-15 17:58:40 +0000
committerGerald Carter <jerry@samba.org>2003-08-15 17:58:40 +0000
commitc62c8711be1f839b9ec91fbd93c1e76090763349 (patch)
treec9105a35e673a3c72df4c71afb9b8e7a62835c43
parent7139794cd0e68298e638929f35e7684a60fe5974 (diff)
downloadsamba-c62c8711be1f839b9ec91fbd93c1e76090763349.tar.gz
syncing up to 3.0.0rc1
-rw-r--r--docs/docbook/xslt/db2latex/VERSION.xml21
-rw-r--r--docs/docbook/xslt/db2latex/abstract.mod.xsl92
-rw-r--r--docs/docbook/xslt/db2latex/admonition.mod.xsl222
-rw-r--r--docs/docbook/xslt/db2latex/authorgroup.mod.xsl78
-rw-r--r--docs/docbook/xslt/db2latex/biblio.mod.xsl605
-rw-r--r--docs/docbook/xslt/db2latex/block.mod.xsl174
-rw-r--r--docs/docbook/xslt/db2latex/book-article.mod.xsl540
-rw-r--r--docs/docbook/xslt/db2latex/bridgehead.mod.xsl71
-rw-r--r--docs/docbook/xslt/db2latex/callout.mod.xsl61
-rw-r--r--docs/docbook/xslt/db2latex/citation.mod.xsl63
-rw-r--r--docs/docbook/xslt/db2latex/component.mod.xsl91
-rw-r--r--docs/docbook/xslt/db2latex/dedication.mod.xsl126
-rw-r--r--docs/docbook/xslt/db2latex/dingbat.mod.xsl69
-rw-r--r--docs/docbook/xslt/db2latex/docbook.xsl149
-rw-r--r--docs/docbook/xslt/db2latex/email.mod.xsl62
-rw-r--r--docs/docbook/xslt/db2latex/errors.mod.xsl16
-rw-r--r--docs/docbook/xslt/db2latex/example.mod.xsl76
-rw-r--r--docs/docbook/xslt/db2latex/figure.mod.xsl127
-rw-r--r--docs/docbook/xslt/db2latex/font.mod.xsl55
-rw-r--r--docs/docbook/xslt/db2latex/footnote.mod.xsl82
-rw-r--r--docs/docbook/xslt/db2latex/formal.mod.xsl173
-rw-r--r--docs/docbook/xslt/db2latex/glossary.mod.xsl218
-rw-r--r--docs/docbook/xslt/db2latex/graphic.mod.xsl87
-rw-r--r--docs/docbook/xslt/db2latex/html.mod.xsl15
-rw-r--r--docs/docbook/xslt/db2latex/index.mod.xsl213
-rw-r--r--docs/docbook/xslt/db2latex/info.mod.xsl66
-rw-r--r--docs/docbook/xslt/db2latex/inline.mod.xsl523
-rw-r--r--docs/docbook/xslt/db2latex/keywords.mod.xsl59
-rw-r--r--docs/docbook/xslt/db2latex/labelid.mod.xsl476
-rw-r--r--docs/docbook/xslt/db2latex/latex.mapping.dtd13
-rw-r--r--docs/docbook/xslt/db2latex/latex.mapping.xml290
-rw-r--r--docs/docbook/xslt/db2latex/latex.mapping.xsl174
-rw-r--r--docs/docbook/xslt/db2latex/lists.mod.xsl452
-rw-r--r--docs/docbook/xslt/db2latex/mathelem.mod.xsl222
-rw-r--r--docs/docbook/xslt/db2latex/mediaobject.mod.xsl224
-rw-r--r--docs/docbook/xslt/db2latex/msgset.mod.xsl76
-rw-r--r--docs/docbook/xslt/db2latex/normalize-scape.mod.xsl398
-rw-r--r--docs/docbook/xslt/db2latex/para.mod.xsl71
-rw-r--r--docs/docbook/xslt/db2latex/part-chap-app.mod.xsl132
-rw-r--r--docs/docbook/xslt/db2latex/pi.mod.xsl181
-rw-r--r--docs/docbook/xslt/db2latex/preamble.mod.xsl810
-rw-r--r--docs/docbook/xslt/db2latex/preface.mod.xsl109
-rw-r--r--docs/docbook/xslt/db2latex/procedure.mod.xsl162
-rw-r--r--docs/docbook/xslt/db2latex/qandaset.mod.xsl406
-rw-r--r--docs/docbook/xslt/db2latex/refentry.mod.xsl184
-rw-r--r--docs/docbook/xslt/db2latex/revision.mod.xsl215
-rw-r--r--docs/docbook/xslt/db2latex/sections.mod.xsl147
-rw-r--r--docs/docbook/xslt/db2latex/set.mod.xsl50
-rw-r--r--docs/docbook/xslt/db2latex/sgmltag.mod.xsl154
-rw-r--r--docs/docbook/xslt/db2latex/synop-oop.mod.xsl689
-rw-r--r--docs/docbook/xslt/db2latex/synop-struct.mod.xsl246
-rw-r--r--docs/docbook/xslt/db2latex/table.mod.xsl743
-rw-r--r--docs/docbook/xslt/db2latex/texmath.mod.xsl117
-rw-r--r--docs/docbook/xslt/db2latex/vars.mod.xsl937
-rw-r--r--docs/docbook/xslt/db2latex/verbatim.mod.xsl144
-rw-r--r--docs/docbook/xslt/db2latex/xref.mod.xsl657
-rw-r--r--docs/docbook/xslt/generate-attributions.xsl39
-rw-r--r--docs/docbook/xslt/html-common.xsl3
-rw-r--r--docs/docbook/xslt/latex.xsl17
-rw-r--r--docs/docbook/xslt/latex/sambadoc.cls2
60 files changed, 37 insertions, 12637 deletions
diff --git a/docs/docbook/xslt/db2latex/VERSION.xml b/docs/docbook/xslt/db2latex/VERSION.xml
deleted file mode 100644
index 70bbf95e887..00000000000
--- a/docs/docbook/xslt/db2latex/VERSION.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- + ############################################################################## -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-<xsl:variable name="VERSION">0.7.1</xsl:variable>
-<xsl:variable name="LASTRELEASE">0.7</xsl:variable>
-<xsl:variable name="TAG">
- <xsl:variable name="RCSTAG" select="substring-before(substring-after('$Name: $',concat('$','Name: ')),'$')"/>
- <xsl:choose>
- <xsl:when test="normalize-space($RCSTAG)=''">HEAD</xsl:when>
- <xsl:otherwise><xsl:value-of select="$RCSTAG" /></xsl:otherwise>
- </xsl:choose>
-</xsl:variable>
-
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/abstract.mod.xsl b/docs/docbook/xslt/db2latex/abstract.mod.xsl
deleted file mode 100644
index a9bc2e02ce1..00000000000
--- a/docs/docbook/xslt/db2latex/abstract.mod.xsl
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="abstract" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
- <author><firstname>James</firstname> <surname>Devenish</surname></author>
- </authorgroup>
- <copyright>
- <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Abstract <filename>abstract.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>This file <filename>abstract.mod.xsl</filename> contains a single
- XSL template for <sgmltag>abstract</sgmltag>.</para>
- <itemizedlist>
- <listitem><para>Calls <literal>map.begin</literal>.</para></listitem>
- <listitem><para>Processes children with <sgmltag>xsl:apply-templates</sgmltag>.</para></listitem>
- <listitem><para>Calls <literal>map.end</literal></para></listitem>
- <listitem><para>The abstract/title template is empty.</para></listitem>
- </itemizedlist>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="abstract" xmlns="">
- <refpurpose> Abstract XSL template. </refpurpose>
- <refdescription>
- <para>Calls template <xref linkend="map.begin"/>(<literal>map.begin</literal>),
- to output the opening command (by default):</para>
- <screen>
- % --------------------------------------------
- % Abstract
- % --------------------------------------------
- \begin{abstract}
- </screen>
- <para> Calls "apply-templates" for all the children, and calls template
- <xref linkend="map.end"/>(<literal>map.end</literal>) to output the closing
- command.</para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para> The title of the abstract is lost.</para></listitem>
- <listitem><para> The template for abstract/title is defined EMPTY.</para></listitem>
- </itemizedlist>
- </formalpara>
-
- <formalpara><title>Default Behaviour</title>
- <screen>
- Fill
- </screen>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <!-- TEMPLATE -->
- <xsl:template match="abstract">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
- <xsl:template match="abstract/title"/>
-
-</xsl:stylesheet>
-
-
diff --git a/docs/docbook/xslt/db2latex/admonition.mod.xsl b/docs/docbook/xslt/db2latex/admonition.mod.xsl
deleted file mode 100644
index 56042a610ec..00000000000
--- a/docs/docbook/xslt/db2latex/admonition.mod.xsl
+++ /dev/null
@@ -1,222 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Admonition templates.
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference name="admonition" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
- <author><firstname>James</firstname> <surname>Devenish</surname></author>
- </authorgroup>
- <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Admonition XSL Variables and Templates <filename>admonition.mod.xsl</filename></title>
-
- <partintro>
- <section><title>Introduction</title>
- <para>DocBook includes admonitions, which are set off from the main text.</para>
- </section>
- <formalpara><title>Pertinent Variables</title>
- <itemizedlist>
- <listitem><simpara><xref linkend="param.latex.use.fancybox"/></simpara></listitem>
- <listitem><simpara><xref linkend="param.latex.admonition.path"/></simpara></listitem>
- <listitem><simpara><xref linkend="param.latex.admonition.imagesize"/></simpara></listitem>
- <listitem><simpara><xref linkend="param.latex.apply.title.templates.admonitions"/></simpara></listitem>
- </itemizedlist>
- </formalpara>
- </partintro>
- </doc:reference>
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:param name="latex.admonition.environment" xmlns="">
- <refpurpose>
- Declares a new environment to be used for admonitions
- (warning, tip, important, caution, note).
- </refpurpose>
- <refdescription>
- <para>
- A LaTeX environment is emitted. That environment has two mandatory parameters.
- Instances of the environment are customised for each admonition via those parameters.
- Instances will be typeset as boxed areas in the document flow.
- </para>
- <para>
- The first argument is the filename for graphics (e.g $latex.admonition.path/warning).
- The second argument is the admonition title or the associated generic text.
- </para>
- <para>
- It requires the LaTeX <link linkend="param.latex.use.fancybox">fancybox package</link>.
- It also uses graphics, by default.
- </para>
- <example>
- <title>Processing the <sgmltag class="element">warning</sgmltag> admonition</title>
- <para> When processing the admonition, the following code is generated: </para>
- <programlisting><![CDATA[
- \begin{admonition}{figures/warning}{My WARNING}
- ...
- \end{admonition}]]>
- </programlisting>
- </example>
- </refdescription>
- </doc:param>
-
-<!--############################################################################# -->
-<xsl:variable name="latex.admonition.environment">
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>% Define a new LaTeX environment (adminipage) &#10;</xsl:text>
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>\newenvironment{admminipage}%&#10;</xsl:text>
-<xsl:text>{ % this code corresponds to the \begin{adminipage} command&#10;</xsl:text>
-<xsl:text> \begin{Sbox}%&#10;</xsl:text>
-<xsl:text> \begin{minipage}%&#10;</xsl:text>
-<xsl:text>} %done&#10;</xsl:text>
-<xsl:text>{ % this code corresponds to the \end{adminipage} command&#10;</xsl:text>
-<xsl:text> \end{minipage}&#10;</xsl:text>
-<xsl:text> \end{Sbox}&#10;</xsl:text>
-<xsl:text> \fbox{\TheSbox}&#10;</xsl:text>
-<xsl:text>} %done&#10;</xsl:text>
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>% Define a new LaTeX length (admlength) &#10;</xsl:text>
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>\newlength{\admlength}&#10;</xsl:text>
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>% Define a new LaTeX environment (admonition) &#10;</xsl:text>
-<xsl:text>% With 2 parameters: &#10;</xsl:text>
-<xsl:text>% #1 The file (e.g. note.pdf) &#10;</xsl:text>
-<xsl:text>% #2 The caption &#10;</xsl:text>
-<xsl:text>% ---------------------------------------------- &#10;</xsl:text>
-<xsl:text>\newenvironment{admonition}[2] &#10;</xsl:text>
-<xsl:text>{ % this code corresponds to the \begin{admonition} command&#10;</xsl:text>
-<xsl:text> \hspace{0mm}\newline\hspace*\fill\newline&#10;</xsl:text>
-<xsl:text> \noindent&#10;</xsl:text>
-<xsl:text> \setlength{\fboxsep}{5pt}&#10;</xsl:text>
-<xsl:text> \setlength{\admlength}{\linewidth}&#10;</xsl:text>
-<xsl:text> \addtolength{\admlength}{-10\fboxsep}&#10;</xsl:text>
-<xsl:text> \addtolength{\admlength}{-10\fboxrule}&#10;</xsl:text>
-<xsl:text> \admminipage{\admlength}&#10;</xsl:text>
-<xsl:text> {\bfseries \sc\large{#2}}</xsl:text>
-<xsl:text> \newline&#10;</xsl:text>
-<xsl:text> \\[1mm]&#10;</xsl:text>
-<xsl:text> \sffamily&#10;</xsl:text>
-<!--
-If we cannot find the latex.admonition.path;
-Comment out the next line (\includegraphics).
-This tactic is to avoid deleting the \includegraphics
-altogether, as that could confuse a person trying to
-find the use of parameter #1 in the environment.
--->
-<xsl:if test="$latex.admonition.path=''">
- <xsl:text>%</xsl:text>
-</xsl:if>
-<xsl:text> \includegraphics[</xsl:text> <xsl:value-of select="$latex.admonition.imagesize" /> <xsl:text>]{#1}&#10;</xsl:text>
-<xsl:text> \addtolength{\admlength}{-1cm}&#10;</xsl:text>
-<xsl:text> \addtolength{\admlength}{-20pt}&#10;</xsl:text>
-<xsl:text> \begin{minipage}[lt]{\admlength}&#10;</xsl:text>
-<xsl:text> \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt&#10;</xsl:text>
-<xsl:text>} %done&#10;</xsl:text>
-<xsl:text>{ % this code corresponds to the \end{admonition} command&#10;</xsl:text>
-<xsl:text> \vspace{5mm} &#10;</xsl:text>
-<xsl:text> \end{minipage}&#10;</xsl:text>
-<xsl:text> \endadmminipage&#10;</xsl:text>
-<xsl:text> \vspace{.5em}&#10;</xsl:text>
-<xsl:text> \par&#10;</xsl:text>
-<xsl:text>}&#10;</xsl:text>
-</xsl:variable>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template name="admon.graphic" xmlns="">
- <refpurpose> Choose an admonition graphic </refpurpose>
- <refdescription>
- <para> For each admonition element (note, warning, caution, top, important),
- this template chooses the graphics filename. If the admonition element is
- not known, the <sgmltag class="element">note</sgmltag> graphic is used.
- </para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template name="admon.graphic">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="name($node)='note'">note</xsl:when>
- <xsl:when test="name($node)='warning'">warning</xsl:when>
- <xsl:when test="name($node)='caution'">caution</xsl:when>
- <xsl:when test="name($node)='tip'">tip</xsl:when>
- <xsl:when test="name($node)='important'">important</xsl:when>
- <xsl:otherwise>note</xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template name="admonitions" match="note|important|warning|caution|tip" xmlns="">
- <refpurpose> XSL Template for admonitions </refpurpose>
- <refdescription>
- <para> Uses the <xref linkend="param.latex.admonition.environment"/>.
- </para>
- <note><para>An admonition will look something like this.</para></note>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem>
- <para>
- There can be <quote>excessive</quote> whitespace between
- the bottom of the admonition area and a subsequent paragraph.
- </para>
- </listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="note|important|warning|caution|tip">
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword">admonition</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$latex.admonition.path"/><xsl:text>/</xsl:text>
- <xsl:call-template name="admon.graphic"/>
- <xsl:text>}{</xsl:text>
- <xsl:choose>
- <xsl:when test="title and $latex.apply.title.templates.admonitions='1'">
- <xsl:call-template name="extract.object.title">
- <xsl:with-param name="object" select="."/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext.element.name"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end">
- <xsl:with-param name="keyword">admonition</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Empty title template -->
- <xsl:template match="note/title|important/title|warning/title|caution/title|tip/title"/>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/authorgroup.mod.xsl b/docs/docbook/xslt/db2latex/authorgroup.mod.xsl
deleted file mode 100644
index 6ec7460def5..00000000000
--- a/docs/docbook/xslt/db2latex/authorgroup.mod.xsl
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Manage Authorgroups
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="authorgroup" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
- <author><firstname>James</firstname> <surname>Devenish</surname></author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Authorgroup <filename>authorgroup.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <formalpara><title>Pertinent Variables</title>
- <itemizedlist>
- <listitem><simpara><xref linkend="param.biblioentry.item.separator"/></simpara></listitem>
- </itemizedlist>
- </formalpara>
- </section>
- </partintro>
- </doc:reference>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="authorgroup" xmlns="">
- <refpurpose> Authorgroup XSL template. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
-
- <xsl:template match="authorgroup">
- <xsl:for-each select="author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="authorinitials" xmlns="">
- <refpurpose> AuthorInitials XSL template. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
-
- <xsl:template match="authorinitials">
- <xsl:apply-templates/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/biblio.mod.xsl b/docs/docbook/xslt/db2latex/biblio.mod.xsl
deleted file mode 100644
index 9524015b1e1..00000000000
--- a/docs/docbook/xslt/db2latex/biblio.mod.xsl
+++ /dev/null
@@ -1,605 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Manage Bibliography.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="biblio" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Bibliography related XSL Variables and Templates <filename>biblio.mod.xsl</filename></title>
-
- <partintro>
- <section><title>Introduction</title>
- <para>This reference describes the templates and parameters relevant
- to formatting DocBook bibliography markup.</para>
- </section>
- <section><title>All Vs. Cited mode</title>
- <para> Using this option, only the biblioentries that have been
- cited somewhere in the document are output. Otherwise (in All mode)
- all bibentries found are output (as the HTML stylesheets do).</para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
- <!--#############################################################################
- | BIBLIOGRAPHY
- |- #############################################################################
- |
- |
- |
- + ############################################################################## -->
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="bibliography" xmlns="">
- <refpurpose> bibliography XSL template </refpurpose>
- <refdescription>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="bibliography">
- <xsl:message>DB2LaTeX: Processing BIBLIOGRAPHY</xsl:message>
- <xsl:message>DB2LaTeX: Output Mode : <xsl:value-of select="$latex.biblio.output"/></xsl:message>
- <xsl:text>% ------------------------------------------- &#10;</xsl:text>
- <xsl:text>% &#10;</xsl:text>
- <xsl:text>% Bibliography&#10;</xsl:text>
- <xsl:text>% &#10;</xsl:text>
- <xsl:text>% ------------------------------------------- &#10;</xsl:text>
- <xsl:text>\bibliography{</xsl:text><xsl:value-of select="$latex.bibfiles"/><xsl:text>}&#10;</xsl:text>
- <xsl:if test="biblioentry or bibliodiv">
- <xsl:text>\begin{thebibliography}{</xsl:text>
- <xsl:value-of select="$latex.bibwidelabel"/>
- <xsl:text>}&#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.biblio.output ='cited'">
- <xsl:apply-templates select="biblioentry" mode="bibliography.cited">
- <xsl:sort select="./abbrev"/>
- <xsl:sort select="./@xreflabel"/>
- <xsl:sort select="./@id"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="$latex.biblio.output ='all'">
- <xsl:apply-templates select="biblioentry" mode="bibliography.all">
- <xsl:sort select="./abbrev"/>
- <xsl:sort select="./@xreflabel"/>
- <xsl:sort select="./@id"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="biblioentry">
- <xsl:sort select="./abbrev"/>
- <xsl:sort select="./@xreflabel"/>
- <xsl:sort select="./@id"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- <!-- <xsl:apply-templates select="child::*[name(.)!='biblioentry']"/> -->
- <xsl:apply-templates select="bibliodiv"/>
- <xsl:text>&#10;\end{thebibliography}&#10;</xsl:text>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="bibliography/title"/>
- <xsl:template match="bibliography/subtitle"/>
- <xsl:template match="bibliography/titleabbrev"/>
-
-
-
- <!--#############################################################################
- | BIBLIODIV
- |- #############################################################################
- |
- |
- |
- + ############################################################################## -->
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="bibliodiv" xmlns="">
- <refpurpose> bibliography XSL template </refpurpose>
- <refdescription>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="bibliodiv">
- <xsl:message>DB2LaTeX: Processing BIBLIOGRAPHY - BIBLIODIV</xsl:message>
- <!--
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;</xsl:text>
- <xsl:text>\vspace{1cm}</xsl:text>
- <xsl:text>\noindent{\Large {\sc </xsl:text><xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/> </xsl:call-template>
- <xsl:text>}}\\&#10;&#10;</xsl:text>
- -->
- <xsl:choose>
- <xsl:when test="$latex.biblio.output ='cited'">
- <xsl:apply-templates select="biblioentry" mode="bibliography.cited">
- <xsl:sort select="./abbrev"/>
- <xsl:sort select="./@xreflabel"/>
- <xsl:sort select="./@id"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="$latex.biblio.output ='all'">
- <xsl:apply-templates select="biblioentry">
- <xsl:sort select="./abbrev"/>
- <xsl:sort select="./@xreflabel"/>
- <xsl:sort select="./@id"/>
- </xsl:apply-templates>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="bibliodiv/title"/>
-
-
-
- <!--#############################################################################
- | BIBLIOENTRY
- - #############################################################################
- |
- |
- |
- + ############################################################################## -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="biblioentry" mode="bibliography.cited" xmlns="">
- <refpurpose> bibliography XSL template </refpurpose>
- <refdescription>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="biblioentry" mode="bibliography.cited">
- <xsl:param name="bibid" select="@id"/>
- <xsl:param name="ab" select="abbrev"/>
- <xsl:variable name="nx" select="//xref[@linkend=$bibid]"/>
- <xsl:variable name="nc" select="//citation[text()=$ab]"/>
- <xsl:if test="count($nx) &gt; 0 or count($nc) &gt; 0">
- <xsl:call-template name="biblioentry.output"/>
- </xsl:if>
- </xsl:template>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="biblioentry" mode="bibliography.all" xmlns="">
- <refpurpose> bibliography XSL template </refpurpose>
- <refdescription>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="biblioentry" mode="bibliography.all">
- <xsl:call-template name="biblioentry.output"/>
- </xsl:template>
-
- <xsl:template match="biblioentry">
- <xsl:call-template name="biblioentry.output"/>
- </xsl:template>
-
- <xsl:template name="biblioentry.output">
- <xsl:variable name="biblioentry.label">
- <xsl:choose>
- <xsl:when test="@xreflabel">
- <xsl:value-of select="normalize-space(@xreflabel)"/>
- </xsl:when>
- <xsl:when test="abbrev">
- <xsl:apply-templates select="abbrev" mode="bibliography.mode"/>
- </xsl:when>
- <xsl:when test="@id">
- <xsl:value-of select="normalize-space(@id)"/>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="biblioentry.id">
- <xsl:choose>
- <xsl:when test="abbrev">
- <xsl:apply-templates select="abbrev" mode="bibliography.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.label.id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>&#10;</xsl:text>
- <xsl:text>% -------------- biblioentry &#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="$biblioentry.label=''">
- <xsl:text>\bibitem</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\bibitem[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="$biblioentry.label"/>
- </xsl:call-template>
- <xsl:text>]</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$biblioentry.id"/>
- <xsl:text>}\docbooktolatexbibaux{</xsl:text>
- <xsl:call-template name="generate.label.id"/>
- <xsl:text>}{</xsl:text>
- <xsl:value-of select="$biblioentry.id"/>
- <xsl:text>}&#10;\hypertarget{</xsl:text>
- <xsl:call-template name="generate.label.id"/>
- <xsl:text>}{\emph{</xsl:text> <xsl:apply-templates select="title" mode="bibliography.mode"/> <xsl:text>}}</xsl:text>
- <xsl:value-of select="$biblioentry.item.separator"/>
- <xsl:apply-templates select="author|authorgroup" mode="bibliography.mode"/>
- <xsl:for-each select="child::copyright|child::publisher|child::pubdate|child::pagenums|child::isbn|child::editor|child::releaseinfo">
- <xsl:value-of select="$biblioentry.item.separator"/>
- <xsl:apply-templates select="." mode="bibliography.mode"/>
- </xsl:for-each>
- <xsl:text>.</xsl:text>
- <xsl:text>&#10;&#10;</xsl:text>
- </xsl:template>
-
- <!-- EMPTY templates -->
- <xsl:template match="abstract" mode="bibliography.mode"/>
- <xsl:template match="authorblurb" mode="bibliography.mode"/>
-
-
-
- <xsl:template match="abbrev" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="address" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="affiliation" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="shortaffil" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="jobtitle" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="artheader" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="artpagenums" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="author" mode="bibliography.mode">
- <xsl:variable name="authorsstring">
- <xsl:call-template name="person.name"/>
- </xsl:variable>
- <xsl:value-of select="normalize-space($authorsstring)"/>
- </xsl:template>
-
-
-
- <xsl:template match="author[position()=last()]" mode="bibliography.mode">
- <xsl:variable name="authorsstring">
- <xsl:call-template name="person.name"/>
- </xsl:variable>
- <xsl:value-of select="normalize-space($authorsstring)"/>
- </xsl:template>
-
-
- <!--
- Authorgroup
- calls person.name.list in ../common/common.xsl in order to get a
- formatted string. We need to return to "normalized-space(.) of it
- -->
-
- <xsl:template match="authorgroup" mode="bibliography.mode">
- <xsl:variable name="authorsstring">
- <xsl:call-template name="person.name.list"/>
- </xsl:variable>
- <xsl:value-of select="normalize-space($authorsstring)"/>
- </xsl:template>
-
- <xsl:template match="authorinitials" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="bibliomisc" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="bibliomset" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="bibliomixed" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
-
-
-
-
-
-
- <xsl:template match="biblioset" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="biblioset/title|biblioset/citetitle"
- mode="bibliography.mode">
- <xsl:variable name="relation" select="../@relation"/>
- <xsl:choose>
- <xsl:when test="$relation='article'">
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">ldquo</xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">rdquo</xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="bookbiblio" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="citetitle" mode="bibliography.mode">
- <I><xsl:apply-templates mode="bibliography.mode"/></I>
- </xsl:template>
-
- <xsl:template match="collab" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="collabname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="confgroup" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="confdates" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="conftitle" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="confnum" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="confsponsor" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="contractnum" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="contractsponsor" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="contrib" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="copyright" mode="bibliography.mode">
- <xsl:call-template name="gentext.element.name"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">copyright</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="year" mode="bibliography.mode"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="holder" mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="year" mode="bibliography.mode">
- <xsl:apply-templates/><xsl:text>, </xsl:text>
- </xsl:template>
-
- <xsl:template match="year[position()=last()]" mode="bibliography.mode">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="holder" mode="bibliography.mode">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="corpauthor" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="corpname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="date" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="edition" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="editor" mode="bibliography.mode">
- <xsl:call-template name="person.name"/>
- </xsl:template>
-
- <xsl:template match="firstname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="honorific" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="indexterm" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="invpartnumber" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="isbn" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="issn" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="issuenum" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="lineage" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="orgname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="orgdiv" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="othercredit" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="othername" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="pagenums" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="printhistory" mode="bibliography.mode">
- <!-- suppressed -->
- </xsl:template>
-
- <xsl:template match="productname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="productnumber" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="pubdate" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="publisher" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="publishername" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="pubsnumber" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="releaseinfo" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="revhistory" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="seriesinfo" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="seriesvolnums" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="subtitle" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="surname" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="title" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="titleabbrev" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="volumenum" mode="bibliography.mode">
- <xsl:apply-templates mode="bibliography.mode"/>
- </xsl:template>
-
- <xsl:template match="*" mode="bibliography.mode">
- <xsl:apply-templates select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/block.mod.xsl b/docs/docbook/xslt/db2latex/block.mod.xsl
deleted file mode 100644
index 49aba64ca23..00000000000
--- a/docs/docbook/xslt/db2latex/block.mod.xsl
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="block" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
- <author><firstname>James</firstname> <surname>Devenish</surname></author>
- </authorgroup>
- <copyright>
- <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Block Objects <filename>block.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>Sundry block-formatted objects.</para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <doc:template name="block.object" xmlns="">
- <refpurpose>
- Generic handler for block-formatted objects.
- </refpurpose>
- <refdescription>
- <para>
- Calls <xref linkend="template.label.id"/> and then applies templates.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template name="block.object">
- <xsl:call-template name="label.id"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <doc:template match="blockquote" xmlns="">
- <refpurpose>
- A quotation set off from the main text (not inline).
- </refpurpose>
- <refdescription>
- <para>
- Uses the LaTeX <literal>quote</literal> environment.
- If an attribution is present, it will be set at the end.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="blockquote">
- <xsl:text>\begin{quote}</xsl:text>
- <xsl:apply-templates/>
- <xsl:apply-templates select="attribution" mode="block.attribution"/>
- <xsl:text>\end{quote}&#10;</xsl:text>
- </xsl:template>
-
- <doc:template match="epigraph" xmlns="">
- <refpurpose>
- A short inscription that occurs at the beginning of a section, chapter, or document.
- </refpurpose>
- <refdescription>
- <para>
- Uses the LaTeX <literal>quote</literal> environment.
- If an attribution is present, it will be set at the end.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="epigraph">
- <xsl:text>\begin{quote}</xsl:text>
- <xsl:apply-templates/>
- <xsl:apply-templates select="attribution" mode="block.attribution"/>
- <xsl:text>\end{quote}&#10;</xsl:text>
- </xsl:template>
-
- <doc:template match="attribution" xmlns="">
- <refpurpose>
- This template produces no output.
- </refpurpose>
- <refdescription>
- <para>
- The <sgmltag class="element">attribution</sgmltag> element only occurs within
- <xref linkend="template.blockquote"/> and <xref linkend="template.epigraph"/>.
- However, the templates for those elements use a <quote>mode</quote> mechanism.
- Therefore, this template is intentionally suppressed and a replacement exists.
- See <xref linkend="template.attribution-block.attribution"/> instead.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="attribution"/>
-
- <doc:template match="attribution" mode="block.attribution" xmlns="">
- <refpurpose>
- The source of a block quote or epigraph.
- </refpurpose>
- <refdescription>
- <para>
- Starts a new line with right-aligned text preceded by an em dash.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="attribution" mode="block.attribution">
- <xsl:text>&#10;\hspace*\fill---</xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
-
- <doc:template match="sidebar" xmlns="">
- <refpurpose>
- A block of text that is isolated from the main flow.
- </refpurpose>
- <refdescription>
- <para>
- This is formatted as a plain block.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="sidebar">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <doc:template match="sidebar/title|blockquote/title" xmlns="">
- <refpurpose>
- Title lines for sundry block elements.
- </refpurpose>
- <refdescription>
- <para>
- This is formatted as a line on its own.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="sidebar/title|blockquote/title">
- <xsl:apply-templates/>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <doc:template match="ackno" xmlns="">
- <refpurpose>
- Acknowledgements in an Article.
- </refpurpose>
- <refdescription>
- <para>
- This is formatted as a plain block.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="ackno">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/book-article.mod.xsl b/docs/docbook/xslt/db2latex/book-article.mod.xsl
deleted file mode 100644
index 042ec556aa0..00000000000
--- a/docs/docbook/xslt/db2latex/book-article.mod.xsl
+++ /dev/null
@@ -1,540 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-| This template matches a book / article
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="book-article" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Books and Articles <filename>book-article.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="book" xmlns="">
- <refpurpose>Book XSL Template</refpurpose>
- <refdescription>
- <para> Most DocBook documents are either articles or books, so the book
- XSL template <xref linkend="template.book"/> is one classical entry point
- when processign docbook documents.</para>
-
- <formalpara><title>Tasks</title>
- <itemizedlist>
- <listitem><para></para></listitem>
- </itemizedlist>
- </formalpara>
-
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- <refparameter>
- <variablelist>
- <varlistentry>
- <term>colwidth</term>
- <listitem>
- <para>The CALS column width specification.</para>
- </listitem>
- </varlistentry>
- </variablelist>
- </refparameter>
- <refreturn>
- :<para>Outputs the LaTeX Code corresponding to a book.</para>
- </refreturn>
- </doc:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- XSL TEMPLATE book -->
- <!-- -->
- <!-- Main entry point for a DocBook "book" -->
- <!--############################################################################# -->
- <xsl:template match="book">
- <!-- book:1: generate.latex.book.preamble -->
- <xsl:call-template name="generate.latex.book.preamble"/>
- <!-- book:2: output title information -->
- <xsl:text>\title{</xsl:text>
- <xsl:choose>
- <xsl:when test="./title">
- <xsl:apply-templates select="title" mode="maketitle.mode"/>
- <xsl:apply-templates select="subtitle" mode="maketitle.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="bookinfo/title" mode="maketitle.mode"/>
- <xsl:apply-templates select="bookinfo/subtitle" mode="maketitle.mode"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <!-- book:3: output author information -->
- <xsl:text>\author{</xsl:text>
- <xsl:choose>
- <xsl:when test="bookinfo/authorgroup">
- <xsl:apply-templates select="bookinfo/authorgroup"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="bookinfo/author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <!-- book:4: dump any preamble after author -->
- <xsl:value-of select="$latex.book.afterauthor"/>
- <!-- book:5: set some counters -->
- <xsl:text>&#10;\setcounter{tocdepth}{</xsl:text><xsl:value-of select="$toc.section.depth"/><xsl:text>}&#10;</xsl:text>
- <xsl:text>&#10;\setcounter{secnumdepth}{</xsl:text><xsl:value-of select="$section.depth"/><xsl:text>}&#10;</xsl:text>
- <!-- book:6: dump the begin document command -->
- <xsl:value-of select="$latex.book.begindocument"/>
-
- <!-- book:7: include external Cover page if specified -->
- <xsl:if test="$latex.titlepage.file != ''">
- <xsl:text>&#10;\InputIfFileExists{</xsl:text><xsl:value-of select="$latex.titlepage.file"/>
- <xsl:text>}{\typeout{WARNING: Using cover page</xsl:text>
- <xsl:value-of select="$latex.titlepage.file"/>
- <xsl:text>}}</xsl:text>
- </xsl:if>
-
- <!-- book:7b: maketitle and set up pagestyle -->
- <xsl:value-of select="$latex.maketitle"/>
- <!-- book:8: - APPLY TEMPLATES -->
- <xsl:apply-templates/>
- <!-- book:9: call map.end -->
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
-
- <!-- Titles/subtitles -->
- <!-- Empty templates -->
-
- <xsl:template match="book/title"/>
- <xsl:template match="book/subtitle"/>
- <xsl:template match="book/titleabbrev"/>
- <xsl:template match="book/bookinfo/title"/>
- <xsl:template match="book/bookinfo/subtitle"/>
- <xsl:template match="book/bookinfo/titleabbrev"/>
-
- <xsl:template match="book/title" mode="maketitle.mode">\bfseries <xsl:apply-templates /></xsl:template>
- <xsl:template match="book/subtitle" mode="maketitle.mode">\\[12pt]\normalsize <xsl:apply-templates /></xsl:template>
- <xsl:template match="book/bookinfo/title" mode="maketitle.mode">\bfseries <xsl:apply-templates /></xsl:template>
- <xsl:template match="book/bookinfo/subtitle" mode="maketitle.mode">\\[12pt]\normalsize <xsl:apply-templates /></xsl:template>
-
- <xsl:template match="book/bookinfo">
- <xsl:apply-templates select="revhistory" />
- <xsl:apply-templates select="abstract" />
- <xsl:apply-templates select="keywordset" />
- <xsl:apply-templates select="copyright" />
- <xsl:apply-templates select="legalnotice" />
- </xsl:template>
-
-
-
- <!--#############################################################################
- | Template : article
- + ############################################################################# -->
-
- <!-- DOCUMENTATION -->
- <doc:template match="article" xmlns="">
- <refpurpose>Article XSL Template</refpurpose>
- <refdescription>
- <para> Most DocBook documents are either articles or books, so the article
- XSL template <xref linkend="template.article"/> is one classical entry point
- when processign docbook documents.</para>
-
- <formalpara><title>Tasks</title>
- <itemizedlist>
- <listitem><para>Calls <literal>generate.latex.article.preamble</literal>.</para></listitem>
- <listitem><para>Outputs \title, \author, \date, getting the information from its children.</para></listitem>
- <listitem><para>Calls <literal>latex.article.begindocument</literal>.</para></listitem>
- <listitem><para>Calls <literal>latex.article.maketitle.</literal></para></listitem>
- <listitem><para>Applies templates.</para></listitem>
- <listitem><para>Calls <literal>latex.article.end</literal> template.</para></listitem>
- </itemizedlist>
- </formalpara>
-
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para> EMPTY templates: article/title and article/subtitle</para></listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
- <refparameter>
- <variablelist>
- <varlistentry>
- <term>colwidth</term>
- <listitem>
- <para>The CALS column width specification.</para>
- </listitem>
- </varlistentry>
- </variablelist>
- </refparameter>
- <refreturn>
- <para>Outputs the LaTeX Code corresponding to an article.</para>
- </refreturn>
- </doc:template>
- <!--############################################################################# -->
-
-
- <xsl:template match="book/article">
- <xsl:text>&#10;\makeatletter\if@openright\cleardoublepage\else\clearpage\fi</xsl:text>
- <xsl:call-template name="generate.latex.pagestyle"/>
- <xsl:text>\makeatother&#10;</xsl:text>
- <!-- Get and output article title -->
- <xsl:variable name="article.title">
- <xsl:choose>
- <xsl:when test="./title">
- <xsl:apply-templates select="./title"/>
- </xsl:when>
- <xsl:when test="./articleinfo/title">
- <xsl:apply-templates select="./articleinfo/title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="./artheader/title"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>\begin{center}{</xsl:text>
- <xsl:value-of select="$latex.book.article.title.style"/>
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$article.title"/>
- <xsl:text>}}\par&#10;</xsl:text>
- <!-- Display author information -->
- <xsl:choose>
- <xsl:when test="artheader/author">
- <xsl:text>\textsf{</xsl:text>
- <xsl:for-each select="artheader/author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- <xsl:text>}\par&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="artheader/authorgroup">
- <xsl:text>\textsf{</xsl:text>
- <xsl:apply-templates select="artheader/authorgroup"/>
- <xsl:text>}\par&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="articleinfo/author">
- <xsl:text>\textsf{</xsl:text>
- <xsl:for-each select="articleinfo/author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- <xsl:text>}\par&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="articleinfo/authorgroup">
- <xsl:text>\textsf{</xsl:text>
- <xsl:apply-templates select="articleinfo/authorgroup"/>
- <xsl:text>}\par&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="author">
- <xsl:text>\textsf{</xsl:text>
- <xsl:for-each select="author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- <xsl:text>}\par&#10;</xsl:text>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates select="artheader|articleinfo" mode="article.within.book"/>
- <xsl:text>\end{center}&#10;</xsl:text>
- <xsl:apply-templates select="*[not(self::title)]"/>
- </xsl:template>
-
- <xsl:template match="artheader|articleinfo" mode="article.within.book">
- <xsl:value-of select="."/>
- </xsl:template>
-
-
-
- <!-- ARTICLE TEMPLATE -->
- <xsl:template match="article">
- <!-- Output LaTeX preamble -->
- <xsl:call-template name="generate.latex.article.preamble"/>
- <!-- Get and output article title -->
- <xsl:variable name="article.title">
- <xsl:choose>
- <xsl:when test="./title">
- <xsl:apply-templates select="./title"/>
- </xsl:when>
- <xsl:when test="./articleinfo/title">
- <xsl:apply-templates select="./articleinfo/title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="./artheader/title"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>\title{</xsl:text>
- <xsl:value-of select="$latex.article.title.style"/>
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$article.title"/>
- <xsl:text>}}&#10;</xsl:text>
- <!-- Display date and author information -->
- <xsl:variable name="article.date">
- <xsl:apply-templates select="./artheader/date|./articleinfo/date"/>
- </xsl:variable>
- <xsl:if test="$article.date!=''">
- <xsl:text>\date{</xsl:text>
- <xsl:value-of select="$article.date"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:if>
- <xsl:text>\author{</xsl:text>
- <xsl:choose>
- <xsl:when test="artheader/authorgroup">
- <xsl:apply-templates select="artheader/authorgroup"/>
- </xsl:when>
- <xsl:when test="articleinfo/authorgroup">
- <xsl:apply-templates select="articleinfo/authorgroup"/>
- </xsl:when>
- <xsl:when test="artheader/author">
- <xsl:for-each select="artheader/author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="articleinfo/author">
- <xsl:for-each select="articleinfo/author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="author">
- <xsl:apply-templates select="."/>
- <xsl:if test="not(position()=last())">
- <xsl:text> \and </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <!-- Display begindocument command -->
- <xsl:value-of select="$latex.article.begindocument"/>
- <xsl:value-of select="$latex.maketitle"/>
- <xsl:apply-templates select="*[not(self::title)]"/>
- <xsl:value-of select="$latex.article.end"/>
- </xsl:template>
-
-
- <xsl:template match="article/title|articleinfo/title|articleinfo/date|artheader/date">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="article/artheader|article/articleinfo">
- <xsl:apply-templates select="legalnotice" />
- <xsl:apply-templates select="abstract"/>
- </xsl:template>
-
- <!-- EMPTY TEMPLATES -->
- <xsl:template match="article/subtitle"/>
-
-
-
-
- <!--#############################################################################
- | Template: copyright
- |- ############################################################################# -->
- <xsl:template match="copyright">
- <xsl:call-template name="gentext.element.name"/>
- <xsl:call-template name='gentext.space'/>
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">copyright</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name='gentext.space'/>
- <xsl:apply-templates select="year"/>
- <xsl:call-template name='gentext.space'/>
- <xsl:apply-templates select="holder"/>
- </xsl:template>
-
- <xsl:template match="copyright/holder">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="copyright/year[position()&lt;last()-1]">
- <xsl:apply-templates />
- <xsl:text>, </xsl:text>
- </xsl:template>
-
- <!-- RCAS 2003/03/11 FIXME : "and" -->
- <xsl:template match="copyright/year[position()=last()-1]">
- <xsl:apply-templates />
- <xsl:text>, </xsl:text>
- </xsl:template>
-
- <xsl:template match="copyright/year[position()=last()]">
- <xsl:apply-templates />
- </xsl:template>
-
-
-
-
- <!--#############################################################################
- | Template: name legalnotice.caption
- |- ############################################################################# -->
- <xsl:template name="legalnotice.caption">
- <xsl:choose>
- <xsl:when test="./title">
- <xsl:apply-templates select="./title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">legalnotice</xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <!--#############################################################################
- | Template: legalnotice
- |- ############################################################################# -->
-<xsl:template match="legalnotice">
- <!-- Support for legalnotice. -->
- <xsl:text>\vspace{-.3em}&#10;</xsl:text>
- <xsl:text>\if@twocolumn&#10;</xsl:text>
- <xsl:text>\noindent\small{\itshape &#10;</xsl:text>
- <xsl:call-template name="legalnotice.caption"/>
- <xsl:text>}\/\bfseries---$\!$%&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\noindent\begin{center}\small\bfseries &#10;</xsl:text>
- <xsl:call-template name="legalnotice.caption"/>
- <xsl:text>\end{center}\quotation\small&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- <xsl:apply-templates select="*[not(self::title)]"/>
- <xsl:text>\vspace{0.6em}\par\if@twocolumn\else\endquotation\fi&#10;</xsl:text>
- <xsl:text>\normalsize\rmfamily&#10;</xsl:text>
-</xsl:template>
-
-
- <xsl:template match="legalnotice/title">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE: Table of Contents, Figures, ...
- + ############################################################################## -->
-
- <xsl:template match="toc">
- <xsl:text>&#10;</xsl:text>
- <xsl:text>\tableofcontents&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="lot">
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:choose>
- <xsl:when test="@label='figures'">
- <xsl:text>\listoffigures&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="@label='tables'">
- <xsl:text>\listoftables&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\listoffigures&#10;</xsl:text>
- <xsl:text>\listoftables&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\listoffigures&#10;</xsl:text>
- <xsl:text>\listoftables&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="lotentry">
- </xsl:template>
-
- <xsl:template match="lotentry"/>
- <xsl:template match="tocpart|tocchap|tocfront|tocback|tocentry"/>
- <xsl:template match="toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"/>
-
- <doc:template name="generate.latex.pagestyle" xmlns="">
- <refpurpose> Choose the preferred page style for document body </refpurpose>
- <refdescription>
- <para>
- If no page style is preferred by the user, the defaults will be
- "empty" for articles, "plain" for books, or "fancy" (if the
- fancyhdr packages is permitted).
- </para>
- <formalpara><title>Pertinent Variables</title>
- <itemizedlist>
- <listitem><simpara><xref linkend="param.pagestyle"/></simpara></listitem>
- <listitem><simpara><xref linkend="param.use.fancyhdr"/></simpara></listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <xsl:template name="generate.latex.pagestyle">
- <xsl:text>\pagestyle{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.pagestyle!=''"><xsl:value-of select="$latex.pagestyle"/></xsl:when>
- <xsl:when test="count(//book)&gt;0">
- <xsl:choose>
- <xsl:when test="$latex.use.fancyhdr=1"><xsl:text>fancy</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text>plain</xsl:text></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise><xsl:text>empty</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/bridgehead.mod.xsl b/docs/docbook/xslt/db2latex/bridgehead.mod.xsl
deleted file mode 100644
index a09ca15dda3..00000000000
--- a/docs/docbook/xslt/db2latex/bridgehead.mod.xsl
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="bridgehead" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
- <author><firstname>James</firstname> <surname>Devenish</surname></author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>BridgeHead <filename>bridgehead.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>Handle the <sgmltag class="element">bridgehead</sgmltag> element.</para>
- </section>
- </partintro>
- </doc:reference>
-
-
- <doc:template match="bridgehead" xmlns="">
- <refpurpose>
- A free-floating heading.
- </refpurpose>
- <refdescription>
- <para>
- Renders un-numbered section headings.
- For <literal>renderas</literal> values of sect1, sect2, and sect3, LaTeX <quote>star</quote> commands (such as <literal>\section*</literal>) are used.
- Otherwise, a bold heading is put on a line of its own.
- </para>
- </refdescription>
- </doc:template>
-
- <xsl:template match="bridgehead">
- <xsl:choose>
- <xsl:when test="@renderas='sect1' or @renderas='sect2' or @renderas='sect3'">
- <xsl:text>&#10;\</xsl:text>
- <xsl:if test="@renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if>
- <xsl:if test="@renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if>
- <xsl:text>section*{</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}</xsl:text>
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#10;&#10;</xsl:text>
- <xsl:text>&#10;\noindent{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>} \\ &#10;</xsl:text>
- <xsl:call-template name="label.id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/callout.mod.xsl b/docs/docbook/xslt/db2latex/callout.mod.xsl
deleted file mode 100644
index ab67cf8e237..00000000000
--- a/docs/docbook/xslt/db2latex/callout.mod.xsl
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="callout" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Callout <filename>callout.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template match="programlistingco|screenco">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="areaspec|areaset|area">
- </xsl:template>
-
- <xsl:template match="co">
- <xsl:apply-templates select="." mode="callout-bug"/>
- </xsl:template>
-
- <xsl:template match="co" mode="callout-bug">
- <xsl:variable name="conum">
- <xsl:number count="co" format="1"/>
- </xsl:variable>
-
- <xsl:text>(</xsl:text>
- <xsl:value-of select="$conum"/>
- <xsl:text>)</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/citation.mod.xsl b/docs/docbook/xslt/db2latex/citation.mod.xsl
deleted file mode 100644
index 46c69af0ebb..00000000000
--- a/docs/docbook/xslt/db2latex/citation.mod.xsl
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="citation" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Citation <filename>citation.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>This file contais a single (and simple!) XSL template, that maps the
- <sgmltag>citation</sgmltag> SGML tag to the LaTeX <literal>\cite{}</literal>
- command.</para>
- </section>
- </partintro>
- </doc:reference>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="citation" xmlns="">
- <refpurpose> Citation XSL template. </refpurpose>
- <refdescription>
- <para> Outputs a simple <literal>\cite{ }</literal> Command,
- containing the result of processing the citation's children
- </para>
- </refdescription>
- </doc:template>
-
-
-
- <xsl:template match="citation">
- <!-- todo: biblio-citation-check -->
- <xsl:text>\docbooktolatexcite{</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>}{}</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
-
-
diff --git a/docs/docbook/xslt/db2latex/component.mod.xsl b/docs/docbook/xslt/db2latex/component.mod.xsl
deleted file mode 100644
index aedcadb5501..00000000000
--- a/docs/docbook/xslt/db2latex/component.mod.xsl
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="component" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Component <filename>component.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template name="component.title">
- <xsl:variable name="id">
- <xsl:call-template name="label.id"><xsl:with-param name="object" select="."/></xsl:call-template>
- </xsl:variable>
- <xsl:text>&#10;{\sc </xsl:text><xsl:apply-templates select="." mode="title.ref"/><xsl:text>}</xsl:text>
- </xsl:template>
-
-
-
- <xsl:template name="component.subtitle">
- <xsl:variable name="subtitle"><xsl:apply-templates select="." mode="subtitle.content"/></xsl:variable>
- <xsl:if test="$subtitle != ''">
- <xsl:text>&#10;{\sc </xsl:text><xsl:copy-of select="$subtitle"/><xsl:text>}</xsl:text>
- </xsl:if>
- </xsl:template>
-
-
-
- <xsl:template name="component.separator">
- </xsl:template>
-
-
-
- <xsl:template match="colophon">
- <xsl:variable name="id"><xsl:call-template name="label.id"/></xsl:variable>
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="component.title"/>
- <xsl:call-template name="component.subtitle"/>
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template match="colophon/title"/>
-
-
-
- <xsl:template match="bibliography" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
- </xsl:template>
-
- <xsl:template match="glossary" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
- </xsl:template>
-
- <xsl:template match="index" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
- </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/dedication.mod.xsl b/docs/docbook/xslt/db2latex/dedication.mod.xsl
deleted file mode 100644
index d8150bdd7f6..00000000000
--- a/docs/docbook/xslt/db2latex/dedication.mod.xsl
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="dedication" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Dedication <filename>dedication.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-<!--#############################################################################
- | XSL Parameters
- +- ############################################################################# -->
-<xsl:param name="latex.dedication.title.style">\sc</xsl:param>
-
-
-
-<!--#############################################################################
- | Dedication Template
- +- ############################################################################# -->
-<xsl:template match="dedication">
-<xsl:text>\newpage&#10;</xsl:text>
-<xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
-<xsl:text>% Dedication &#10;</xsl:text>
-<xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
-<xsl:call-template name="label.id"/>
-<xsl:call-template name="dedication.title"/>
-<xsl:call-template name="dedication.subtitle"/>
-<!-- except title, titleabbrev and subtitle -->
-<xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/>
-</xsl:template>
-
-
-<!--#############################################################################
- | Dedication Title
- +- ############################################################################# -->
-<xsl:template name="dedication.title">
-<!-- Output dedication title or generic text -->
-<xsl:text>{</xsl:text>
-<xsl:value-of select="$latex.dedication.title.style"/>
-<xsl:text> </xsl:text>
-<xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">dedication</xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
-</xsl:choose>
-<xsl:text>}&#10;</xsl:text>
-<!-- done with title -->
-</xsl:template>
-
-
-<xsl:template match="dedication/title">
-<xsl:apply-templates/>
-</xsl:template>
-
-
-
-<!--#############################################################################
- | Dedication Subtitle
- +- ############################################################################# -->
-<xsl:template name="dedication.subtitle">
-<xsl:variable name="subtitle">
- <xsl:apply-templates select="." mode="subtitle.content"/>
-</xsl:variable>
-<xsl:if test="$subtitle != ''">
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$latex.dedication.title.style"/>
- <xsl:text> </xsl:text>
- <xsl:copy-of select="$subtitle"/>
- <xsl:text>}&#10;</xsl:text>
-</xsl:if>
-</xsl:template>
-
-
-<xsl:template match="dedication/subtitle">
-<xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="dedication/titleabbrev"/>
-
-
-<!--#############################################################################
- | Special treatment for dedication paragraphs
- +- ############################################################################# -->
-<xsl:template match="dedication/para">
-<xsl:text>&#10;\paragraph*{}&#10;</xsl:text> <!-- This is a fixme !! -->
-<xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/dingbat.mod.xsl b/docs/docbook/xslt/db2latex/dingbat.mod.xsl
deleted file mode 100644
index 84b579515a2..00000000000
--- a/docs/docbook/xslt/db2latex/dingbat.mod.xsl
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-|
-+ ############################################################################## -->
-
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="dingbat" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Dingbats <filename>dingbat.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <xsl:template name="dingbat">
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:call-template name="dingbat.characters">
- <xsl:with-param name="dingbat" select="$dingbat"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="dingbat.characters">
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:choose>
- <xsl:when test="$dingbat='bullet'"> $\bullet$ </xsl:when>
- <xsl:when test="$dingbat='copyright'">\copyright{}</xsl:when>
- <xsl:when test="$dingbat='trademark'">\texttrademark{}</xsl:when>
- <xsl:when test="$dingbat='registered'">\textregistered{}</xsl:when>
- <xsl:when test="$dingbat='nbsp'">~</xsl:when>
- <xsl:when test="$dingbat='ldquo'">``</xsl:when>
- <xsl:when test="$dingbat='rdquo'">''</xsl:when>
- <xsl:when test="$dingbat='lsquo'">`</xsl:when>
- <xsl:when test="$dingbat='rsquo'">'</xsl:when>
- <xsl:when test="$dingbat='em-dash'">---</xsl:when>
- <xsl:when test="$dingbat='mdash'">---</xsl:when>
- <xsl:when test="$dingbat='en-dash'">--</xsl:when>
- <xsl:when test="$dingbat='ndash'">--</xsl:when>
- <xsl:otherwise>
- <xsl:text> [dingbat?] </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/docbook.xsl b/docs/docbook/xslt/db2latex/docbook.xsl
deleted file mode 100644
index 56e000cd026..00000000000
--- a/docs/docbook/xslt/db2latex/docbook.xsl
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-| This is the "parent" stylesheet. The used "modules" are included here.
-| output encoding text in ISO-8859-1 indented.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/>
-
- <xsl:include href="common/l10n.xsl"/>
- <xsl:include href="common/common.xsl"/>
-
- <xsl:include href="VERSION.xml"/>
- <xsl:include href="vars.mod.xsl"/>
- <xsl:include href="latex.mapping.xsl"/>
- <xsl:include href="preamble.mod.xsl"/>
- <xsl:include href="font.mod.xsl"/>
- <xsl:include href="labelid.mod.xsl"/>
-
- <xsl:include href="book-article.mod.xsl"/>
-
- <xsl:include href="dedication.mod.xsl"/>
- <xsl:include href="preface.mod.xsl"/>
-
- <xsl:include href="part-chap-app.mod.xsl"/>
-
- <xsl:include href="sections.mod.xsl"/>
- <xsl:include href="bridgehead.mod.xsl"/>
-
- <xsl:include href="abstract.mod.xsl"/>
- <xsl:include href="biblio.mod.xsl"/>
- <xsl:include href="revision.mod.xsl"/>
-
- <xsl:include href="admonition.mod.xsl"/>
- <xsl:include href="verbatim.mod.xsl"/>
- <xsl:include href="email.mod.xsl"/>
- <xsl:include href="sgmltag.mod.xsl"/>
- <xsl:include href="citation.mod.xsl"/>
- <xsl:include href="qandaset.mod.xsl"/>
- <xsl:include href="procedure.mod.xsl"/>
- <xsl:include href="lists.mod.xsl"/>
- <xsl:include href="callout.mod.xsl"/>
-
-
- <xsl:include href="figure.mod.xsl"/>
- <xsl:include href="graphic.mod.xsl"/>
- <xsl:include href="mediaobject.mod.xsl"/>
-
- <xsl:include href="index.mod.xsl"/>
-
-
- <xsl:include href="xref.mod.xsl"/>
- <xsl:include href="formal.mod.xsl"/>
- <xsl:include href="example.mod.xsl"/>
- <xsl:include href="table.mod.xsl"/>
- <xsl:include href="inline.mod.xsl"/>
- <xsl:include href="authorgroup.mod.xsl"/>
- <xsl:include href="dingbat.mod.xsl"/>
- <xsl:include href="info.mod.xsl"/>
- <xsl:include href="keywords.mod.xsl"/>
- <xsl:include href="refentry.mod.xsl"/>
- <xsl:include href="component.mod.xsl"/>
- <xsl:include href="glossary.mod.xsl"/>
- <xsl:include href="block.mod.xsl"/>
-
-
- <xsl:include href="synop-oop.mod.xsl"/>
- <xsl:include href="synop-struct.mod.xsl"/>
-
- <xsl:include href="pi.mod.xsl"/>
-
- <xsl:include href="footnote.mod.xsl"/>
-
- <xsl:include href="texmath.mod.xsl"/>
- <xsl:include href="mathelem.mod.xsl"/>
- <xsl:include href="mathml/mathml.mod.xsl"/>
- <xsl:include href="mathml/mathml.presentation.mod.xsl"/>
- <xsl:include href="mathml/mathml.content.mod.xsl"/>
- <xsl:include href="mathml/mathml.content.token.mod.xsl"/>
- <xsl:include href="mathml/mathml.content.functions.mod.xsl"/>
- <xsl:include href="mathml/mathml.content.constsymb.mod.xsl"/>
-
- <xsl:include href="para.mod.xsl"/>
- <xsl:include href="msgset.mod.xsl"/>
- <xsl:include href="errors.mod.xsl"/>
-
- <xsl:include href="normalize-scape.mod.xsl"/>
-
-
-
- <xsl:template match="/">
- <xsl:variable name="xsl-vendor" select="system-property('xsl:vendor')"/>
- <xsl:message>################################################################################</xsl:message>
- <xsl:message> XSLT stylesheets DocBook - LaTeX 2e </xsl:message>
- <xsl:message> Reqs: LaTeX 2e installation common packages </xsl:message>
- <xsl:message>################################################################################</xsl:message>
- <xsl:message> WWW : http://db2latex.sourceforge.net </xsl:message>
- <xsl:message> SUMMARY : http://www.sourceforge.net/projects/db2latex </xsl:message>
- <xsl:message> AUTHOR : Ramon Casellas casellas@infres.enst.fr </xsl:message>
- <xsl:message> AUTHOR : James Devenish j-devenish@users.sf.net </xsl:message>
- <xsl:message> USING : <xsl:call-template name="set-vendor"/> </xsl:message>
- <xsl:message>################################################################################</xsl:message>
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <!--############################################################################# -->
- <!-- XSL Processor Vendor -->
- <!-- XSL Mailing Lists http://www.dpawson.co.uk/xsl/N10378.html -->
- <!--############################################################################# -->
- <xsl:template name="set-vendor">
- <xsl:variable name="xsl-vendor" select="system-property('xsl:vendor')"/>
- <xsl:choose>
- <xsl:when test="contains($xsl-vendor, 'SAXON 6.4')">
- <xsl:text>SAXON 6.4.X</xsl:text>
- </xsl:when>
- <xsl:when test="contains($xsl-vendor, 'SAXON 6.2')">
- <xsl:text>SAXON 6.2.X</xsl:text>
- </xsl:when>
- <xsl:when test="starts-with($xsl-vendor,'SAXON')">
- <xsl:text>SAXON</xsl:text>
- </xsl:when>
- <xsl:when test="contains($xsl-vendor,'Apache')">
- <xsl:text>XALAN</xsl:text>
- </xsl:when>
- <xsl:when test="contains($xsl-vendor,'Xalan')">
- <xsl:text>XALAN</xsl:text>
- </xsl:when>
- <xsl:when test="contains($xsl-vendor,'libxslt')">
- <xsl:text>libxslt/xsltproc</xsl:text>
- </xsl:when>
- <xsl:when test="contains($xsl-vendor,'Clark')">
- <xsl:text>XT</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>UNKNOWN</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/email.mod.xsl b/docs/docbook/xslt/db2latex/email.mod.xsl
deleted file mode 100644
index 6461334ac88..00000000000
--- a/docs/docbook/xslt/db2latex/email.mod.xsl
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="email" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Email <filename>email.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="email" xmlns="">
- <refpurpose> XSL template for email </refpurpose>
- <refdescription>
- <para>Outputs the mail in {\texttt }. Calls the normalize-scape template in order to get a
- normalized email string. It does not process email content model.</para>
- <formalpara><title>Remarks and Bugs</title>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
-
- <xsl:template match="email">
- <xsl:text>\texttt{&lt;</xsl:text>
- <xsl:call-template name="ulink">
- <xsl:with-param name="url" select="concat('mailto:',.)"/>
- </xsl:call-template>
- <xsl:text>&gt;}</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/errors.mod.xsl b/docs/docbook/xslt/db2latex/errors.mod.xsl
deleted file mode 100644
index 37b273c01dd..00000000000
--- a/docs/docbook/xslt/db2latex/errors.mod.xsl
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- + ############################################################################## -->
-
-
- <xsl:template match="*">
- <xsl:message>DB2LaTeX: Need to process XPath match <xsl:value-of select="concat(name(..),'/',name(.))"/></xsl:message>
- <xsl:text> [</xsl:text><xsl:value-of select="name(.)"/><xsl:text>] &#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text> [/</xsl:text><xsl:value-of select="name(.)"/><xsl:text>] &#10;</xsl:text>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/example.mod.xsl b/docs/docbook/xslt/db2latex/example.mod.xsl
deleted file mode 100644
index fb973a27e7f..00000000000
--- a/docs/docbook/xslt/db2latex/example.mod.xsl
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="example" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Example <filename>example.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <xsl:template match="example">
- <xsl:variable name="placement">
- <xsl:call-template name="generate.formal.title.placement">
- <xsl:with-param name="object" select="local-name(.)" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="caption">
- <xsl:text>\caption{</xsl:text>
- <xsl:apply-templates select="title" mode="caption.mode"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:variable>
- <xsl:call-template name="map.begin"/>
- <xsl:if test="$placement='before'">
- <xsl:text>\captionswapskip{}</xsl:text>
- <xsl:value-of select="$caption" />
- <xsl:text>\captionswapskip{}</xsl:text>
- </xsl:if>
- <xsl:apply-templates />
- <xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
-
-
- <xsl:template match="example/title"></xsl:template>
-
-
-
-
- <xsl:template match="informalexample">
- <xsl:call-template name="informal.object"/>
- </xsl:template>
-
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/figure.mod.xsl b/docs/docbook/xslt/db2latex/figure.mod.xsl
deleted file mode 100644
index 823877aa17f..00000000000
--- a/docs/docbook/xslt/db2latex/figure.mod.xsl
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Template for figure tag.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="figure" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Figures and InformalFigures <filename>figure.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
-
- <!--############################################################################# -->
- <doc:template match="figure|informalfigure" xmlns="">
- <refpurpose> XSL template for figure|informalfigure </refpurpose>
- <refdescription>
- <para>Outputs <literal>\begin{figure}</literal>,
- applies templates and outputs <literal>\end{figure}</literal>. </para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>The <literal>figure.title</literal> can be typset in italics by specifying <literal>$latex.figure.title.style</literal> (<literal>\itshape</literal> would be common).</para></listitem>
- <listitem><para>If a <literal>figure.mediaobject.caption</literal> exists, it will be typeset after the <literal>figure.title</literal> (but only if there is a single <literal>figure.mediaobject.caption</literal>).</para></listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
-
-<!-- Auxiliary template to output a figure caption.-->
-<xsl:template name="aux.figure.caption">
-<xsl:text>\caption{{</xsl:text>
-<xsl:value-of select="$latex.figure.title.style"/>
-<xsl:text>{</xsl:text>
-<xsl:apply-templates select="title"/>
-<xsl:text>}}</xsl:text>
-<xsl:if test="count(child::mediaobject/caption)=1">
- <xsl:text>. </xsl:text>
- <xsl:apply-templates select="mediaobject/caption" />
-</xsl:if>
-<xsl:text>}&#10;</xsl:text>
-</xsl:template>
-
-<xsl:template match="figure|informalfigure">
- <xsl:variable name="placement">
- <xsl:call-template name="generate.formal.title.placement">
- <xsl:with-param name="object" select="local-name(.)" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:call-template name="map.begin"/>
- <xsl:if test="$placement='before'">
- <xsl:text>\captionswapskip{}</xsl:text>
- <xsl:call-template name="aux.figure.caption" />
- <xsl:text>\captionswapskip{}</xsl:text>
- </xsl:if>
- <xsl:apply-templates select="*[name(.) != 'title']"/>
- <xsl:if test="$placement!='before'">
- <xsl:call-template name="aux.figure.caption" />
- </xsl:if>
- <xsl:call-template name="map.end"/>
-</xsl:template>
-
-
-
- <!--############################################################################# -->
- <!--
- <doc:template match="figure[programlisting]" xmlns="">
- <refpurpose> XSL template for programlisting within a figure </refpurpose>
- <refdescription>
- <para>Outputs <literal>\begin{figure}</literal>,
- applies templates and outputs <literal>\end{abstract}</literal>. </para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- -->
- <!--############################################################################# -->
-
- <!--
- <xsl:template match="figure[programlisting]">
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="programlisting"/>
- </xsl:call-template>
- <xsl:apply-templates />
- <xsl:call-template name="map.end">
- <xsl:with-param name="keyword" select="programlisting"/>
- </xsl:call-template>
- </xsl:template>
- -->
-
- <xsl:template match="figure/title">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="informalfigure/title">
- </xsl:template>
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/font.mod.xsl b/docs/docbook/xslt/db2latex/font.mod.xsl
deleted file mode 100644
index 20e28145205..00000000000
--- a/docs/docbook/xslt/db2latex/font.mod.xsl
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="font" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Font <filename>font.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <doc:param name="latex.document.font" xmlns="">
- <refpurpose> Document Font </refpurpose>
- <refdescription>
- Possible values: default, times, palatcm, charter, helvet, palatino, avant, newcent, bookman
- </refdescription>
- </doc:param>
-
-
- <xsl:param name="latex.document.font">palatino</xsl:param>
-
- <!--
- If you want to change explicitly to a certain font, use the command \fontfamily{XYZ}\selectfont whereby XYZ can be set to: pag for Adobe AvantGarde, pbk for Adobe Bookman, pcr for Adobe Courier, phv for Adobe Helvetica, pnc for Adobe NewCenturySchoolbook, ppl for Adobe Palatino, ptm for Adobe Times Roman, pzc for Adobe ZapfChancery
- -->
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/footnote.mod.xsl b/docs/docbook/xslt/db2latex/footnote.mod.xsl
deleted file mode 100644
index 6e7d39a36a4..00000000000
--- a/docs/docbook/xslt/db2latex/footnote.mod.xsl
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="footnote" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>FootNotes <filename>footnote.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
- <xsl:template match="footnote">
- <xsl:call-template name="label.id"/>
- <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
- <xsl:call-template name="generate.label.id"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <doc:template name="footnote">
- <refpurpose>Construct a footnote that copes with URLs</refpurpose>
- <refdescription><para>This template exists in this file so that all
- the footnote-generating templates are close to each other. However,
- it is actually a part of the ulink template in xref.mod.xsl</para></refdescription>
- </doc:template>
- <xsl:template name="footnote">
- <xsl:param name="hyphenation"/>
- <xsl:param name="url"/>
- <xsl:call-template name="label.id"/>
- <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
- <xsl:call-template name="generate.typeset.url">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="url" select="$url"/>
- </xsl:call-template>
- <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
- <xsl:call-template name="generate.label.id"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <xsl:template match="footnote/para">
- <xsl:apply-templates/>
- <xsl:text>&#10;&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="footnoteref">
- <xsl:variable name="footnote" select="id(@linkend)"/>
- <xsl:text>\docbooktolatexusefootnoteref{</xsl:text>
- <xsl:value-of select="@linkend"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/formal.mod.xsl b/docs/docbook/xslt/db2latex/formal.mod.xsl
deleted file mode 100644
index 6908119225d..00000000000
--- a/docs/docbook/xslt/db2latex/formal.mod.xsl
+++ /dev/null
@@ -1,173 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="formal" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Formal Objects <filename>formal.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template name="formal.object">
- <xsl:call-template name="formal.object.heading">
- <xsl:with-param name="title"><xsl:apply-templates select="." mode="title.ref"/></xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template name="formal.object.heading">
- <xsl:param name="title"></xsl:param>
- <xsl:call-template name="label.id"/>
- <xsl:copy-of select="$title"/>
- </xsl:template>
-
- <xsl:template name="informal.object">
- <xsl:call-template name="label.id"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template name="semiformal.object">
- <xsl:choose>
- <xsl:when test="title"> <xsl:call-template name="formal.object"/> </xsl:when>
- <xsl:otherwise> <xsl:call-template name="informal.object"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="generate.formal.title.placement">
- <xsl:param name="object" select="figure" />
- <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement),concat($object, ' '))"/>
- <xsl:choose>
- <xsl:when test="contains($param.placement, ' ')">
- <xsl:value-of select="substring-before($param.placement, ' ')"/>
- </xsl:when>
- <xsl:when test="$param.placement = ''">before</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$param.placement"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-<!-- ======================================== -->
-<!-- XSL Template for DocBook Equation Element -->
-<!-- 2003/07/04 Applied patches from J.Pavlovic -->
-<!-- ======================================== -->
-<xsl:template match="equation">
-<!-- Equation title placement -->
-<xsl:variable name="placement">
- <xsl:call-template name="generate.formal.title.placement">
- <xsl:with-param name="object" select="local-name(.)" />
- </xsl:call-template>
-</xsl:variable>
-<!-- Equation caption -->
-<xsl:variable name="caption">
- <xsl:text>\caption{</xsl:text>
- <xsl:apply-templates select="title" mode="caption.mode"/>
- <xsl:text>}&#10;</xsl:text>
-</xsl:variable>
-<xsl:call-template name="map.begin"/>
-<xsl:if test="$placement='before'">
- <xsl:text>\captionswapskip{}</xsl:text>
- <xsl:value-of select="$caption" />
- <xsl:text>\captionswapskip{}</xsl:text>
-</xsl:if>
-<xsl:choose>
- <xsl:when test="informalequation">
- <xsl:apply-templates select="informalequation"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|mediaobject/textobject[@role='tex' or @role='latex']|mediaobject/textobject/phrase[@role='tex' or @role='latex']"/>
- <xsl:choose>
- <xsl:when test="$tex">
- <xsl:apply-templates select="$tex"/>
- </xsl:when>
- <xsl:when test="alt and $latex.alt.is.preferred='1'">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:when test="mediaobject">
- <xsl:apply-templates select="mediaobject"/>
- </xsl:when>
- <xsl:when test="alt">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="graphic"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
-</xsl:choose>
-<xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if>
-<xsl:call-template name="map.end"/>
-</xsl:template>
-
-
-<xsl:template match="equation/title"/>
-
-
-
-
-
-<xsl:template match="informalequation">
-<xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|mediaobject/textobject[@role='tex' or @role='latex']|mediaobject/textobject/phrase[@role='tex' or @role='latex']"/>
-<xsl:text>&#10;</xsl:text>
-<xsl:choose>
- <xsl:when test="$tex">
- <xsl:apply-templates select="$tex"/>
- </xsl:when>
- <xsl:when test="alt and $latex.alt.is.preferred='1'">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:when test="mediaobject">
- <xsl:apply-templates select="mediaobject"/>
- </xsl:when>
- <xsl:when test="alt">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="graphic"/>
- </xsl:otherwise>
-</xsl:choose>
-<xsl:text>&#10;&#10;</xsl:text>
-</xsl:template>
-
-
-
-
-
-
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/glossary.mod.xsl b/docs/docbook/xslt/db2latex/glossary.mod.xsl
deleted file mode 100644
index f429187aee0..00000000000
--- a/docs/docbook/xslt/db2latex/glossary.mod.xsl
+++ /dev/null
@@ -1,218 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="glossary" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Glossary <filename>glossary.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>This reference applies to the glossary element name. Altough LaTeX
- provides some glossary support, the better glossary management support
- motivates the bypass of the LaTeX <literal>\makeglossary</literal>
- command.</para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="glossary" xmlns="">
- <refpurpose> Glossary XSL template / entry point </refpurpose>
- <refdescription><para>The <sgmltag>glossary</sgmltag> element is the entry point
- to a docbook glossary. The DB2LaTeX processing of the element is quite straight-
- forward. First thing is to check whether the document is a book or article. In
- both cases two new LaTeX commands are defined. <literal>\dbglossary</literal>
- and <literal>\dbglossdiv</literal>. In the former case, they are mapped to
- <literal>\chapter*</literal> and <literal>\section*</literal>. In the second
- case to <literal>\section*</literal> and <literal>\subsection*</literal>.</para>
- </refdescription>
- <itemizedlist>
- <listitem><para>Call template map.begin.</para></listitem>
- <listitem><para>Apply Templates for Preamble, GlossDivs and GlossEntries (serial).</para></listitem>
- <listitem><para>Call template map.end.</para></listitem>
- </itemizedlist>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>Template for glossary/glossaryinfo is EMPTY.</para></listitem>
- <listitem><para>Template for glossary/title | glossary/subtitle is EMPTY.</para></listitem>
- <listitem><para>Template for glossary/titleabbrev is EMPTY.</para></listitem>
- </itemizedlist>
- </formalpara>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="glossary">
- <xsl:variable name="divs" select="glossdiv"/>
- <xsl:variable name="entries" select="glossentry"/>
- <xsl:variable name="preamble" select="*[not(self::title or self::subtitle or self::glossdiv or self::glossentry)]"/>
- <xsl:choose>
- <xsl:when test="local-name(..)='book' or local-name(..)='part'">
- <xsl:text>\newcommand{\dbglossary}[1]{\chapter*{#1}}%&#10;</xsl:text>
- <xsl:text>\newcommand{\dbglossdiv}[1]{\section*{#1}}%&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\newcommand{\dbglossary}[1]{\section*{#1}}%&#10;</xsl:text>
- <xsl:text>\newcommand{\dbglossdiv}[1]{\subsection*{#1}}%&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="map.begin"/>
- <xsl:if test="./subtitle"><xsl:apply-templates select="./subtitle" mode="component.title.mode"/> </xsl:if>
- <xsl:if test="$preamble"> <xsl:apply-templates select="$preamble"/> </xsl:if>
- <xsl:if test="$divs"> <xsl:apply-templates select="$divs"/> </xsl:if>
- <xsl:if test="$entries"> <xsl:apply-templates select="$entries"/></xsl:if>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
- <xsl:template match="glossary/glossaryinfo"/>
- <xsl:template match="glossary/title"/>
- <xsl:template match="glossary/subtitle"/>
- <xsl:template match="glossary/titleabbrev"/>
- <xsl:template match="glossary/title" mode="component.title.mode"> <xsl:apply-templates/> </xsl:template>
- <xsl:template match="glossary/subtitle" mode="component.title.mode"> <xsl:apply-templates/> </xsl:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="glossdiv|glosslist" xmlns="">
- <refpurpose> Glossary Division and Glossary Lists XSL templates. </refpurpose>
- <refdescription><para>T.B.D</para>
- </refdescription>
- <itemizedlist>
- <listitem><para>Call template map.begin.</para></listitem>
- <listitem><para>Apply Templates.</para></listitem>
- <listitem><para>Call template map.end.</para></listitem>
- </itemizedlist>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>Template for glossdiv/glossaryinfo is EMPTY.</para></listitem>
- </itemizedlist>
- </formalpara>
- </doc:template>
- <!--############################################################################# -->
- <xsl:template match="glossdiv|glosslist">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
- <xsl:template match="glossdiv/title" />
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="glossentry" xmlns="">
- <refpurpose> Glossary Entry XSL template / entry point </refpurpose>
- <refdescription>
- <para>T.B.D.</para>
- </refdescription>
- <itemizedlist>
- <listitem><para>Apply Templates.</para></listitem>
- </itemizedlist>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>Explicit Templates for <literal>glossentry/glossterm</literal></para></listitem>
- <listitem><para>Explicit Templates for <literal>glossentry/acronym</literal></para></listitem>
- <listitem><para>Explicit Templates for <literal>glossentry/abbrev</literal></para></listitem>
- <listitem><para>Explicit Templates for <literal>glossentry/glossdef</literal></para></listitem>
- <listitem><para>Explicit Templates for <literal>glossentry/glosssee</literal></para></listitem>
- <listitem><para>Explicit Templates for <literal>glossentry/glossseealso</literal></para></listitem>
- <listitem><para>Template for glossentry/revhistory is EMPTY.</para></listitem>
- </itemizedlist>
- </formalpara>
- </doc:template>
- <!--############################################################################# -->
-
-
- <xsl:template match="glossentry">
- <xsl:apply-templates/>
- <xsl:text>&#10;&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="glossentry/glossterm">
- <xsl:text>\item[</xsl:text>
- <xsl:if test="../@id!=''">
- <xsl:text>\hypertarget{</xsl:text>
- <xsl:value-of select="../@id"/>
- <xsl:text>}</xsl:text>
- </xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- <xsl:text>}] </xsl:text>
- </xsl:template>
-
- <xsl:template match="glossentry/acronym">
- <xsl:text> ( \texttt {</xsl:text> <xsl:apply-templates/> <xsl:text>} ) </xsl:text>
- </xsl:template>
-
- <xsl:template match="glossentry/abbrev">
- <xsl:text> [ </xsl:text> <xsl:apply-templates/> <xsl:text> ] </xsl:text>
- </xsl:template>
-
- <xsl:template match="glossentry/revhistory"/>
-
- <xsl:template match="glossentry/glossdef">
- <xsl:text>&#10;</xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="glossseealso|glossentry/glosssee">
- <xsl:variable name="otherterm" select="@otherterm"/>
- <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:call-template name="gentext.element.name"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:call-template name="gentext.startquote"/>
- <xsl:choose>
- <xsl:when test="@otherterm">
- <xsl:text>\hyperlink{</xsl:text><xsl:value-of select="@otherterm"/>
- <xsl:text>}{</xsl:text><xsl:apply-templates select="$target" mode="xref"/><xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="gentext.endquote"/>
- <xsl:text>. </xsl:text>
- </xsl:template>
-
- <xsl:template match="glossentry" mode="xref">
- <xsl:apply-templates select="./glossterm" mode="xref"/>
- </xsl:template>
-
- <xsl:template match="glossterm" mode="xref">
- <xsl:apply-templates/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/graphic.mod.xsl b/docs/docbook/xslt/db2latex/graphic.mod.xsl
deleted file mode 100644
index 1c9845c93e1..00000000000
--- a/docs/docbook/xslt/db2latex/graphic.mod.xsl
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="graphic" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Graphics <filename>graphic.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template match="screenshot">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="screeninfo">
- </xsl:template>
-
-
- <xsl:template match="graphic[@fileref]">
- <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="normalize-space(@fileref)"/>}
- </xsl:template>
-
- <xsl:template match="graphic[@entityref]">
- <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}
- </xsl:template>
-
-
- <xsl:template match="inlinegraphic[@fileref]">
- <xsl:choose>
- <xsl:when test="@format='linespecific'">
- <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\includegraphics{</xsl:text>
- <xsl:if test="@align">
- <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
- </xsl:if>
- <xsl:value-of select="normalize-space(@fileref)"/>}
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="inlinegraphic[@entityref]">
- <xsl:choose>
- <xsl:when test="@format='linespecific'">
- <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\includegraphics{</xsl:text>
- <xsl:if test="@align">
- <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
- </xsl:if>
- <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/html.mod.xsl b/docs/docbook/xslt/db2latex/html.mod.xsl
deleted file mode 100644
index a94ac3c80f6..00000000000
--- a/docs/docbook/xslt/db2latex/html.mod.xsl
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- |
- + ############################################################################## -->
-
-
- <xsl:template name="html">
- </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/index.mod.xsl b/docs/docbook/xslt/db2latex/index.mod.xsl
deleted file mode 100644
index 0ca975bd504..00000000000
--- a/docs/docbook/xslt/db2latex/index.mod.xsl
+++ /dev/null
@@ -1,213 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="index" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Index <filename>index.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-<!-- This parameter is for enabeling or disabling of indexterms -->
-<xsl:param name="latex.generate.indexterm">1</xsl:param>
-
-<!-- Our key for ranges -->
-<xsl:key name="indexterm-range" match="indexterm[@class='startofrange']" use="@id"/>
-
-
-
-
-<!-- ############################################################### -->
-<!-- Index -->
-<!-- -->
-<!-- ############################################################### -->
-<xsl:template match="index|setindex">
- <xsl:call-template name="label.id"/>
- <xsl:text>\printindex&#10;</xsl:text>
-</xsl:template>
-
-<xsl:template match="index/title"></xsl:template>
-<xsl:template match="index/subtitle"></xsl:template>
-<xsl:template match="index/titleabbrev"></xsl:template>
-
-<xsl:template match="index/title" mode="component.title.mode">
- <xsl:call-template name="label.id"> <xsl:with-param name="object" select=".."/> </xsl:call-template>
-</xsl:template>
-
-<xsl:template match="index/subtitle" mode="component.title.mode"/>
-
-
-<!-- ############################################################### -->
-<!-- IndexDiv -->
-<!-- -->
-<!-- ############################################################### -->
-<xsl:template match="indexdiv">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="indexdiv/title">
- <xsl:call-template name="label.id"> <xsl:with-param name="object" select=".."/> </xsl:call-template>
-</xsl:template>
-
-
-<!-- INDEX TERM CONTENT MODEL
-IndexTerm ::=
-(Primary,
-((Secondary,
-((Tertiary,
-(See|SeeAlso+)?)|
-See|SeeAlso+)?)|
-See|SeeAlso+)?)
--->
-<!-- ############################################################### -->
-<!-- IndexDiv -->
-<!-- -->
-<!-- ############################################################### -->
-<xsl:template match="indexterm">
-<xsl:if test="$latex.generate.indexterm != 0">
-<!--
- <xsl:text>\index{</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(./primary)"/>
- </xsl:call-template>
- <xsl:if test="./secondary">
- <xsl:text>!</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(./secondary)"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="./tertiary">
- <xsl:text>!</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(./tertiary)"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="./see">
- <xsl:text>|see{</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(./see)"/>
- </xsl:call-template>
- <xsl:text>}</xsl:text>
- </xsl:if>
- <xsl:if test="./seealso">
- <xsl:text>|see{</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(./seealso)"/>
- </xsl:call-template>
- <xsl:text>}</xsl:text>
- </xsl:if>
- <xsl:text>}</xsl:text>
--->
- <xsl:variable name="idxterm">
- <xsl:apply-templates mode="indexterm"/>
- </xsl:variable>
-
- <xsl:if test="@class and @zone">
- <xsl:message terminate="yes">Error: Only one attribut (@class or @zone) is in indexterm possible!</xsl:message>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="@class='startofrange'">
- <xsl:text>\index{</xsl:text>
- <xsl:value-of select="normalize-space($idxterm)"/>
- <xsl:text>|(}</xsl:text>
- </xsl:when>
- <xsl:when test="@class='endofrange'">
- <xsl:choose>
- <xsl:when test="count(key('indexterm-range',@startref)) = 0">
- <xsl:message terminate="yes"><xsl:text>Error: No indexterm with </xsl:text>
- <xsl:text>id='</xsl:text><xsl:value-of select="@startref"/>
- <xsl:text>' found!</xsl:text>
- <xsl:text> Check your attributs id/startref in your indexterms!</xsl:text>
- </xsl:message>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="thekey" select="key('indexterm-range',@startref)"/>
- <xsl:text>\index{</xsl:text>
- <xsl:apply-templates select="$thekey/*" mode="indexterm"/>
- <xsl:text>|)}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\index{</xsl:text>
- <xsl:message terminate="no"><xsl:text>Simple case:</xsl:text></xsl:message>
- <xsl:value-of select="normalize-space($idxterm)"/>
- <xsl:text>}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:if>
-</xsl:template>
-
-
-<!-- ================================================ -->
-<xsl:template match="*" mode="indexterm">
- <xsl:message>WARNING: Element '<xsl:value-of select="local-name()"/>' in indexterm not supported!</xsl:message>
-</xsl:template>
-
-
-
-<!-- ================================================ -->
-<xsl:template match="primary" mode="indexterm">
-<xsl:apply-templates mode="indexterm"/>
-</xsl:template>
-
-<xsl:template match="secondary" mode="indexterm">
-<xsl:text>!</xsl:text>
-<xsl:apply-templates mode="indexterm"/>
-</xsl:template>
-
-<xsl:template match="tertiary" mode="indexterm">
-<xsl:text>!</xsl:text>
-<xsl:apply-templates mode="indexterm"/>
-</xsl:template>
-
-<xsl:template match="see|seealso" mode="indexterm">
-<xsl:text>|see{</xsl:text>
-<xsl:apply-templates mode="indexterm"/>
-<xsl:text>} </xsl:text>
-</xsl:template>
-
-
-<!-- ================================================ -->
-<!-- A simple example of what can be in an primary, -->
-<!-- secondary or tertiary. -->
-<!-- ================================================ -->
-<xsl:template match="acronym" mode="indexterm">
-<xsl:apply-templates mode="indexterm"/>
-</xsl:template>
-
-
-<xsl:template match="primary|secondary|tertiary|see|seealso"/>
-<xsl:template match="indexentry"/>
-<xsl:template match="primaryie|secondaryie|tertiaryie|seeie|seealsoie"/>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/info.mod.xsl b/docs/docbook/xslt/db2latex/info.mod.xsl
deleted file mode 100644
index a2a35d4629a..00000000000
--- a/docs/docbook/xslt/db2latex/info.mod.xsl
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="info" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Info <filename>info.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <!-- These templates define the "default behavior" for info
- elements. Even if you don't process the *info wrappers,
- some of these elements are needed because the elements are
- processed from named templates that are called with modes.
- Since modes aren't sticky, these rules apply.
- (TODO: clarify this comment) -->
-
-
- <xsl:template match="corpauthor">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template match="jobtitle">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="orgname">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="orgdiv">
- <xsl:apply-templates/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/inline.mod.xsl b/docs/docbook/xslt/db2latex/inline.mod.xsl
deleted file mode 100644
index 5a6d8cc2146..00000000000
--- a/docs/docbook/xslt/db2latex/inline.mod.xsl
+++ /dev/null
@@ -1,523 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="inline" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Inline <filename>inline.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
-
- <xsl:template name="inline.charseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:copy-of select="$content"/>
- </xsl:template>
-
- <xsl:template name="inline.monoseq">
- <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param>
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>{\texttt{</xsl:text>
- <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}}}</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.boldseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>{\bfseries </xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.italicseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>{\em </xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.boldmonoseq">
- <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param>
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>{\texttt\bfseries{</xsl:text>
- <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}}}</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.italicmonoseq">
- <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param>
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>{\texttt\itshape{</xsl:text>
- <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}}}</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.superscriptseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>$^\text{</xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}$</xsl:text>
- </xsl:template>
-
- <xsl:template name="inline.subscriptseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <xsl:text>$_\text{</xsl:text>
- <xsl:copy-of select="$content"/>
- <xsl:text>}$</xsl:text>
- </xsl:template>
-
-
-
-
-
-
- <!-- ==================================================================== -->
- <!-- some special cases -->
-
- <xsl:template match="author">
- <xsl:call-template name="person.name"/>
- </xsl:template>
-
- <xsl:template match="editor">
- <xsl:call-template name="person.name"/>
- </xsl:template>
-
- <xsl:template match="othercredit">
- <xsl:call-template name="person.name"/>
- </xsl:template>
-
- <xsl:template match="authorinitials">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="accel">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="action">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="application">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="classname">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="exceptionname">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="interfacename">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="methodname">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="command">
- <xsl:call-template name="inline.boldseq"/>
- </xsl:template>
-
- <xsl:template match="computeroutput">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="constant">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="database">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="errorcode">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="errorname">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="errortype">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="envar">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="filename">
- <xsl:call-template name="inline.monoseq"><xsl:with-param name="hyphenation">\docbookhyphenatefilename</xsl:with-param></xsl:call-template>
- </xsl:template>
-
-
-
- <xsl:template match="function">
- <xsl:choose>
- <xsl:when test="$function.parens != '0'
- or parameter or function or replaceable"> <xsl:variable name="nodes" select="text()|*"/>
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:apply-templates select="$nodes[1]"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="$nodes[position()>1]"/>
- <xsl:text>)</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="inline.monoseq"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="function/parameter" priority="2">
- <xsl:call-template name="inline.italicmonoseq"/>
- <xsl:if test="following-sibling::*">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="function/replaceable" priority="2">
- <xsl:call-template name="inline.italicmonoseq"/>
- <xsl:if test="following-sibling::*">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface">
- <xsl:text>{\sffamily \bfseries </xsl:text>
- <xsl:call-template name="inline.charseq" />
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <xsl:template match="hardware">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="interfacedefinition">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="keycap|keysym">
- <xsl:call-template name="inline.boldseq" />
- </xsl:template>
-
- <xsl:template match="keycode">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="literal">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="medialabel">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="shortcut">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="mousebutton">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="option">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="parameter" priority="1">
- <xsl:call-template name="inline.italicmonoseq"/>
- </xsl:template>
-
- <xsl:template match="property">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="prompt">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="replaceable" priority="1">
- <xsl:call-template name="inline.italicmonoseq"/>
- </xsl:template>
-
- <xsl:template match="returnvalue">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="structfield">
- <xsl:call-template name="inline.italicmonoseq"/>
- </xsl:template>
-
- <xsl:template match="structname">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="symbol">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="systemitem">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="token">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="type">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="userinput">
- <xsl:call-template name="inline.boldmonoseq"/>
- </xsl:template>
-
- <xsl:template match="abbrev">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="acronym">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="citerefentry">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="citetitle">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="emphasis">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="emphasis[@role='bold']">
- <xsl:call-template name="inline.boldseq"/>
- </xsl:template>
-
- <xsl:template match="foreignphrase">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="markup">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <doc:template match="phrase">
- <refpurpose> A span of text </refpurpose>
- <refdescription><para>
- This is a regular inline sequence.
- However, if the role attribute is 'tex' or 'latex', the content
- will be output without LaTeX active-character escaping.
- </para></refdescription>
- </doc:template>
- <xsl:template match="phrase">
- <xsl:choose>
- <xsl:when test="@role='tex' or @role='latex'">
- <xsl:value-of select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="inline.charseq"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="quote">
- <xsl:call-template name="gentext.nestedstartquote"/>
- <xsl:call-template name="inline.charseq"/>
- <xsl:call-template name="gentext.nestedendquote"/>
- </xsl:template>
-
- <xsl:template match="varname">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template match="wordasword">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="lineannotation">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="superscript">
- <xsl:call-template name="inline.superscriptseq"/>
- </xsl:template>
-
- <xsl:template match="subscript">
- <xsl:call-template name="inline.subscriptseq"/>
- </xsl:template>
-
- <xsl:template match="trademark">
- <xsl:call-template name="inline.charseq"/>
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">trademark</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="firstterm">
- <xsl:call-template name="inline.italicseq"/>
- </xsl:template>
-
- <xsl:template match="glossterm">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="keycombo">
- <xsl:variable name="action" select="@action"/>
- <xsl:variable name="joinchar">
- <xsl:choose>
- <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when>
- <xsl:when test="$action='simul'">+</xsl:when>
- <xsl:when test="$action='press'">--</xsl:when>
- <xsl:when test="$action='click'">--</xsl:when>
- <xsl:when test="$action='double-click'">--</xsl:when>
- <xsl:when test="$action='other'"></xsl:when>
- <xsl:otherwise>--</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="./*">
- <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="menuchoice">
- <xsl:variable name="shortcut" select="./shortcut"/>
- <xsl:call-template name="process.menuchoice"/>
- <xsl:if test="$shortcut">
- <xsl:text> (</xsl:text>
- <xsl:apply-templates select="$shortcut"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="process.menuchoice">
- <xsl:param name="nodelist" select="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface"/><!-- not(shortcut) -->
- <xsl:param name="count" select="1"/>
-
- <xsl:choose>
- <xsl:when test="$count>count($nodelist)"></xsl:when>
- <xsl:when test="$count=1">
- <xsl:apply-templates select="$nodelist[$count=position()]"/>
- <xsl:call-template name="process.menuchoice">
- <xsl:with-param name="nodelist" select="$nodelist"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="node" select="$nodelist[$count=position()]"/>
- <xsl:choose>
- <xsl:when test="name($node)='guimenuitem'
- or name($node)='guisubmenu'">
- <xsl:text> $\to$ </xsl:text>
- </xsl:when>
- <xsl:otherwise>+</xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="$node"/>
- <xsl:call-template name="process.menuchoice">
- <xsl:with-param name="nodelist" select="$nodelist"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="optional">
- <xsl:value-of select="$arg.choice.opt.open.str"/>
- <xsl:call-template name="inline.charseq"/>
- <xsl:value-of select="$arg.choice.opt.close.str"/>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="comment|remark">
- <xsl:if test="$show.comments != 0">
- <i><xsl:call-template name="inline.charseq"/></i>
- </xsl:if>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="productname">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="productnumber">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="pob|street|city|state|postcode|country|phone|fax|otheraddr">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/keywords.mod.xsl b/docs/docbook/xslt/db2latex/keywords.mod.xsl
deleted file mode 100644
index 80d54571995..00000000000
--- a/docs/docbook/xslt/db2latex/keywords.mod.xsl
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="keywords" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Keywords <filename>keywords.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-<xsl:template match="keywordset">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
-</xsl:template>
-
-<xsl:template match="keyword">
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="normalize-space(.)"/>
- </xsl:call-template>
- <xsl:if test="following-sibling::keyword">, </xsl:if>
-</xsl:template>
-
-
-
-
-
-<xsl:template match="subjectset"></xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/labelid.mod.xsl b/docs/docbook/xslt/db2latex/labelid.mod.xsl
deleted file mode 100644
index 5305e07c5a2..00000000000
--- a/docs/docbook/xslt/db2latex/labelid.mod.xsl
+++ /dev/null
@@ -1,476 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: When this template is called, it marks the object with a label
-| and an hypertarget.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="labelid" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Labels <filename>labelid.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <doc:template name="label.id" xmlns="">
- <refpurpose>Marks the current object with a label.</refpurpose>
- <refdescription>
- <para>This template marks the current object with a <literal>
- \label{.}</literal>. The passed argument indicates the object whose
- <literal>id attribute</literal> is used to generate the label.
- In this sense, in most cases its the current node itself.
- If the used object has not an id attribute, a unique id is
- obtained by means of the <literal>generate-id</literal> function.
- Moreover, if we are using the hyperref package, a hypertarget is
- also defined for this object. </para>
- </refdescription>
- <refparameter>
- <variablelist>
- <varlistentry><term>object</term>
- <listitem><para>The node whose id is to be used.</para></listitem>
- </varlistentry>
- </variablelist>
- </refparameter>
- <refreturn>
- <para>This template returns the id that has been used to label the
- object.</para>
- </refreturn>
- </doc:template>
-
- <xsl:template name="label.id">
- <xsl:text>\label{</xsl:text>
- <xsl:call-template name="generate.label.id"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
- <xsl:template name="generate.label.id">
- <xsl:param name="object" select="."/>
- <xsl:variable name="id">
- <xsl:choose>
- <xsl:when test="$object/@id">
- <xsl:value-of select="$object/@id"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="generate-id($object)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:value-of select="normalize-space($id)"/>
- </xsl:template>
-
-
-
-
- <!--
- <xsl:template match="*" mode="label.content">
- <xsl:message>
- <xsl:text>Request for label of unexpected element: </xsl:text>
- <xsl:value-of select="name(.)"/>
- </xsl:message>
- </xsl:template>
-
- <xsl:template match="set|book" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:if test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="part" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$part.autolabel != 0">
- <xsl:number from="book" count="part" format="I"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="preface" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$preface.autolabel != 0">
- <xsl:number from="book" count="preface" format="1" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="chapter" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$chapter.autolabel != 0">
- <xsl:number from="book" count="chapter" format="1" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="appendix" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$chapter.autolabel != 0">
- <xsl:number from="book" count="appendix" format="A" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="article" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:if test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:template>
-
-
- <xsl:template match="dedication|colophon" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:if test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="reference" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$part.autolabel != 0">
- <xsl:number from="book" count="reference" format="I" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="refentry" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:if test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="section" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
-
- <xsl:if test="local-name(..) = 'section'">
- <xsl:apply-templates select=".." mode="label.content">
- <xsl:with-param name="punct">.</xsl:with-param>
- </xsl:apply-templates>
- </xsl:if>
-
- <xsl:variable name="parent.is.component">
- <xsl:call-template name="is.component">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="label">
- <xsl:call-template name="label.this.section">
- <xsl:with-param name="section" select="."/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:if test="$section.label.includes.component.label != 0
- and $parent.is.component != 0">
- <xsl:apply-templates select=".." mode="label.content">
- <xsl:with-param name="punct">.</xsl:with-param>
- </xsl:apply-templates>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$label != 0">
- <xsl:number count="section"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="sect1" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
-
- <xsl:variable name="parent.is.component">
- <xsl:call-template name="is.component">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$section.label.includes.component.label != 0
- and $parent.is.component">
- <xsl:apply-templates select=".." mode="label.content">
- <xsl:with-param name="punct">.</xsl:with-param>
- </xsl:apply-templates>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$section.autolabel != 0">
- <xsl:number count="sect1"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="sect2|sect3|sect4|sect5" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
-
- <xsl:apply-templates select=".." mode="label.content">
- <xsl:with-param name="punct">.</xsl:with-param>
- </xsl:apply-templates>
-
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$section.autolabel != 0">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'sect2'">
- <xsl:number count="sect2"/>
- </xsl:when>
- <xsl:when test="local-name(.) = 'sect3'">
- <xsl:number count="sect3"/>
- </xsl:when>
- <xsl:when test="local-name(.) = 'sect4'">
- <xsl:number count="sect4"/>
- </xsl:when>
- <xsl:when test="local-name(.) = 'sect5'">
- <xsl:number count="sect5"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>label.content: this can't happen!</xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="refsect1|refsect2|refsect3" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$section.autolabel != 0">
- <xsl:number level="multiple" count="refsect1|refsect2|refsect3"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="simplesect" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$section.autolabel != 0">
- <xsl:number level="multiple" count="section
- |sect1|sect2|sect3|sect4|sect5
- |refsect1|refsect2|refsect3
- |simplesect"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="qandadiv" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:variable name="prefix">
- <xsl:if test="$qanda.inherit.numeration != 0">
- <xsl:variable name="lparent" select="(ancestor::set
- |ancestor::book
- |ancestor::chapter
- |ancestor::appendix
- |ancestor::preface
- |ancestor::section
- |ancestor::simplesect
- |ancestor::sect1
- |ancestor::sect2
- |ancestor::sect3
- |ancestor::sect4
- |ancestor::sect5
- |ancestor::refsect1
- |ancestor::refsect2
- |ancestor::refsect3)[last()]"/>
- <xsl:if test="count($lparent)>0">
- <xsl:apply-templates select="$lparent" mode="label.content"/>
- </xsl:if>
- </xsl:if>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="$prefix"/>
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:when test="$qandadiv.autolabel != 0">
- <xsl:value-of select="$prefix"/>
- <xsl:number level="multiple" count="qandadiv" format="1"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="question|answer" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:variable name="prefix">
- <xsl:if test="$qanda.inherit.numeration != 0">
- <xsl:variable name="lparent" select="(ancestor::set
- |ancestor::book
- |ancestor::chapter
- |ancestor::appendix
- |ancestor::preface
- |ancestor::section
- |ancestor::simplesect
- |ancestor::sect1
- |ancestor::sect2
- |ancestor::sect3
- |ancestor::sect4
- |ancestor::sect5
- |ancestor::refsect1
- |ancestor::refsect2
- |ancestor::refsect3
- |ancestor::qandadiv)[last()]"/>
- <xsl:if test="count($lparent)>0">
- <xsl:apply-templates select="$lparent" mode="label.content"/>
- </xsl:if>
- </xsl:if>
- </xsl:variable>
-
- <xsl:variable name="inhlabel"
- select="ancestor-or-self::qandaset/@defaultlabel[1]"/>
-
- <xsl:variable name="deflabel">
- <xsl:choose>
- <xsl:when test="$inhlabel != ''">
- <xsl:value-of select="$inhlabel"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="label" select="label"/>
-
- <xsl:choose>
- <xsl:when test="count($label)>0">
- <xsl:value-of select="$prefix"/>
- <xsl:apply-templates select="$label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
-
- <xsl:when test="$deflabel = 'qanda'">
- <xsl:call-template name="gentext.element.name"/>
- </xsl:when>
-
- <xsl:when test="$deflabel = 'number'">
- <xsl:if test="name(.) = 'question'">
- <xsl:value-of select="$prefix"/>
- <xsl:number level="multiple" count="qandaentry" format="1"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="bibliography|glossary|index" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:if test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="figure|table|example|equation" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="pchap"
- select="ancestor::chapter|ancestor::appendix"/>
- <xsl:choose>
- <xsl:when test="count($pchap)>0">
- <xsl:apply-templates select="$pchap" mode="label.content">
- <xsl:with-param name="punct">.</xsl:with-param>
- </xsl:apply-templates>
- <xsl:number format="1" from="chapter|appendix" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:number format="1" from="book|article" level="any"/>
- <xsl:value-of select="$punct"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="abstract" mode="label.content">
- <xsl:param name="punct">.</xsl:param>
- </xsl:template>
- -->
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/latex.mapping.dtd b/docs/docbook/xslt/db2latex/latex.mapping.dtd
deleted file mode 100644
index 361ce5a18dc..00000000000
--- a/docs/docbook/xslt/db2latex/latex.mapping.dtd
+++ /dev/null
@@ -1,13 +0,0 @@
-<!ELEMENT latexbindings (latexmapping+)>
-<!ELEMENT latexmapping (mapping+)>
-<!ELEMENT mapping (line*)>
-<!ELEMENT line (#PCDATA)>
-
-<!ATTLIST latexmapping
-role CDATA #REQUIRED
->
-<!ATTLIST mapping
-key CDATA #REQUIRED
-text CDATA #REQUIRED
->
-
diff --git a/docs/docbook/xslt/db2latex/latex.mapping.xml b/docs/docbook/xslt/db2latex/latex.mapping.xml
deleted file mode 100644
index 16167740460..00000000000
--- a/docs/docbook/xslt/db2latex/latex.mapping.xml
+++ /dev/null
@@ -1,290 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE latexbindings SYSTEM "latex.mapping.dtd" []>
-
-<latexbindings>
-
- <!--
- ################################################################
- Keywords
- %id
- %title
- ################################################################ -->
-
-
- <!-- LaTeX mapping, role, BEGIN -->
- <latexmapping role="begin">
-
- <mapping key="abstract" text="">
- <line>&#10;</line>
- <line>% --------------------------------------------&#10;</line>
- <line>% Abstract &#10;</line>
- <line>% --------------------------------------------&#10;</line>
- <line>\begin{abstract}&#10;</line>
- </mapping>
-
- <mapping key="admonition" text="">
- <line>&#10;</line>
- <line>\begin{admonition}%title% NOTICE: see the db2latex FAQ w.r.t db2latex variable $latex.admonition.path&#10;</line>
- </mapping>
-
- <mapping key="appendixes" text="">
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>% Appendixes start here&#10;</line>
- <line>% -------------------------------------------------------------&#10;</line>
- <line>\appendix&#10;</line>
- </mapping>
-
- <mapping key="appendix" text="">
- <line>&#10;</line>
- <line>% -------------------------------------------------------------&#10;</line>
- <line>% appendix: %title &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\dbappendix{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="chapter" text="">
- <line>&#10;</line>
- <line>% -------------------------------------------------------------&#10;</line>
- <line>% Chapter %title &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\chapter{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="figure" text="">
- <line>&#10;</line>
- <line>% figure ------------------------------------------------------&#10;</line>
- <line>\begin{figure}[hbt]&#10;</line>
- <line>\begin{center}%&#10;</line>
- <line>\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
-
- <mapping key="keywordset" text="">
- <line>&#10;</line>
- <line>% keywords ------------------------------------------------------&#10;</line>
- <line>\begin{keywords}&#10;</line>
- </mapping>
-
- <mapping key="table" text="">
- <line>&#10;</line>
- <line>% table ------------------------------------------------------&#10;</line>
- <line>\begin{table}[hbt]&#10;</line>
- <line>\begin{center}%&#10;</line>
- <line>\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="informaltable" text="">
- <line>&#10;</line>
- <line>% tabular ------------------------------------------------------&#10;</line>
- <line>\begin{center}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="equation" text="">
- <line>&#10;\begin{dbequation}&#10;</line>
- <line>\begin{center}&#10;</line>
- </mapping>
-
- <mapping key="glossary" text="">
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>% &#10;</line>
- <line>% GLOSSARY %title&#10;</line>
- <line>% &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\dbglossary{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="glossdiv" text="">
- <line>% &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\dbglossdiv{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- <line>\noindent%&#10;</line>
- <line>\begin{description}%&#10;</line>
- </mapping>
-
- <mapping key="part" text="">
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>% &#10;</line>
- <line>% PART %title&#10;</line>
- <line>% &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\part{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="refentry" text="">
- <line>% &#10;</line>
- <line>% -------------------------------------------------------------&#10;</line>
- <line>% Refentry &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\section*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="reference" text="">
- <line>% &#10;</line>
- <line>% -------------------------------------------------------------&#10;</line>
- <line>% Reference &#10;</line>
- <line>% ------------------------------------------------------------- &#10;</line>
- <line>\chapter*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="revhistory" text="">
- <line>&#10;</line>
- <line>% ------------------------ &#10;</line>
- <line>% RevHistory &#10;</line>
- <line>% ------------------------ &#10;</line>
- <line>\pagebreak&#10;</line>
- <line>\section*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- <line>\begin{center}&#10;</line>
- <line>\begin{tt}&#10;</line>
- <line>\begin{tabular}{|l||l|l|} \hline&#10;</line>
- </mapping>
-
- <mapping key="example" text="&#10;\begin{example}%&#10;"/>
-
- <mapping key="programlisting" text="&#10;\begin{program}%&#10;"/>
-
- <mapping key="sect1" text="">
- <line>&#10;</line>
- <line>% ------------------------ &#10;</line>
- <line>% Section &#10;</line>
- <line>\section{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="sect2" text="">
- <line>\subsection{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="sect3" text="">
- <line>\subsubsection{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="sect4" text="">
- <line>\subparagraph*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="sect5" text="">
- <line>\subparagraph*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="sect6" text="">
- <line>\subparagraph*{%title}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="formalpara" text="">
- <line>\subsubsection*{\small{%title}}&#10;</line>
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- </mapping>
-
- <mapping key="refentry" text="&#10;\section*{%title}&#10;\label{%id}&#10;"/>
- <mapping key="refsect1" text="&#10;\subsection*{%title}&#10;\label{%id}&#10;"/>
- <mapping key="refsect2" text="&#10;\subsubsection*{%title}&#10;\label{%id}&#10;"/>
- <mapping key="refsect3" text="&#10;\paragraph*{%title}&#10;\label{%id}&#10;"/>
-
- </latexmapping>
-
-
-
- <!-- LaTeX mapping, role, END -->
-
- <latexmapping role="end">
-
- <mapping key="abstract" text="">
- <line>\end{abstract}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="admonition" text="">
- <line>\end{admonition}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="book" text="">
- <line>&#10;</line>
- <line>\end{document}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="chapter" text=""/>
-
- <mapping key="example" text="">
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- <line>\end{example}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="figure" text="">
- <line>\label{%id}&#10;</line>
- <line>\end{center}&#10;</line>
- <line>\end{figure}&#10;</line>
- <line>&#10;</line>
- </mapping>
- <mapping key="equation" text="">
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- <line>\end{center}&#10;</line>
- <line>\end{dbequation}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="glossary" text="">
- </mapping>
-
- <mapping key="glossdiv" text="">
- <line>\end{description}%&#10;</line>
- </mapping>
-
-
- <mapping key="keywordset" text="">
- <line>\end{keywords}&#10;</line>
- </mapping>
-
- <mapping key="part" text="">
- </mapping>
-
- <mapping key="table" text="">
- <line>\label{%id}&#10;</line>
- <line>\end{center}&#10;</line>
- <line>\end{table}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="informaltable" text="">
- <line>\end{center}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="programlisting" text="">
- <line>\label{%id}\hypertarget{%id}{}%&#10;</line>
- <line>\end{center}&#10;</line>
- <line>\end{program}&#10;</line>
- <line>&#10;</line>
- </mapping>
-
- <mapping key="revhistory" text="">
- <line>\end{tabular}&#10;</line>
- <line>\end{tt}&#10;</line>
- <line>\end{center}&#10;</line>
- <line>% ------------------------ &#10;</line>
- <line>% End RevHistory &#10;</line>
- <line>% ------------------------ &#10;</line>
- </mapping>
- </latexmapping>
-
- <latexmapping role="entities">
- <mapping key="&#x0221E;" text=" \infty "/>
- </latexmapping>
-
-</latexbindings>
diff --git a/docs/docbook/xslt/db2latex/latex.mapping.xsl b/docs/docbook/xslt/db2latex/latex.mapping.xsl
deleted file mode 100644
index 2ab53de9bf3..00000000000
--- a/docs/docbook/xslt/db2latex/latex.mapping.xsl
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <xsl:variable name="latex.mapping.xml" select="document('latex.mapping.xml')"/>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="glossary" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <author>
- <firstname>Ramon</firstname><surname>Casellas</surname>
- </author>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>The DB2LaTeX mapping system <filename>latex.mapping.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>The DB2LaTeX mapping system centralizes mapping docbook tags (e.g. <sgmltag>chapter</sgmltag>)
- to LaTeX commands <literal>\chapter</literal>. It used an auxiliary file, <filename>latex.mapping.xml</filename>
- that defines how the mapping is to be done.</para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template name="latex.mapping" xmlns="">
- <refpurpose></refpurpose>
- <refdescription>
- <para></para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- <formalpara><title>Default Behaviour</title>
- <screen></screen>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
-
-
- <xsl:template name="latex.mapping">
- <xsl:param name="object" select="."/>
- <xsl:param name="keyword" select="local-name($object)"/>
- <xsl:param name="role" select="begin"/>
- <xsl:param name="string">
- <xsl:call-template name="extract.object.title">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="use.label" select="1"/>
- <xsl:param name="use.hypertarget" select="1"/>
- <xsl:variable name="id">
- <xsl:choose>
- <xsl:when test="$object/@id"> <xsl:value-of select="$object/@id"/> </xsl:when>
- <xsl:otherwise> <xsl:value-of select="generate-id($object)"/> </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$string=''">
- <xsl:call-template name="gentext.element.name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="normalize-space($string)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="latex.mapping.node"
- select="($latex.mapping.xml/latexbindings/latexmapping[@role=$role]/mapping[@key=$keyword])"/>
- <xsl:choose>
- <xsl:when test="$latex.mapping.node/@text!=''">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to"><xsl:value-of select="$id"/></xsl:with-param>
- <xsl:with-param name="from">%id</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to"><xsl:value-of select="$title"/></xsl:with-param>
- <xsl:with-param name="from">%title</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:value-of select="$latex.mapping.node/@text"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$latex.mapping.node/line">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to"><xsl:value-of select="$id"/></xsl:with-param>
- <xsl:with-param name="from">%id</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to"><xsl:value-of select="$title"/></xsl:with-param>
- <xsl:with-param name="from">%title</xsl:with-param>
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
- <xsl:template name="map.begin">
- <xsl:param name="object" select="."/>
- <xsl:param name="keyword" select="local-name($object)"/>
- <xsl:param name="string">
- <xsl:call-template name="extract.object.title">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:call-template name="latex.mapping">
- <xsl:with-param name="keyword" select="$keyword"/>
- <xsl:with-param name="role">begin</xsl:with-param>
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="map.end">
- <xsl:param name="object" select="."/>
- <xsl:param name="keyword" select="local-name($object)"/>
- <xsl:param name="role" select="begin"/>
- <xsl:param name="string">
- <xsl:call-template name="extract.object.title">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:call-template name="latex.mapping">
- <xsl:with-param name="keyword" select="$keyword"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="role">end</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="title" mode="latex"><xsl:apply-templates/></xsl:template>
-
- <xsl:template name="extract.object.title">
- <xsl:param name="object" select="."/>
- <xsl:choose>
- <xsl:when test="$latex.apply.title.templates='1'">
- <xsl:apply-templates select="$object/title" mode="latex"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="$object/title"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/lists.mod.xsl b/docs/docbook/xslt/db2latex/lists.mod.xsl
deleted file mode 100644
index cdd093b3d0f..00000000000
--- a/docs/docbook/xslt/db2latex/lists.mod.xsl
+++ /dev/null
@@ -1,452 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="lists" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Lists <filename>lists.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <xsl:template match="variablelist/title| orderedlist/title | itemizedlist/title | simplelist/title">
- <xsl:text>&#10;{\sc </xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="itemizedlist">
- <xsl:if test="title"> <xsl:apply-templates select="title"/></xsl:if>
- <xsl:text>&#10;\begin{itemize}&#10;</xsl:text>
- <xsl:apply-templates select="listitem"/>
- <xsl:text>&#10;\end{itemize}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="orderedlist">
- <xsl:variable name="numeration">
- <xsl:choose>
- <xsl:when test="@numeration">
- <xsl:value-of select="@numeration"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="arabic"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="title"> <xsl:apply-templates select="title"/></xsl:if>
- <xsl:text>&#10;\begin{enumerate}</xsl:text>
- <xsl:if test="@numeration">
- <xsl:choose>
- <xsl:when test="@numeration='arabic'"> <xsl:text>[1]</xsl:text>&#10;</xsl:when>
- <xsl:when test="@numeration='upperalpha'"><xsl:text>[A]</xsl:text>&#10;</xsl:when>
- <xsl:when test="@numeration='loweralpha'"><xsl:text>[a]</xsl:text>&#10;</xsl:when>
- <xsl:when test="@numeration='upperroman'"><xsl:text>[I]</xsl:text>&#10;</xsl:when>
- <xsl:when test="@numeration='lowerroman'"><xsl:text>[i]</xsl:text>&#10;</xsl:when>
- </xsl:choose>
- </xsl:if>
- <xsl:apply-templates select="listitem"/>
- \end{enumerate}&#10;
- </xsl:template>
-
-
-
- <xsl:template match="variablelist">
- <xsl:if test="title">
- <xsl:apply-templates select="title"/>
- </xsl:if>
- <xsl:text>&#10;\noindent&#10;</xsl:text>
- <xsl:text>&#10;\begin{description}&#10;</xsl:text>
- <xsl:apply-templates select="varlistentry"/>
- <xsl:text>&#10;\end{description}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="listitem">
- <xsl:text>&#10;%--- Item&#10;</xsl:text>
- <xsl:text>\item </xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="varlistentry">
- <xsl:variable name="id">
- <xsl:call-template name="label.id"/>
- </xsl:variable>
- <xsl:text>\item[</xsl:text><xsl:apply-templates select="term"/><xsl:text>]\mbox{} % mbox is a trick to induce different typesetting decisions</xsl:text>
- <xsl:apply-templates select="listitem"/>
- </xsl:template>
-
-
- <xsl:template match="varlistentry/term">
- <xsl:apply-templates/><xsl:text>, </xsl:text>
- </xsl:template>
-
- <xsl:template match="varlistentry/term[position()=last()]">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="varlistentry/listitem">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template name="tabular.string">
- <xsl:param name="cols" select="1"/>
- <xsl:param name="i" select="1"/>
- <xsl:choose>
- <xsl:when test="$i > $cols"></xsl:when>
- <xsl:otherwise>
- <xsl:text>l</xsl:text>
- <xsl:call-template name="tabular.string">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <!--==========================================================================
- | Inline simplelist. It is rendered as a list of comma separated values.
- | We make the difference between the last member and the rest. XSL easily
- | allows this.
- +============================================================================-->
-
- <xsl:template match="simplelist[@type='inline']">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="simplelist[@type='inline']/member">
- <xsl:apply-templates/>
- <xsl:text>, </xsl:text>
- </xsl:template>
- <xsl:template match="simplelist[@type='inline']/member[position()=last()]">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="simplelist[@type='horiz']">
- <xsl:variable name="cols">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>&#10;</xsl:text>
- <xsl:text>\begin{tabular*}{\linewidth}{</xsl:text>
- <xsl:call-template name="tabular.string">
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- <xsl:text>} </xsl:text>
- <xsl:call-template name="simplelist.horiz">
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- <xsl:text>&#10;\end{tabular*}&#10;</xsl:text>
- </xsl:template>
-
-
-
-
- <xsl:template name="simplelist.horiz">
- <xsl:param name="cols">1</xsl:param>
- <xsl:param name="cell">1</xsl:param>
- <xsl:param name="members" select="./member"/>
- <xsl:if test="$cell &lt;= count($members)">
- <xsl:text>&#10;</xsl:text>
- <xsl:call-template name="simplelist.horiz.row">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="cell" select="$cell"/>
- <xsl:with-param name="members" select="$members"/>
- </xsl:call-template>
- <xsl:text> \\</xsl:text>
- <xsl:call-template name="simplelist.horiz">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="cell" select="$cell + $cols"/>
- <xsl:with-param name="members" select="$members"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="simplelist.horiz.row">
- <xsl:param name="cols">1</xsl:param>
- <xsl:param name="cell">1</xsl:param>
- <xsl:param name="members" select="./member"/>
- <xsl:param name="curcol">1</xsl:param>
- <xsl:if test="$curcol &lt;= $cols">
- <xsl:choose>
- <xsl:when test="$members[position()=$cell]">
- <xsl:apply-templates select="$members[position()=$cell]"/>
- <xsl:text> </xsl:text>
- <xsl:if test="$curcol &lt; $cols">
- <xsl:call-template name="generate.latex.cell.separator"/>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template name="simplelist.horiz.row">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="cell" select="$cell+1"/>
- <xsl:with-param name="members" select="$members"/>
- <xsl:with-param name="curcol" select="$curcol+1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
-
-
-
-
-
-
-
-
-
-
- <xsl:template match="simplelist|simplelist[@type='vert']">
- <xsl:variable name="cols">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>&#10;</xsl:text>
- <!--<xsl:text>\vspace{1cm}&#10;</xsl:text>-->
- <xsl:text>\begin{tabular*}{\linewidth}{</xsl:text>
- <xsl:call-template name="tabular.string">
- <xsl:with-param name="i" select="1"/>
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- <xsl:text>}</xsl:text>
- <xsl:call-template name="simplelist.vert">
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- <xsl:text>&#10;\end{tabular*}&#10;</xsl:text>
- <!--<xsl:text>\vspace{1cm}&#10;</xsl:text>-->
- </xsl:template>
-
-
-
- <xsl:template name="simplelist.vert">
- <xsl:param name="cols">1</xsl:param>
- <xsl:param name="cell">1</xsl:param>
- <xsl:param name="members" select="./member"/>
- <xsl:param name="rows" select="floor((count($members)+$cols - 1) div $cols)"/>
- <xsl:if test="$cell &lt;= $rows">
- <xsl:text>&#10;</xsl:text>
- <xsl:call-template name="simplelist.vert.row">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rows" select="$rows"/>
- <xsl:with-param name="cell" select="$cell"/>
- <xsl:with-param name="members" select="$members"/>
- </xsl:call-template>
- <xsl:text> \\</xsl:text>
- <xsl:call-template name="simplelist.vert">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="cell" select="$cell+1"/>
- <xsl:with-param name="members" select="$members"/>
- <xsl:with-param name="rows" select="$rows"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
-
-
- <xsl:template name="simplelist.vert.row">
- <xsl:param name="cols">1</xsl:param>
- <xsl:param name="rows">1</xsl:param>
- <xsl:param name="cell">1</xsl:param>
- <xsl:param name="members" select="./member"/>
- <xsl:param name="curcol">1</xsl:param>
- <xsl:if test="$curcol &lt;= $cols">
- <xsl:choose>
- <xsl:when test="$members[position()=$cell]">
- <xsl:apply-templates select="$members[position()=$cell]"/>
- <xsl:text> </xsl:text>
- <xsl:if test="$curcol &lt; $cols">
- <xsl:call-template name="generate.latex.cell.separator"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="simplelist.vert.row">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rows" select="$rows"/>
- <xsl:with-param name="cell" select="$cell+$rows"/>
- <xsl:with-param name="members" select="$members"/>
- <xsl:with-param name="curcol" select="$curcol+1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
-
- <xsl:template match="member">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
- <xsl:template match="segmentedlist">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="segmentedlist/title">
- <xsl:text>&#10;{\sc </xsl:text>
- <xsl:apply-templates/>
- <xsl:text>} \\&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="segtitle">
- </xsl:template>
-
- <xsl:template match="segtitle" mode="segtitle-in-seg">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="seglistitem">
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="position()=last()"><xsl:text>&#10;&#10;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text> \\&#10;</xsl:text></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
- <xsl:template match="seg">
- <xsl:variable name="segnum" select="position()"/>
- <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
- <xsl:variable name="segtitles" select="$seglist/segtitle"/>
-
- <!--
- Note: segtitle is only going to be the right thing in a well formed
- SegmentedList. If there are too many Segs or too few SegTitles,
- you'll get something odd...maybe an error
- -->
-
- <xsl:text>{ \em </xsl:text>
- <xsl:apply-templates select="$segtitles[$segnum=position()]" mode="segtitle-in-seg"/>
- <xsl:text>:} </xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
-
-
-
-
-
-
- <!-- ==================================================================== -->
-
- <xsl:template match="calloutlist">
- <xsl:if test="./title">
- <xsl:apply-templates select="./title" mode="calloutlist.title.mode"/>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="calloutlist/title">
- </xsl:template>
-
- <xsl:template match="calloutlist/title" mode="calloutlist.title.mode">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="callout">
- <dt>
- <xsl:call-template name="callout.arearefs">
- <xsl:with-param name="arearefs" select="@arearefs"/>
- </xsl:call-template>
- </dt>
- <dl><xsl:apply-templates/></dl>
- </xsl:template>
-
- <xsl:template name="callout.arearefs">
- <xsl:param name="arearefs"></xsl:param>
- <xsl:if test="$arearefs!=''">
- <xsl:choose>
- <xsl:when test="substring-before($arearefs,' ')=''">
- <xsl:call-template name="callout.arearef">
- <xsl:with-param name="arearef" select="$arearefs"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="callout.arearef">
- <xsl:with-param name="arearef"
- select="substring-before($arearefs,' ')"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="callout.arearefs">
- <xsl:with-param name="arearefs"
- select="substring-after($arearefs,' ')"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
-
-
-
-
- <xsl:template name="callout.arearef">
- <xsl:param name="arearef"></xsl:param>
- <xsl:variable name="targets" select="//node()[@id=$arearef]"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:choose>
- <xsl:when test="count($target)=0">
- <xsl:value-of select="$arearef"/>
- <xsl:text>callout ???</xsl:text>
- </xsl:when>
- <xsl:when test="local-name($target)='co'">
- <!-- FIXME -->
- <xsl:text>\href{ </xsl:text>
- <xsl:value-of select="$target/@id"/>
- <xsl:text>}{</xsl:text>
- <xsl:value-of select="$target/@id"/><xsl:text>} </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>callout ???</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/mathelem.mod.xsl b/docs/docbook/xslt/db2latex/mathelem.mod.xsl
deleted file mode 100644
index 2b085aa98d4..00000000000
--- a/docs/docbook/xslt/db2latex/mathelem.mod.xsl
+++ /dev/null
@@ -1,222 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Math Elements as theorems, lemmas, propositions, etc.
-| Note: these elements are not part of the DocBook DTD. I have extended
-| the docbook DTD in order to support this tags, so that's why I have these
-| templates here.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="mathelems" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Math Elements <filename>mathelems.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template match="mathelement">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <!--
- ##########################################
- #
- # \begin{hypothesis}[title]
- #
- # \end{hypothesis}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathhypothesis">
- <xsl:text>\begin{hypothesis}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{rem}&#10;</xsl:text>
- </xsl:template>
-
- <!--
- ##########################################
- #
- # \begin{rem}[title]
- #
- # \end{rem}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathremark">
- <xsl:text>\begin{rem}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{rem}&#10;</xsl:text>
- </xsl:template>
-
-
- <!--
- ##########################################
- #
- # \begin{exm}[title]
- #
- # \end{exm}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathexample">
- <xsl:text>\begin{exm}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{exm}&#10;</xsl:text>
- </xsl:template>
-
-
- <!--
- ##########################################
- #
- # \begin{prop}[title]
- #
- # \end{prop}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathproposition">
- <xsl:text>\begin{prop}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{prop}&#10;</xsl:text>
- </xsl:template>
-
-
- <!--
- ##########################################
- #
- # \begin{thm}[title]
- #
- # \end{thm}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/maththeorem">
- <xsl:text>\begin{thm}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{thm}&#10;</xsl:text>
- </xsl:template>
-
-
-
- <!--
- ##########################################
- #
- # \begin{defn}[definition title]
- #
- # \end{defn}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathdefinition">
- <xsl:text>\begin{defn}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{defn}&#10;</xsl:text>
- </xsl:template>
-
-
-
- <!--
- ##########################################
- #
- # \begin{lem}[lemma title]
- #
- # \end{lem}
- #
- ##########################################
- -->
- <xsl:template match="mathelement/mathlemma">
- <xsl:text>\begin{lem}[</xsl:text>
- <xsl:call-template name="normalize-scape">
- <xsl:with-param name="string" select="title"/>
- </xsl:call-template>
- <xsl:text>]&#10;</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{lem}&#10;</xsl:text>
- </xsl:template>
-
-
- <!--
- ##########################################
- #
- # \begin{proof}
- #
- # \end{proof}
- #
- ##########################################
- -->
- <xsl:template match="mathproof">
- <xsl:text>\begin{proof}</xsl:text>
- <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable>
- <xsl:apply-templates/>
- <xsl:text>\end{proof}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="mathphrase|mathcondition|mathassertion">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="mathelement/*/title">
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/mediaobject.mod.xsl b/docs/docbook/xslt/db2latex/mediaobject.mod.xsl
deleted file mode 100644
index bfdd2c8c874..00000000000
--- a/docs/docbook/xslt/db2latex/mediaobject.mod.xsl
+++ /dev/null
@@ -1,224 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Manage Imageobject related tags.
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="mediaobject" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>MediaObjects <filename>mediaobject.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <xsl:template match="videoobject">
- <xsl:apply-templates select="videodata"/>
- </xsl:template>
- <xsl:template match="audioobject">
- <xsl:apply-templates select="audiodata"/>
- </xsl:template>
- <xsl:template match="textobject">
- <!-- TODO if mixed in with imageobjects, use subfigure (if appropriate) -->
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template match="mediaobject">
- <xsl:if test="local-name(preceding-sibling::*[1])!='mediaobject'">
- <xsl:text>&#10;</xsl:text>
- </xsl:if>
- <xsl:call-template name="mediacontent"/>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="inlinemediaobject">
- <xsl:call-template name="mediacontent"/>
- </xsl:template>
-
- <xsl:template name="mediacontent">
- <xsl:choose>
- <xsl:when test="count(imageobject)&lt;1">
- <xsl:apply-templates select="textobject[1]"/>
- </xsl:when>
- <xsl:when test="$use.role.for.mediaobject='1' and $preferred.mediaobject.role!='' and count(imageobject[@role='$preferred.mediaobject.role'])!=0">
- <xsl:apply-templates select="imageobject[@role=$preferred.mediaobject.role]"/>
- </xsl:when>
- <xsl:when test="$use.role.for.mediaobject='1' and count(imageobject[@role='latex'])!=0">
- <xsl:apply-templates select="imageobject[@role='latex']"/>
- </xsl:when>
- <xsl:when test="$use.role.for.mediaobject='1' and count(imageobject[@role='tex'])!=0">
- <xsl:apply-templates select="imageobject[@role='tex']"/>
- </xsl:when>
- <xsl:when test="$latex.graphics.formats!='' and count(imageobject/imagedata[@format!=''])!=0">
- <!-- this is not really the right method: formats to the left of $latex.graphics.formats
- should be given higher 'priority' than those to the right in a command-separated list -->
- <xsl:variable name="formats" select="concat(',',$latex.graphics.formats,',')"/>
- <xsl:variable name="candidates" select="imageobject/imagedata[contains($formats,concat(',',@format,','))]"/>
- <xsl:choose>
- <xsl:when test="count($candidates)!=0">
- <xsl:apply-templates select="$candidates[1]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="fallbacks" select="imageobject/imagedata[@format='']"/>
- <xsl:choose>
- <xsl:when test="count($fallbacks)!=0">
- <xsl:apply-templates select="$fallbacks[1]"/>
- </xsl:when>
- <xsl:when test="count(textobject)!=0">
- <xsl:apply-templates select="textobject[1]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="imageobject[1]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="imageobject[1]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="imageobject">
- <xsl:apply-templates select="imagedata"/>
- </xsl:template>
-
-
-
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="imagedata" xmlns="">
- <refpurpose>XSL template for images.</refpurpose>
- <refdescription>
- <para></para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>If both <literal>@width</literal> and <literal>@scale</literal> are given but <literal>@scalefit='0'</literal>, whitespace is added to the left and right in order to match the specified width.</para></listitem>
- <listitem><para>If <literal>@width</literal> is given and either <literal>@scalefit=1</literal> or no <literal>@scale</literal> is given, then the image is scale to <literal>@width</literal>. Otherwise, <literal>@scale</literal> is used, if it is present.</para></listitem>
- <listitem><para>If this is not the only <literal>imagedata</literal> within the figure, this will be rendered as a 'subfigure', including the <literal>caption</literal> of its enclosing <literal>mediaobject</literal>.</para></listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
- <xsl:template match="imagedata">
- <xsl:variable name="filename" select="@fileref"/>
- <xsl:variable name="ext">
- <xsl:call-template name="filename-extension">
- <xsl:with-param name="filename" select="$filename"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="imageobjectscnt" select="count(../../..//imageobject)"/>
- <xsl:variable name="width">
- <xsl:choose>
- <xsl:when test="contains(@width, '%') and substring-after(@width, '%')=''">
- <xsl:value-of select="number(substring-before(@width, '%')) div 100"/>
- <xsl:text>\textwidth</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@width"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="$width!='' and (@scalefit='0' or count(@scale)&gt;0)">
- <xsl:text>\makebox[</xsl:text><xsl:value-of select='$width' /><xsl:text>]</xsl:text>
- </xsl:if>
- <xsl:text>{</xsl:text>
- <!-- TODO this logic actually needs to make decisions based on the ALLOWED imagedata,
- not all the imagedata present in the source file. -->
- <xsl:if test="$imageobjectscnt &gt; 1 and $latex.use.subfigure='1' and count(ancestor::figure) &gt; 0">
- <xsl:text>\subfigure[</xsl:text>
- <xsl:if test="count(../../..//caption)&gt;1">
- <xsl:value-of select="../../caption"/>
- </xsl:if>
- <xsl:text>]</xsl:text>
- </xsl:if>
- <xsl:text>{\includegraphics[</xsl:text>
- <xsl:choose>
- <xsl:when test="@scale">
- <xsl:text>scale=</xsl:text>
- <xsl:value-of select="number(@scale) div 100"/>
- </xsl:when>
- <xsl:when test="$width!='' and @scalefit='1'">
- <xsl:text>width=</xsl:text><xsl:value-of select="normalize-space($width)"/>
- </xsl:when>
- <xsl:when test="@depth!='' and @scalefit='1'">
- <xsl:text>height=</xsl:text><xsl:value-of select="normalize-space(@depth)"/>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="@format = 'PRN'"><xsl:text>,angle=270</xsl:text></xsl:when>
- </xsl:choose>
- <xsl:text>]{</xsl:text>
- <xsl:choose><!-- package graphicx and DeclareGraphicExtensions will take care of this -->
- <xsl:when test="$ext != ''">
- <xsl:value-of select="$filename"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$filename"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}}}</xsl:text>
- </xsl:template>
-
-
-
- <xsl:template match="videodata">
- <xsl:variable name="filename">
- <xsl:call-template name="mediaobject.filename"><xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="alt">
- <xsl:apply-templates select="(../../textobject/phrase)[1]"/>
- </xsl:variable>
- </xsl:template>
-
- <xsl:template match="audiodata">
- <xsl:variable name="filename">
- <xsl:call-template name="mediaobject.filename"><xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="alt">
- <xsl:apply-templates select="(../../textobject/phrase)[1]"/>
- </xsl:variable>
- </xsl:template>
-
-
- <xsl:template match="caption">
- <xsl:apply-templates/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/msgset.mod.xsl b/docs/docbook/xslt/db2latex/msgset.mod.xsl
deleted file mode 100644
index 52ad63a87c8..00000000000
--- a/docs/docbook/xslt/db2latex/msgset.mod.xsl
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- + ############################################################################## -->
-
-
- <xsl:template match="msgset">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="msgentry">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="simplemsgentry">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="msg">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="msgmain">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="msgmain/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
-
- <xsl:template match="msgsub">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="msgsub/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
-
- <xsl:template match="msgrel">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="msgrel/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
-
- <xsl:template match="msgtext">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="msginfo">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="msglevel|msgorig|msgaud">
- <p>
- <b>
- <xsl:call-template name="gentext.element.name"/>
- <xsl:text>: </xsl:text>
- </b>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="msgexplan">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="msgexplan/title">
- <xsl:apply-templates/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl b/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl
deleted file mode 100644
index 058695d71da..00000000000
--- a/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl
+++ /dev/null
@@ -1,398 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-| Escape LaTeX and normalize-space templates.
-| < > # $ % & ~ _ ^ \ { }
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="normalize-scape" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Normalize and Scape strings.</title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template name="normalize-scape" xmlns="">
- <refpurpose> Abstract XSL template. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="text()">
- <xsl:call-template name="trim-outer">
- <xsl:with-param name="string">
- <xsl:choose>
- <xsl:when test="ancestor::literal|ancestor::email|ancestor::sgmltag">
- <xsl:call-template name="scape-verbatim">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="scape">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="text()" mode="xref.text">
- <xsl:call-template name="trim-outer">
- <xsl:with-param name="string">
- <xsl:call-template name="scape">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="text()" mode="xref-to">
- <xsl:call-template name="trim-outer">
- <xsl:with-param name="string">
- <xsl:call-template name="scape">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="text()" mode="latex.verbatim">
- <!--
- <xsl:call-template name="trim-outer">
- <xsl:with-param name="string">
- -->
- <xsl:value-of select="."/>
- <!--
- </xsl:with-param>
- </xsl:call-template>
- -->
- </xsl:template>
-
- <!-- this template is noly used by xref.mod.xsl and only when
- $latex.hyphenation.tttricks != 1. -->
- <xsl:template match="text()" mode="slash.hyphen">
- <xsl:call-template name="trim-outer">
- <xsl:with-param name="string">
- <xsl:call-template name="scape.slash.hyphen">
- <xsl:with-param name="string" select="." />
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="trim-outer">
- <xsl:param name="string"/>
- <xsl:variable name="trimleft" select="position()=1"/>
- <xsl:variable name="trimright" select="position()=last()"/>
- <xsl:choose>
- <xsl:when test="$trimleft and not($trimright)">
- <xsl:value-of select="substring-before(normalize-space(concat($string,'$$')),'$$')"/>
- </xsl:when>
- <xsl:when test="$trimright and not($trimleft)">
- <xsl:value-of select="substring-after(normalize-space(concat('$$',$string)),'$$')"/>
- </xsl:when>
- <xsl:when test="$trimleft and $trimright">
- <xsl:value-of select="normalize-space($string)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="scape.slash.hyphen">
- <xsl:param name="string" />
- <xsl:choose>
- <xsl:when test="contains($string,'://')">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">/\-</xsl:with-param>
- <xsl:with-param name="from">/</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:value-of select="substring-before($string,'://')"/>
- <xsl:value-of select="'://'"/>
- <xsl:call-template name="scape">
- <xsl:with-param name="string" select="substring-after($string,'://')"/>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">/\-</xsl:with-param>
- <xsl:with-param name="from">/</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="scape">
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="normalize-scape" >
- <xsl:param name="string"/>
- <xsl:variable name="result">
- <xsl:call-template name="scape"><xsl:with-param name="string" select="$string"/></xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="normalize-space($result)"/>
- </xsl:template>
-
-
- <xsl:template name="scape" >
- <xsl:param name="string"/>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textless{}</xsl:with-param>
- <xsl:with-param name="from">&lt;</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textgreater{}</xsl:with-param>
- <xsl:with-param name="from">&gt;</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textasciitilde{}</xsl:with-param>
- <xsl:with-param name="from">~</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\^{}</xsl:with-param>
- <xsl:with-param name="from">^</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\&amp;</xsl:with-param>
- <xsl:with-param name="from">&amp;</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\#</xsl:with-param>
- <xsl:with-param name="from">#</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\_</xsl:with-param>
- <xsl:with-param name="from">_</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\$</xsl:with-param>
- <xsl:with-param name="from">$</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\%</xsl:with-param>
- <xsl:with-param name="from">%</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\{</xsl:with-param>
- <xsl:with-param name="from">{</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\}</xsl:with-param>
- <xsl:with-param name="from">}</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textbackslash \ </xsl:with-param>
- <xsl:with-param name="from">\textbackslash </xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textbackslash </xsl:with-param>
- <xsl:with-param name="from">\</xsl:with-param>
- <xsl:with-param name="string" select="$string"></xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="scape-verbatim" >
- <xsl:param name="string"/>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\textasciitilde{}</xsl:with-param>
- <xsl:with-param name="from">~</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\^{}</xsl:with-param>
- <xsl:with-param name="from">^</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\&amp;</xsl:with-param>
- <xsl:with-param name="from">&amp;</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\#</xsl:with-param>
- <xsl:with-param name="from">#</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\_</xsl:with-param>
- <xsl:with-param name="from">_</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\$</xsl:with-param>
- <xsl:with-param name="from">$</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\%</xsl:with-param>
- <xsl:with-param name="from">%</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\docbooktolatexgobble\string\{</xsl:with-param>
- <xsl:with-param name="from">{</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\docbooktolatexgobble\string\}</xsl:with-param>
- <xsl:with-param name="from">}</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\docbooktolatexgobble\string\\</xsl:with-param>
- <xsl:with-param name="from">\</xsl:with-param>
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="scape-href" >
- <xsl:param name="string"/>
- <!-- maybe we should warn when there are invalid characters -->
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\&amp;</xsl:with-param>
- <xsl:with-param name="from">&amp;</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\%</xsl:with-param>
- <xsl:with-param name="from">%</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\{</xsl:with-param>
- <xsl:with-param name="from">{</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\{</xsl:with-param>
- <xsl:with-param name="from">{</xsl:with-param>
- <xsl:with-param name="string">
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">\docbooktolatexgobble\string\\</xsl:with-param>
- <xsl:with-param name="from">\</xsl:with-param>
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <doc:template name="scape-optionalarg" xmlns="">
- <refpurpose> Escape the ] character in LaTeX optional arguments (experimental) </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
- <xsl:template name="scape-optionalarg" >
- <xsl:param name="string"/>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="to">{\rbrack}</xsl:with-param>
- <xsl:with-param name="from">]</xsl:with-param>
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template>
- </xsl:template>
-
-
-
-
- <xsl:template name="string-replace">
- <xsl:param name="string"/>
- <xsl:param name="from"/>
- <xsl:param name="to"/>
-
- <xsl:choose>
- <xsl:when test="contains($string, $from)">
-
- <xsl:variable name="before" select="substring-before($string, $from)"/>
- <xsl:variable name="after" select="substring-after($string, $from)"/>
- <xsl:variable name="prefix" select="concat($before, $to)"/>
-
- <xsl:value-of select="$before"/>
- <xsl:value-of select="$to"/>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="string" select="$after"/>
- <xsl:with-param name="from" select="$from"/>
- <xsl:with-param name="to" select="$to"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
- <!--
- (c) David Carlisle
- replace all occurences of the character(s) `from'
- by the string `to' in the string `string'.
- <xsl:template name="string-replace" >
- <xsl:param name="string"/>
- <xsl:param name="from"/>
- <xsl:param name="to"/>
- <xsl:choose>
- <xsl:when test="contains($string,$from)">
- <xsl:value-of select="substring-before($string,$from)"/>
- <xsl:value-of select="$to"/>
- <xsl:call-template name="string-replace">
- <xsl:with-param name="string" select="substring-after($string,$from)"/>
- <xsl:with-param name="from" select="$from"/>
- <xsl:with-param name="to" select="$to"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- -->
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/para.mod.xsl b/docs/docbook/xslt/db2latex/para.mod.xsl
deleted file mode 100644
index 9f39916bda7..00000000000
--- a/docs/docbook/xslt/db2latex/para.mod.xsl
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="para" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Paragraphs <filename>para.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template match="para">
- <xsl:text>&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="simpara">
- <xsl:text>&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="formalpara">
- <xsl:text>&#10;\textbf{</xsl:text>
- <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="title"/></xsl:call-template>
- <xsl:text>} </xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&#10;</xsl:text>
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="formalpara/title"/>
-
- <!--==========================================================================
- | Especial Cases Do not add Linefeed
- +============================================================================-->
-
- <xsl:template match="textobject/para"> <xsl:apply-templates/> </xsl:template>
- <xsl:template match="step/para"> <xsl:apply-templates/> </xsl:template>
- <xsl:template match="entry/para"> <xsl:apply-templates/> </xsl:template>
- <xsl:template match="question/para"> <xsl:apply-templates/> </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl b/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl
deleted file mode 100644
index 38c15e9331b..00000000000
--- a/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Part
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="part-chap-app" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Parts, Chapters and Appendixes <filename>part-chap-app.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
-
- <xsl:template match="part">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="part/docinfo"/>
- <xsl:template match="part/title"/>
- <xsl:template match="part/subtitle"/>
- <xsl:template match="partintro"/>
- <xsl:template match="partintro/title"/>
- <xsl:template match="partintro/subtitle"/>
- <xsl:template match="partintro/titleabbrev"/>
-
-
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE: Chapter
- + ############################################################################## -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="chapter" xmlns="">
- <refpurpose> XSL template for Chapters.</refpurpose>
- <refdescription>
- <para> This is the main entry point for a <sgmltag class="start">chapter</sgmltag> subtree.
- This template processes any chapter. Outputs <literal>\chapter{title}</literal>, calls
- templates and apply-templates. Since chapters only apply in books,
- some assumptions could be done in order to optimize the stylesheet behaviour.</para>
-
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- <listitem><para>
- EMPTY templates: chapter/title,
- chapter/titleabbrev,
- chapter/subtitle,
- chapter/docinfo|chapterinfo.</para></listitem>
- </itemizedlist>
- </formalpara>
-
- <formalpara><title>Affected by</title> map.
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="chapter">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
- <xsl:template match="chapter/title"/>
- <xsl:template match="chapter/titleabbrev"/>
- <xsl:template match="chapter/subtitle"/>
- <xsl:template match="chapter/docinfo|chapterinfo"/>
-
-
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- + ############################################################################## -->
-
- <xsl:template match="appendix">
- <xsl:if test="not (preceding-sibling::appendix)">
- <xsl:text>&#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="local-name(..)='book' or local-name(..)='part'">
- <xsl:text>\newcommand{\dbappendix}[1]{\chapter{#1}}%&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\newcommand{\dbappendix}[1]{\section{#1}}%&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword">appendixes</xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
-
- <xsl:template match="appendix/title"/>
- <xsl:template match="appendix/titleabbrev"/>
- <xsl:template match="appendix/subtitle"/>
- <xsl:template match="appendix/docinfo|appendixinfo"/>
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/pi.mod.xsl b/docs/docbook/xslt/db2latex/pi.mod.xsl
deleted file mode 100644
index a4409583c8e..00000000000
--- a/docs/docbook/xslt/db2latex/pi.mod.xsl
+++ /dev/null
@@ -1,181 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="abstract" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Processing Instructions</title>
-
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
- <doc:template match="processing-instruction()" xmlns="">
- <refpurpose> Processing Instruction XSL template. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
-
-
- <xsl:template match="processing-instruction()">
- </xsl:template>
-
- <xsl:template match="processing-instruction('rcas')">
- <xsl:processing-instruction name="dbhtml">
- <xsl:value-of select="."/>
- </xsl:processing-instruction>
- </xsl:template>
-
- <xsl:template match="processing-instruction('db2latex')">
- </xsl:template>
-
-
-
-
- <xsl:template name="process.cmdsynopsis.list">
- <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
- <xsl:param name="count" select="1"/>
-
- <xsl:choose>
- <xsl:when test="$count>count($cmdsynopses)"></xsl:when>
- <xsl:otherwise>
- <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
-
- <dt>
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="label.id">
- <xsl:with-param name="object" select="$cmdsyn"/>
- </xsl:call-template>
- </xsl:attribute>
-
- <xsl:choose>
- <xsl:when test="$cmdsyn/@xreflabel">
- <xsl:call-template name="xref.xreflabel">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <!-- RCAS Fixme
- <xsl:call-template name="xref.cmdsynopsis">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:call-template>-->
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </dt>
-
- <xsl:call-template name="process.cmdsynopsis.list">
- <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="processing-instruction('dbcmdlist')">
- <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/>
-
- <xsl:if test="count($cmdsynopses)&lt;1">
- <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text>
- </xsl:message>
- </xsl:if>
-
- <dl>
- <xsl:call-template name="process.cmdsynopsis.list">
- <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
- </xsl:call-template>
- </dl>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template name="process.funcsynopsis.list">
- <xsl:param name="funcsynopses"/><!-- empty node list by default -->
- <xsl:param name="count" select="1"/>
-
- <xsl:choose>
- <xsl:when test="$count>count($funcsynopses)"></xsl:when>
- <xsl:otherwise>
- <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
-
- <dt>
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="label.id">
- <xsl:with-param name="object" select="$cmdsyn"/>
- </xsl:call-template>
- </xsl:attribute>
-
- <xsl:choose>
- <xsl:when test="$cmdsyn/@xreflabel">
- <xsl:call-template name="xref.xreflabel">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <!-- RCAS Fixme
- <xsl:call-template name="xref.funcsynopsis">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:call-template>
- -->
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </dt>
-
- <xsl:call-template name="process.funcsynopsis.list">
- <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="processing-instruction('dbfunclist')">
- <xsl:variable name="funcsynopses" select="..//funcsynopsis"/>
-
- <xsl:if test="count($funcsynopses)&lt;1">
- <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text>
- </xsl:message>
- </xsl:if>
-
- <dl>
- <xsl:call-template name="process.funcsynopsis.list">
- <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
- </xsl:call-template>
- </dl>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/preamble.mod.xsl b/docs/docbook/xslt/db2latex/preamble.mod.xsl
deleted file mode 100644
index ec9e5a8afc9..00000000000
--- a/docs/docbook/xslt/db2latex/preamble.mod.xsl
+++ /dev/null
@@ -1,810 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Variables and templates to manage LaTeX preamble.
-+ ############################################################################## -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <doc:reference id="preamble" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Variables and Templates used in LaTeX Preamble Generation</title>
-
- <partintro>
- <section><title>Introduction</title>
- <para> This section described the variables and templates that are used in the generation of
- the outtput LaTeX preamble. Basically, the LaTeX preamble depends on the XML document, that is,
- on whether it is an article or a book.</para>
- </section>
-
- <section><title>Flow</title>
- <section><title>Articles</title>
- <para></para>
- </section>
- <section><title>Books</title>
- <para></para>
- </section>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <!--#############################################################################
- | generate.latex.article.preamble and generate.latex.book.preamble
- |- #############################################################################
- | Top-level named templates.
- | LaTeX Preamble.
- |
- + ############################################################################## -->
-
- <!-- DOCUMENTATION -->
- <doc:template name="generate.latex.article.preamble" xmlns="">
- <refpurpose> Top level template, called by article template,
- responsible of generating the LaTeX preamble according to user
- XSL variables and templates.
- </refpurpose>
- <refdescription>
- <formalpara><title>Overview</title>
- If the xsl:variable <literal>latex.override</literal>
- is empty, the template outputs <literal>latex.article.preamblestart</literal>
- and calls <literal>generate.latex.common.preamble</literal>. Otherwise,
- it outputs the value of <literal>latex.override</literal> and
- exists.
- </formalpara>
- </refdescription>
- <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor>
- </doc:template>
-
- <!-- TEMPLATE -->
- <xsl:template name="generate.latex.article.preamble">
- <xsl:choose>
- <xsl:when test="$latex.override = ''">
- <xsl:value-of select="$latex.article.preamblestart"/>
- <xsl:value-of select="$latex.article.preamble.pre"/>
- <xsl:call-template name="label.id"/>
- <xsl:call-template name="generate.latex.common.preamble"/>
- <xsl:call-template name="generate.latex.essential.preamble"/>
- <xsl:value-of select="$latex.article.preamble.post"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$latex.override"/>
- <xsl:call-template name="generate.latex.essential.preamble"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!-- DOCUMENTATION -->
- <doc:template name="generate.latex.book.preamble" xmlns="">
- <refpurpose> Top level template, called by book template,
- responsible of generating the LaTeX preamble according to user
- XSL variables and templates.
- </refpurpose>
- <refdescription>
- <formalpara><title>Overview</title>
- If the xsl:variable <literal>latex.override</literal>
- is empty, the template outputs <literal>latex.book.preamblestart</literal>
- and calls <literal>generate.latex.common.preamble</literal>. Otherwise,
- it outputs the value of <literal>latex.override</literal> and
- exists.
- </formalpara>
- </refdescription>
- <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor>
- </doc:template>
-
- <!-- TEMPLATE -->
- <xsl:template name="generate.latex.book.preamble">
- <xsl:choose>
- <xsl:when test="$latex.override = ''">
- <xsl:value-of select="$latex.book.preamblestart"/>
- <xsl:value-of select="$latex.book.preamble.pre"/>
- <xsl:call-template name="label.id"/>
- <xsl:call-template name="generate.latex.common.preamble"/>
- <xsl:call-template name="generate.latex.essential.preamble"/>
- <xsl:value-of select="$latex.book.preamble.post"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$latex.override"/>
- <xsl:call-template name="generate.latex.essential.preamble"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-
- <!--#############################################################################
- | latex.article.preamblestart and latex.book.preamblestart
- |- #############################################################################
- |
- + ############################################################################## -->
-
- <doc:variable name="latex.article.preamblestart" xmlns="">
- <refpurpose> Generated Document class for articles. </refpurpose>
- <refdescription>
- </refdescription>
- <refreturn>
- <screen>
- % --------------------------------------------
- % Autogenerated LaTeX file for articles
- % --------------------------------------------
- \ifx\pdfoutput\undefined
- \documentclass[spanish,french,english,a4paper,10pt,twoside,twocolumn]{article}
- \else
- \documentclass[pdftex,spanish,french,english,a4paper,10pt,twoside,twocolumn]{article}
- \fi
- </screen>
- </refreturn>
- </doc:variable>
-
- <xsl:variable name="latex.article.preamblestart">
- <xsl:text>% -------------------------------------------- &#10;</xsl:text>
- <xsl:text>% Autogenerated LaTeX file for articles &#10;</xsl:text>
- <xsl:text>% -------------------------------------------- &#10;</xsl:text>
- <xsl:text>\ifx\pdfoutput\undefined&#10;</xsl:text>
- <xsl:text>\documentclass[</xsl:text>
- <xsl:value-of select='$latex.documentclass.common' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.article' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.pdftex' />
- <xsl:text>]{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when>
- <xsl:otherwise><xsl:text>article</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\documentclass[pdftex,</xsl:text>
- <xsl:value-of select='$latex.documentclass.common' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.article' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.dvips' />
- <xsl:text>]{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when>
- <xsl:otherwise><xsl:text>article</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- </xsl:variable>
-
- <doc:variable name="latex.book.preamblestart" xmlns="">
- <refpurpose>Generated Document class for books. </refpurpose>
- <refdescription>
- </refdescription>
- <refreturn>
- <screen>
- % ------------------------------------------------------------
- % Autogenerated LaTeX file for books
- % ------------------------------------------------------------
- \ifx\pdfoutput\undefined
- \documentclass[spanish,french,english,a4paper,twoside,openright,10pt,final]{report}
- \else
- \documentclass[pdftex,spanish,french,english,a4paper,twoside,openright,10pt,final]{report}
- \fi
- </screen>
- </refreturn>
- </doc:variable>
-
- <xsl:variable name="latex.book.preamblestart">
- <xsl:text>% ------------------------------------------------------------ &#10;</xsl:text>
- <xsl:text>% Autogenerated LaTeX file for books &#10;</xsl:text>
- <xsl:text>% ------------------------------------------------------------ &#10;</xsl:text>
- <xsl:text>\ifx\pdfoutput\undefined&#10;</xsl:text>
- <xsl:text>\documentclass[</xsl:text>
- <xsl:value-of select='$latex.documentclass.common' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.book' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.pdftex' />
- <xsl:text>]{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when>
- <xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\documentclass[pdftex,</xsl:text>
- <xsl:value-of select='$latex.documentclass.common' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.book' />
- <xsl:text>,</xsl:text>
- <xsl:value-of select='$latex.documentclass.dvips' />
- <xsl:text>]{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when>
- <xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- </xsl:variable>
-
- <!--#############################################################################
- | generate.latex.common.preamble
- |- #############################################################################
- |
- + ############################################################################## -->
-
- <doc:variable name="generate.latex.common.preamble" xmlns="">
- <refpurpose> Common LaTeX preamble shared by articles and books, and other
- document classes. Most of the packages and package options are managed here </refpurpose>
- <refdescription>
- </refdescription>
- <refreturn>
- The LaTeX preamble, after the document class and before the <literal>\begin{document}</literal>
- command.
- </refreturn>
- </doc:variable>
-
-
-
- <xsl:template name="generate.latex.common.preamble">
- <xsl:choose>
- <xsl:when test="$latex.pdf.support=1"><xsl:value-of select="$latex.pdf.preamble"/></xsl:when>
- <xsl:otherwise><xsl:text>\usepackage{graphicx}&#10;</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:if test="local-name(.)='article'">
- <xsl:value-of select="$latex.article.varsets"/>
- </xsl:if>
- <xsl:if test="local-name(.)='book'">
- <xsl:value-of select="$latex.book.varsets"/>
- </xsl:if>
- <xsl:if test="$latex.use.fancyhdr=1">
- <xsl:text>\usepackage{fancyhdr}&#10;</xsl:text>
- <xsl:call-template name="generate.latex.pagestyle"/>
- <!--
- Add dollar...
- <xsl:if test="latex.fancyhdr.lh !=''"><xsl:text>\lhead{</xsl:text><xsl:value-of select="$latex.fancyhdr.lh"/><xsl:text>}&#10;</xsl:text></xsl:if>
- <xsl:if test="latex.fancyhdr.ch !=''"><xsl:text>\chead{</xsl:text><xsl:value-of select="$latex.fancyhdr.ch"/><xsl:text>}&#10;</xsl:text></xsl:if>
- <xsl:if test="latex.fancyhdr.rh !=''"><xsl:text>\rhead{</xsl:text><xsl:value-of select="$latex.fancyhdr.rh"/><xsl:text>}&#10;</xsl:text></xsl:if>
- <xsl:if test="latex.fancyhdr.lf !=''"><xsl:text>\lfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.lf"/><xsl:text>}&#10;</xsl:text></xsl:if>
- <xsl:if test="latex.fancyhdr.cf !=''"><xsl:text>\cfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.cf"/><xsl:text>}&#10;</xsl:text></xsl:if>
- <xsl:if test="latex.fancyhdr.rf !=''"><xsl:text>\rfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.rf"/><xsl:text>}&#10;</xsl:text></xsl:if>
- -->
-
- <xsl:text>\renewcommand{\headrulewidth}{0.4pt}&#10;</xsl:text>
- <xsl:text>\renewcommand{\footrulewidth}{0.4pt}&#10;</xsl:text>
- </xsl:if>
-
- <xsl:text>% ---------------------- &#10;</xsl:text>
- <xsl:text>% Most Common Packages &#10;</xsl:text>
- <xsl:text>% ---------------------- &#10;</xsl:text>
- <xsl:if test="$latex.use.makeidx=1"><xsl:text>\usepackage{makeidx} &#10;</xsl:text></xsl:if>
- <xsl:text>\usepackage{varioref} &#10;</xsl:text>
- <xsl:text>\usepackage{latexsym} &#10;</xsl:text>
- <xsl:text>\usepackage{enumerate} &#10;</xsl:text>
- <xsl:if test="$latex.use.fancybox=1">
- <!-- must be before \usepackage{fancyvrb} -->
- <xsl:text>\usepackage{fancybox} &#10;</xsl:text>
- </xsl:if>
- <xsl:text>\usepackage{float} &#10;</xsl:text>
- <xsl:text>\usepackage{ragged2e} &#10;</xsl:text>
- <xsl:if test="$latex.babel.language!=''">
- <xsl:text>\usepackage[</xsl:text><xsl:value-of select="$latex.babel.language" /><xsl:text>]{babel} &#10;</xsl:text>
- </xsl:if>
- <xsl:if test="$latex.use.fancyvrb=1">
- <!-- must be after \usepackage{fancybox} -->
- <xsl:text>\usepackage{fancyvrb} &#10;</xsl:text>
- <xsl:text>\makeatletter\@namedef{FV@fontfamily@default}{\def\FV@FontScanPrep{}\def\FV@FontFamily{}}\makeatother&#10;</xsl:text>
- <xsl:if test="$latex.fancyvrb.tabsize!=''">
- <xsl:text>\fvset{obeytabs=true,tabsize=</xsl:text>
- <xsl:value-of select="$latex.fancyvrb.tabsize"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="$latex.use.isolatin1=1"><xsl:text>\usepackage{isolatin1} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.parskip=1"><xsl:text>\usepackage{parskip} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.rotating=1"><xsl:text>\usepackage{rotating} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.subfigure=1"><xsl:text>\usepackage{subfigure} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.tabularx=1"><xsl:text>\usepackage{tabularx} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.umoline=1"><xsl:text>\usepackage{umoline} &#10;</xsl:text></xsl:if>
- <xsl:if test="$latex.use.url=1"><xsl:text>\usepackage{url} &#10;</xsl:text></xsl:if>
-
- <!-- Configure document font. -->
- <xsl:if test="$latex.document.font != 'default'">
- <xsl:text>% ---------------&#10;</xsl:text>
- <xsl:text>% Document Font &#10;</xsl:text>
- <xsl:text>% ---------------&#10;</xsl:text>
- <xsl:text>\usepackage{</xsl:text><xsl:value-of select="$latex.document.font"/><xsl:text>}&#10;</xsl:text>
- </xsl:if>
- <!-- Support for keywords. -->
- <xsl:text> \def\keywords{\vspace{-.3em}&#10;</xsl:text>
- <xsl:text> \if@twocolumn&#10;</xsl:text>
- <xsl:text> \small{\itshape &#10;</xsl:text>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">keywords</xsl:with-param>
- </xsl:call-template>
- <xsl:text> }\/\bfseries---$\!$%&#10;</xsl:text>
- <xsl:text> \else&#10;</xsl:text>
- <xsl:text> \begin{center}\small\bfseries &#10;</xsl:text>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">keywords</xsl:with-param>
- </xsl:call-template>
- <xsl:text> \end{center}\quotation\small&#10;</xsl:text>
- <xsl:text> \fi}&#10;</xsl:text>
- <xsl:text> \def\endkeywords{\vspace{0.6em}\par\if@twocolumn\else\endquotation\fi&#10;</xsl:text>
- <xsl:text> \normalsize\rmfamily}&#10;</xsl:text>
-
- <xsl:if test="$latex.math.support=1"><xsl:value-of select="$latex.math.preamble"/></xsl:if>
- <xsl:if test="$latex.use.hyperref=1">
- <xsl:call-template name="latex.hyperref.preamble"/>
- </xsl:if>
- <xsl:value-of select="$latex.admonition.environment"/>
- <xsl:call-template name="latex.float.preamble"/>
- <xsl:call-template name="latex.graphicext"/>
- <xsl:choose>
- <xsl:when test='$latex.caption.swapskip=1'>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% $latex.caption.swapskip enabled for $formal.title.placement support&#10;</xsl:text>
- <xsl:text>\newlength{\docbooktolatextempskip}&#10;</xsl:text>
- <xsl:text>\newcommand{\captionswapskip}{\setlength{\docbooktolatextempskip}{\abovecaptionskip}</xsl:text>
- <xsl:text>\setlength{\abovecaptionskip}{\belowcaptionskip}</xsl:text>
- <xsl:text>\setlength{\belowcaptionskip}{\docbooktolatextempskip}}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\newcommand{\captionswapskip}{}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test='$latex.hyphenation.tttricks=1'>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Better linebreaks&#10;</xsl:text>
- <xsl:text>\newcommand{\docbookhyphenatedot}[1]{{\hyphenchar\font=`\.\relax #1\hyphenchar\font=`\-}}&#10;</xsl:text>
- <xsl:text>\newcommand{\docbookhyphenatefilename}[1]{{\hyphenchar\font=`\.\relax #1\hyphenchar\font=`\-}}&#10;</xsl:text>
- <xsl:text>\newcommand{\docbookhyphenateurl}[1]{{\hyphenchar\font=`\/\relax #1\hyphenchar\font=`\-}}&#10;</xsl:text>
- </xsl:if>
- </xsl:template>
-
- <doc:variable name="generate.latex.essential.preamble" xmlns="">
- <refpurpose> Unavoidable LaTeX preamble shared by articles and books </refpurpose>
- <refdescription>
- <para>Contains custom commands <emphasis>that you just can't get rid of!</emphasis></para>
- </refdescription>
- </doc:variable>
- <xsl:template name="generate.latex.essential.preamble">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\makeatletter&#10;</xsl:text>
- <xsl:if test="$latex.use.hyperref!='1'">
- <xsl:text>\newcommand{\href}[1]{{}}&#10;</xsl:text>
- <xsl:text>\newcommand{\hyperlink}[1]{{}}&#10;</xsl:text>
- <xsl:text>\newcommand{\hypertarget}[2]{#2}&#10;</xsl:text>
- </xsl:if>
- <xsl:if test="$latex.use.ucs='1'">
- <xsl:text>\usepackage[</xsl:text>
- <xsl:value-of select="$latex.ucs.options"/>
- <xsl:text>]{ucs}&#10;</xsl:text>
- </xsl:if>
- <xsl:if test="$latex.entities='catcode'">
- <xsl:text>\catcode`\&amp;=\active\def&amp;{\@ifnextchar##{\@docbooktolatexunicode\@gobble}{\&amp;}}&#10;</xsl:text>
- <xsl:if test="$latex.use.ucs!='1'">
- <xsl:text><![CDATA[
-% A few example Unicode characters.
-% For full support, use the unicode pacakge from Dominique Unruh/CTAN.
-\newcommand{\unichar}[1]{%
- \ifnum#1=8212---%
- \else\&\##1;\fi%
-}
-]]></xsl:text>
- </xsl:if>
- <xsl:text>\def\@docbooktolatexunicode#1;{\edef\@dbtemp{#1}\unichar{\@dbtemp}}&#10;</xsl:text>
- </xsl:if>
- <xsl:if test="$latex.entities='unicode'">
- <xsl:text>\usepackage[utf8]{inputenc}&#10;</xsl:text>
- </xsl:if>
- <xsl:text><![CDATA[
-\def\docbooktolatexgobble{\expandafter\@gobble}
-% Facilitate use of \cite with \label
-\newcommand{\docbooktolatexbibaux}[2]{%
- \protected@write\@auxout{}{\string\global\string\@namedef{docbooktolatexcite@#1}{#2}}
-}
-\newcommand{\docbooktolatexcite}[2]{%
- \@ifundefined{docbooktolatexcite@#1}%
- {\cite{#1}}%
- {\def\@docbooktolatextemp{#2}\ifx\@docbooktolatextemp\@empty%
- \cite{\@nameuse{docbooktolatexcite@#1}}%
- \else\cite[#2]{\@nameuse{docbooktolatexcite@#1}}%
- \fi%
- }%
-}
-\newcommand{\docbooktolatexbackcite}[1]{%
- \ifx\Hy@backout\@undefined\else%
- \@ifundefined{docbooktolatexcite@#1}{%
- % emit warning?
- }{%
- \ifBR@verbose%
- \PackageInfo{backref}{back cite \string`#1\string' as \string`\@nameuse{docbooktolatexcite@#1}\string'}%
- \fi%
- \Hy@backout{\@nameuse{docbooktolatexcite@#1}}%
- }%
- \fi%
-}
-% --------------------------------------------
-% A way to honour <footnoteref>s
-% Blame j-devenish (at) users.sourceforge.net
-% In any other LaTeX context, this would probably go into a style file.
-\newcommand{\docbooktolatexusefootnoteref}[1]{\@ifundefined{@fn@label@#1}%
- {\hbox{\@textsuperscript{\normalfont ?}}%
- \@latex@warning{Footnote label `#1' was not defined}}%
- {\@nameuse{@fn@label@#1}}}
-\newcommand{\docbooktolatexmakefootnoteref}[1]{%
- \protected@write\@auxout{}%
- {\global\string\@namedef{@fn@label@#1}{\@makefnmark}}%
- \@namedef{@fn@label@#1}{\hbox{\@textsuperscript{\normalfont ?}}}%
- }
-% --------------------------------------------
-% Hacks for honouring row/entry/@align
-% (\hspace not effective when in paragraph mode)
-% Naming convention for these macros is:
-% 'docbooktolatex' 'align' {alignment-type} {position-within-entry}
-% where r = right, l = left, c = centre
-\newcommand{\docbooktolatexalignrl}{\protect\ifvmode\raggedleft\else\hfill\fi}
-\newcommand{\docbooktolatexalignrr}{\protect}
-\newcommand{\docbooktolatexalignll}{\protect\ifvmode\raggedright\else\fi}
-\newcommand{\docbooktolatexalignlr}{\protect\ifvmode\else\hspace*\fill\fi}
-\newcommand{\docbooktolatexaligncl}{\protect\ifvmode\centering\else\hfill\fi}
-\newcommand{\docbooktolatexaligncr}{\protect\ifvmode\else\hspace*\fill\fi}
-\ifx\captionswapskip\@undefined\newcommand{\captionswapskip}{}\fi
-\makeatother
-]]></xsl:text>
- </xsl:template>
-
-
-
- <!--#############################################################################
- | Auxiliary templates and variables
- |- #############################################################################
- |
- + ############################################################################## -->
-
- <doc:template name="latex.float.preamble" xmlns="">
- <refpurpose>
- </refpurpose>
- <refdescription>
- </refdescription>
- </doc:template>
- <xsl:template name="latex.float.preamble">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Commands to manage/style/create floats &#10;</xsl:text>
- <xsl:text>% figures, tables, algorithms, examples, eqn &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text> \floatstyle{ruled}&#10;</xsl:text>
- <xsl:text> \restylefloat{figure}&#10;</xsl:text>
- <xsl:text> \floatstyle{ruled}&#10;</xsl:text>
- <xsl:text> \restylefloat{table}&#10;</xsl:text>
- <xsl:text> \floatstyle{ruled}&#10;</xsl:text>
- <xsl:text> \newfloat{program}{ht}{lop}[section]&#10;</xsl:text>
- <xsl:text> \floatstyle{ruled}&#10;</xsl:text>
- <xsl:text> \newfloat{example}{ht}{loe}[section]&#10;</xsl:text>
- <xsl:text> \floatname{example}{</xsl:text>
- <xsl:call-template name="gentext.element.name">
- <xsl:with-param name="element.name">example</xsl:with-param>
- </xsl:call-template>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text> \floatstyle{ruled}&#10;</xsl:text>
- <xsl:text> \newfloat{dbequation}{ht}{loe}[section]&#10;</xsl:text>
- <xsl:text> \floatname{dbequation}{</xsl:text>
- <xsl:call-template name="gentext.element.name">
- <xsl:with-param name="element.name">equation</xsl:with-param>
- </xsl:call-template>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text> \floatstyle{boxed}&#10;</xsl:text>
- <xsl:text> \newfloat{algorithm}{ht}{loa}[section]&#10;</xsl:text>
- <xsl:text> \floatname{algorithm}{Algorithm}&#10;</xsl:text>
- </xsl:template>
-
-
-
-
- <!-- DOCUMENTATION -->
- <doc:variable name="latex.pdf.preamble" xmlns="">
- <refpurpose>
- </refpurpose>
- <refdescription>
- <formalpara><title>Default Value:</title>
- <screen>
- \usepackage{ifthen}
- % --------------------------------------------
- % Check for PDFLaTeX/LaTeX
- % --------------------------------------------
- \newif\ifpdf
- \ifx\pdfoutput\undefined
- \pdffalse % we are not running PDFLaTeX
- \else
- \pdfoutput=1 % we are running PDFLaTeX
- \pdftrue
- \fi
- % --------------------------------------------
- % Load graphicx package with pdf if needed
- % --------------------------------------------
- \ifpdf
- \usepackage[pdftex]{graphicx}
- \pdfcompresslevel=9
- \else
- \usepackage{graphicx}
- \fi
- </screen>
- </formalpara>
- </refdescription>
- <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor>
- </doc:variable>
-
- <!-- VARIABLE -->
- <xsl:variable name="latex.pdf.preamble">
- <xsl:text>\usepackage{ifthen}&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Check for PDFLaTeX/LaTeX &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\newif\ifpdf&#10;</xsl:text>
- <xsl:text>\ifx\pdfoutput\undefined&#10;</xsl:text>
- <xsl:text>\pdffalse % we are not running PDFLaTeX&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\pdfoutput=1 % we are running PDFLaTeX&#10;</xsl:text>
- <xsl:text>\pdftrue&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Load graphicx package with pdf if needed &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\ifpdf&#10;</xsl:text>
- <xsl:text>\usepackage[pdftex]{graphicx}&#10;</xsl:text>
- <xsl:text>\pdfcompresslevel=9&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\usepackage{graphicx}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- </xsl:variable>
-
-
-
- <!-- DOCUMENTATION -->
- <doc:template name="latex.hyperref.preamble" xmlns="">
- <refpurpose> Manage the part of the preamble that handles the hyperref package.</refpurpose>
- <refdescription>
- <para> This template outputs the LaTeX code <literal>\usepackage[...]{hyperref}</literal>
- in order to use hyperlinks, backrefs and other goodies. If PDF support is activated,
- outputs laTeX code to detect whether the document is being compiled with
- <filename>pdflatex</filename> or <filename>latex</filename> to supply the
- right parameters (pdftex, dvips, etc). </para>
- <formalpara><title>To Do</title> The package options should be optained
- from XSL variables.</formalpara>
- <formalpara><title>Default Value with PDF support</title>
- <screen>
- % --------------------------------------------
- % Load hyperref package with pdf if needed
- % --------------------------------------------
- \ifpdf
- \usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}
- \else
- \usepackage[dvips,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}
- \fi
- % --------------------------------------------
- </screen>
- </formalpara>
- <formalpara><title>Default Value without PDF support</title>
- <screen>
- % --------------------------------------------
- % Load hyperref package
- % --------------------------------------------
- \usepackage[dvips,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}
- </screen>
- </formalpara>
- </refdescription>
- </doc:template>
- <!-- TEMPLATE -->
- <xsl:template name="latex.hyperref.preamble">
- <xsl:choose>
- <xsl:when test="$latex.pdf.support=1">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Load hyperref package with pdf if needed &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\ifpdf&#10;</xsl:text>
- <xsl:text>\usepackage[pdftex,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.common" />
- <xsl:text>,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.pdftex" />
- <xsl:text>]{hyperref}&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\usepackage[dvips,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.common" />
- <xsl:text>,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.dvips" />
- <xsl:text>]{hyperref}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Load hyperref package &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\usepackage[dvips,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.common" />
- <xsl:text>,</xsl:text>
- <xsl:value-of select="$latex.hyperref.param.dvips" />
- <xsl:text>]{hyperref}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!--#############################################################################
- | latex.math.preamble
- |- #############################################################################
- | This "preamble chunk" declares usage of most common AMS packages.
- | Defines new useful commands.
- + ############################################################################## -->
-
- <!-- DOCUMENTATION -->
- <doc:variable name="latex.math.preamble" xmlns="">
- <refpurpose> Manage the math related preamble</refpurpose>
- <refdescription>
- </refdescription>
- </doc:variable>
-
- <!-- VARIABLE -->
- <xsl:variable name="latex.math.preamble">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% Math support &#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn}&#10;</xsl:text>
- <xsl:text>%\newtheorem{thm}{Theorem}[section]&#10;</xsl:text>
- <xsl:text>%\newtheorem{cor}[section]{Corollary}&#10;</xsl:text>
- <xsl:text>%\newtheorem{lem}[section]{Lemma}&#10;</xsl:text>
- <xsl:text>%\newtheorem{defn}[section]{Definition}&#10;</xsl:text>
- <xsl:text>%\newtheorem{prop}[section]{Proposition}&#10;</xsl:text>
- <xsl:text>%\newtheorem{ax}{Axiom}&#10;</xsl:text>
- <xsl:text>%\newtheorem{theorem}[section]{Theorem}&#10;</xsl:text>
- <xsl:text>%\newtheorem{corollary}{Corollary}&#10;</xsl:text>
- <xsl:text>%\newtheorem{lemma}{Lemma}&#10;</xsl:text>
- <xsl:text>%\newtheorem{proposition}{Proposition}&#10;</xsl:text>
- <xsl:text>%\theoremstyle{definition}&#10;</xsl:text>
- <xsl:text>%\newtheorem{definition}{Definition}&#10;</xsl:text>
- <xsl:text>%\theoremstyle{remark}&#10;</xsl:text>
- <xsl:text>%\newtheorem{rem}{Remark}&#10;</xsl:text>
- <xsl:text>%\newtheorem*{notation}{Notation}&#10;</xsl:text>
- <xsl:text>%\newcommand{\ntt}{\normalfont\ttfamily}&#10;</xsl:text>
- <xsl:text>%\newcommand{\thmref}[1]{Theorem~\ref{#1}}&#10;</xsl:text>
- <xsl:text>%\newcommand{\secref}[1]{\S\ref{#1}}&#10;</xsl:text>
- <xsl:text>%\newcommand{\lemref}[1]{Lemma~\ref{#1}}&#10;</xsl:text>
- <xsl:text> \newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,}&#10;</xsl:text>
- <xsl:text> \newcommand{\A}{\mathcal{A}}&#10;</xsl:text>
- <xsl:text> \newcommand{\B}{\mathcal{B}}&#10;</xsl:text>
- <xsl:text> \newcommand{\XcY}{{(X,Y)}}&#10;</xsl:text>
- <xsl:text> \newcommand{\SX}{{S_X}}&#10;</xsl:text>
- <xsl:text> \newcommand{\SY}{{S_Y}}&#10;</xsl:text>
- <xsl:text> \newcommand{\SXY}{{S_{X,Y}}}&#10;</xsl:text>
- <xsl:text> \newcommand{\SXgYy}{{S_{X|Y}(y)}}&#10;</xsl:text>
- <xsl:text> \newcommand{\Cw}[1]{{\hat C_#1(X|Y)}}&#10;</xsl:text>
- <xsl:text> \newcommand{\G}{{G(X|Y)}}&#10;</xsl:text>
- <xsl:text> \newcommand{\PY}{{P_{\mathcal{Y}}}}&#10;</xsl:text>
- <xsl:text> \newcommand{\X}{\mathcal{X}}&#10;</xsl:text>
- <xsl:text> \newcommand{\wt}{\widetilde}&#10;</xsl:text>
- <xsl:text> \newcommand{\wh}{\widehat}&#10;</xsl:text>
- <xsl:text> % --------------------------------------------&#10;</xsl:text>
- <xsl:text> %\DeclareMathOperator{\per}{per}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\cov}{cov}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\non}{non}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\cf}{cf}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\add}{add}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\Cham}{Cham}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\IM}{Im}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\esssup}{ess\,sup}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\meas}{meas}&#10;</xsl:text>
- <xsl:text> \DeclareMathOperator{\seg}{seg}&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- </xsl:variable>
-
-
-
-
-<!--#############################################################################
-| latex.graphicext
-|- #############################################################################
-|
-+ ############################################################################## -->
-
-<doc:template name="latex.graphicext" xmlns="">
-<refpurpose> Declared graphic extensions </refpurpose>
-<refdescription>
-This template checks whether the user has overriden <command>grafic.default.extension</command>
-Otherwise, declares .pdf, .png, .jpg if using pdflatex and .eps if using latex.
-<programlisting><![CDATA[
-<xsl:template name="latex.graphicext">
-<xsl:choose>
-<xsl:when test="$graphic.default.extension !=''">
- <xsl:text>\DeclareGraphicsExtensions{</xsl:text>
- <xsl:if test="not(contains($graphic.default.extension,'.'))">
- <xsl:text>.</xsl:text>
- </xsl:if>
- <xsl:value-of select="$graphic.default.extension"/>
- <xsl:text>}&#10;</xsl:text>
-</xsl:when>
-<xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$latex.pdf.support=1">
- <xsl:text>\ifpdf&#10;</xsl:text>
- <xsl:text>\DeclareGraphicsExtensions{.pdf,.png,.jpg}&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\DeclareGraphicsExtensions{.eps}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\DeclareGraphicsExtensions{.eps}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:otherwise>
-</xsl:choose>
-</xsl:template>
-
-
-]]></programlisting>
-</refdescription>
-<refreturn>
-</refreturn>
-</doc:template>
-
-<xsl:template name="latex.graphicext">
-<xsl:choose>
-<xsl:when test="$graphic.default.extension !=''">
- <xsl:text>\DeclareGraphicsExtensions{</xsl:text>
- <xsl:if test="not(contains($graphic.default.extension,'.'))">
- <xsl:text>.</xsl:text>
- </xsl:if>
- <xsl:value-of select="$graphic.default.extension"/>
- <xsl:text>}&#10;</xsl:text>
-</xsl:when>
-<xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$latex.pdf.support=1">
- <xsl:text>\ifpdf&#10;</xsl:text>
- <xsl:text>\DeclareGraphicsExtensions{.pdf,.png,.jpg}&#10;</xsl:text>
- <xsl:text>\else&#10;</xsl:text>
- <xsl:text>\DeclareGraphicsExtensions{.eps}&#10;</xsl:text>
- <xsl:text>\fi&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\DeclareGraphicsExtensions{.eps}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:otherwise>
-</xsl:choose>
-</xsl:template>
-
- <xsl:template name="generate.latex.cell.separator">
- <xsl:choose>
- <xsl:when test="$latex.entities='catcode'">
- <xsl:text> \catcode`\&amp;=4 &amp;\catcode`\&amp;=\active </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> &amp; </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/preface.mod.xsl b/docs/docbook/xslt/db2latex/preface.mod.xsl
deleted file mode 100644
index d56c0ec5cbb..00000000000
--- a/docs/docbook/xslt/db2latex/preface.mod.xsl
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="preface" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Preface <filename>preface.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-<!--#############################################################################
- | Preface
- +- ############################################################################# -->
-<xsl:template match="preface">
-<xsl:text>\newpage&#10;</xsl:text>
-<xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
-<xsl:text>% Preface &#10;</xsl:text>
-<xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
-<xsl:text>\chapter*{</xsl:text>
-<!-- Output preface title or generic text -->
-<xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">preface</xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
-</xsl:choose>
-<xsl:text>}&#10;</xsl:text>
-<!-- done with title. Tag it. -->
-<xsl:call-template name="label.id"/>
-<!-- except title, titleabbrev and subtitle -->
-<xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/>
-</xsl:template>
-
-
-<!--#############################################################################
- | Preface Title
- +- ############################################################################# -->
-<xsl:template match="preface/title">
-<xsl:apply-templates/>
-</xsl:template>
-
-
-<!--#############################################################################
- | Other Preface Elements
- +- ############################################################################# -->
-<xsl:template match="preface/titleabbrev"/>
-<xsl:template match="preface/subtitle"/>
-<xsl:template match="preface/docinfo|prefaceinfo"/>
-
-
-<xsl:template match="preface/sect1|preface/simplesect">
-<xsl:text>&#10;\section*{</xsl:text>
-<xsl:apply-templates select="title"/>
-<xsl:text>}&#10;</xsl:text>
-<xsl:apply-templates select="*[name(.) != 'title']"/>
-</xsl:template>
-
-
-<xsl:template match="preface/sect1/sect2">
-<xsl:text>&#10;\subsection*{</xsl:text>
-<xsl:apply-templates select="title"/>
-<xsl:text>}&#10;</xsl:text>
-<xsl:apply-templates select="*[name(.) != 'title']"/>
-</xsl:template>
-
-
-<xsl:template match="preface/sect1/sect2/sect3">
-<xsl:text>&#10;\subsubsection*{</xsl:text>
-<xsl:apply-templates select="title"/>
-<xsl:text>}&#10;</xsl:text>
-<xsl:apply-templates select="*[name(.) != 'title']"/>
-</xsl:template>
-
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/procedure.mod.xsl b/docs/docbook/xslt/db2latex/procedure.mod.xsl
deleted file mode 100644
index c53cf39c689..00000000000
--- a/docs/docbook/xslt/db2latex/procedure.mod.xsl
+++ /dev/null
@@ -1,162 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="procedure" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Procedures <filename>procedure.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="procedure" xmlns="">
-<refpurpose>Procedure XSL Template.</refpurpose>
-<refdescription>
-<para></para>
-<programlisting><![CDATA[
-]]></programlisting>
-</refdescription>
-</doc:template>
-<!--############################################################################# -->
-
-<xsl:template match="procedure">
- <xsl:variable name="placement">
- <xsl:call-template name="generate.formal.title.placement">
- <xsl:with-param name="object" select="local-name(.)" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$placement='before' or $placement=''">
- <xsl:apply-templates select="title" mode="procedure.title"/>
- <xsl:text>\begin{enumerate}&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>\end{enumerate}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\begin{enumerate}&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>\end{enumerate}&#10;</xsl:text>
- <xsl:apply-templates select="title" mode="procedure.title"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<xsl:template match="procedure/title">
-</xsl:template>
-
-<xsl:template match="procedure/title" mode="procedure.title">
- <xsl:text>&#10;&#10;{</xsl:text>
- <xsl:value-of select="$latex.procedure.title.style"/>
- <xsl:text>{</xsl:text>
- <xsl:choose>
- <xsl:when test="$latex.apply.title.templates=1">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}}&#10;</xsl:text>
-</xsl:template>
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="step" xmlns="">
-<refpurpose>Step XSL Template.</refpurpose>
-<refdescription>
-<para></para>
-<programlisting><![CDATA[
-]]></programlisting>
-</refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template match="step">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:text>&#10;\item{{</xsl:text>
- <xsl:value-of select="$latex.step.title.style"/> <!-- by default \sc -->
- <xsl:text>{</xsl:text>
- <xsl:apply-templates select="title"/>
- <xsl:text>}}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#10;\item{</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="*[not(self::title)]"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
-<!-- step/title, just apply templates ########################################### -->
- <xsl:template match="step/title">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="substeps" xmlns="">
-<refpurpose>SubSteps XSL Template.</refpurpose>
-<refdescription>
-<para></para>
-<programlisting><![CDATA[
-<xsl:template match="substeps">
- <xsl:text>\begin{enumerate}&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>\end{enumerate}&#10;</xsl:text>
-</xsl:template>
-]]></programlisting>
-</refdescription>
-</doc:template>
-<!--############################################################################# -->
-
-<xsl:template match="substeps">
- <xsl:text>\begin{enumerate}&#10;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>\end{enumerate}&#10;</xsl:text>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/qandaset.mod.xsl b/docs/docbook/xslt/db2latex/qandaset.mod.xsl
deleted file mode 100644
index c93d56e6b3c..00000000000
--- a/docs/docbook/xslt/db2latex/qandaset.mod.xsl
+++ /dev/null
@@ -1,406 +0,0 @@
-<?xml version="1.0"?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-| Portions (c) Norman Walsh, official DocBook XSL stylesheets.
-| See docbook.sf.net
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version="1.0">
-
-
-<!--############################################################################# -->
-<!-- DOCUMENTATION -->
- <doc:reference xmlns="" id="qandaset">
- <referenceinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>QandaSet <filename>qandaset.mod.xsl</filename></title>
- <partintro>
- <section>
- <title>Introduction</title>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
-<!--#############################################################################
-| qandaset
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-<xsl:template match="qandaset">
- <!-- get all children that are not the following -->
- <xsl:variable name="preamble" select="*[name(.) != 'title'
- and name(.) != 'titleabbrev'
- and name(.) != 'qandadiv'
- and name(.) != 'qandaentry']"/>
- <xsl:variable name="label-width"/>
- <xsl:variable name="table-summary"/>
- <xsl:variable name="cellpadding"/>
- <xsl:variable name="cellspacing"/>
- <xsl:variable name="toc"/>
- <xsl:variable name="toc.params"/>
- <xsl:variable name="qalevel">
- <xsl:call-template name="qanda.section.level"/>
- </xsl:variable>
- <xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
- <xsl:text>% QandASet &#10;</xsl:text>
- <xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="ancestor::sect2">
- <xsl:text>\subsubsection*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::sect1">
- <xsl:text>\subsection*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::article | ancestor::appendix">
- <xsl:text>\section*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::book">
- <xsl:text>\chapter*{</xsl:text>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>F.A.Q.</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}&#10;</xsl:text>
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;</xsl:text>
-
- <!-- process toc -->
- <xsl:if test="contains($toc.params, 'toc') and $toc != '0'">
- <xsl:call-template name="process.qanda.toc"/>
- </xsl:if>
- <!-- process preamble -->
- <xsl:apply-templates select="$preamble"/>
- <!-- process divs and entries -->
- <xsl:apply-templates select="qandaentry|qandadiv"/>
-</xsl:template>
-
-
-<xsl:template match="qandaset/title">
-<xsl:apply-templates/>
-</xsl:template>
-
-
-
-
-<!--#############################################################################
-| qandadiv
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-
-<xsl:template match="qandadiv">
- <!-- get the preamble -->
- <xsl:variable name="preamble" select="*[name(.) != 'title'
- and name(.) != 'titleabbrev'
- and name(.) != 'qandadiv'
- and name(.) != 'qandaentry']"/>
- <xsl:variable name="qalevel">
- <xsl:call-template name="qandadiv.section.level"/>
- </xsl:variable>
- <!-- process the title if it exists -->
- <xsl:text>% -----------&#10;</xsl:text>
- <xsl:text>% QandADiv &#10;</xsl:text>
- <xsl:text>% -----------&#10;</xsl:text>
- <xsl:text>\noindent\begin{minipage}{\linewidth}&#10;</xsl:text>
- <xsl:text>\vspace{0.25em}\hrule\vspace{0.25em}&#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="ancestor::sect2">
- <xsl:text>\paragraph*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::sect1">
- <xsl:text>\subsubsection*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::article | ancestor::appendix">
- <xsl:text>\subsection*{</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::book">
- <xsl:text>\section*{</xsl:text>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>F.A.Q. Part</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>}</xsl:text>
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;</xsl:text>
- <xsl:text>\hrule\vspace{0.25em}&#10;</xsl:text>
- <xsl:text>\end{minipage}&#10;</xsl:text>
-
-<!--
- <xsl:variable name="toc.params">
- </xsl:variable>
- <xsl:if test="contains($toc.params, 'toc')">
- <xsl:call-template name="process.qanda.toc"/>
- </xsl:if>
- <xsl:if test="$preamble">
- <xsl:apply-templates select="$preamble"/>
- </xsl:if>
--->
-<!--
- <xsl:text>\begin{toc}&#10;</xsl:text>
- <xsl:for-each select="qandaentry">
- <xsl:text>\tocref{</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:for-each>
- <xsl:text>\end{toc}&#10;</xsl:text>
--->
-
-<!-- pseudo table of contents -->
- <!--
- <xsl:choose>
- <xsl:when test="title">
- <xsl:text>\caption{</xsl:text>
- <xsl:apply-templates select="title"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\caption{</xsl:text>
- <xsl:text>F.A.Q. Part</xsl:text>
- <xsl:text>}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- -->
- <xsl:for-each select="qandaentry">
- <xsl:text>\noindent{}</xsl:text>
- <xsl:value-of select="position()"/>
- <xsl:text>.~</xsl:text>
- <xsl:apply-templates select="question"/>
- <xsl:if test="position()!=last()"><xsl:text>\newline&#10;</xsl:text></xsl:if>
- </xsl:for-each>
- <xsl:text>\vspace{0.25em}\hrule&#10;</xsl:text>
-
- <xsl:for-each select="qandaentry">
- <xsl:text>\vspace{1em}&#10;</xsl:text>
- <xsl:text>\noindent{}</xsl:text>
- <xsl:value-of select="position()"/>
- <xsl:text>.~</xsl:text>
- <xsl:apply-templates select="question"/>
- <xsl:text>\newline&#10;</xsl:text>
- <xsl:apply-templates select="answer"/>
- </xsl:for-each>
-<!-- <xsl:apply-templates select="qandadiv|qandaentry"/> -->
-<!-- <xsl:apply-templates/> -->
- <xsl:text>\vspace{1em}&#10;</xsl:text>
-</xsl:template>
-
-
-
-
-
-
-
-
-<!--#############################################################################
-| qandadiv/title
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-<xsl:template match="qandadiv/title">
- <!-- <xsl:apply-templates select="parent::qandadiv" mode="label.markup"/> -->
- <xsl:apply-templates/>
-</xsl:template>
-
-
-
-
-<!--#############################################################################
-| question
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-<xsl:template match="question">
-<!-- get the default label -->
-<xsl:variable name="deflabel">
- <xsl:choose>
- <xsl:when test="ancestor-or-self::*[@defaultlabel]">
- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]/@defaultlabel"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="latex.qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:variable>
-<!-- process the question itself
-<xsl:apply-templates select="." mode="label.markup"/>
-<xsl:choose>
- <xsl:when test="$deflabel = 'none' and not(label)">
- <xsl:apply-templates select="*[name(.) != 'label']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="*[name(.) != 'label']"/>
- </xsl:otherwise>
-</xsl:choose>
--->
-<xsl:text>\textbf{Q:}~\textit{</xsl:text>
-<xsl:apply-templates/>
-<xsl:text>}&#10;</xsl:text>
-</xsl:template>
-
-
-
-
-
-
-
-
-<!--#############################################################################
-| answer
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-<xsl:template match="answer">
-<xsl:text>\noindent\textbf{A:}~</xsl:text>
-<xsl:apply-templates/>
-<xsl:text>&#10;&#10;</xsl:text>
-</xsl:template>
-
-
-
-
-
-
-
-<!--#############################################################################
-| label
-|- #############################################################################
-|
-+ ############################################################################# -->
-
-<xsl:template match="label">
- <xsl:apply-templates/>
-</xsl:template>
-
-
-<xsl:template name="process.qanda.toc">
- <xsl:apply-templates select="qandadiv" mode="qandatoc.mode"/>
- <xsl:apply-templates select="qandaentry" mode="qandatoc.mode"/>
-</xsl:template>
-
-<xsl:template match="qandadiv" mode="qandatoc.mode">
- <xsl:apply-templates select="title" mode="qandatoc.mode"/>
- <xsl:call-template name="process.qanda.toc"/>
-</xsl:template>
-
-
-
-
-
-
-<xsl:template match="qandadiv/title" mode="qandatoc.mode">
-<xsl:variable name="qalevel">
- <xsl:call-template name="qandadiv.section.level"/>
-</xsl:variable>
-<xsl:call-template name="label.id">
- <xsl:with-param name="object" select="parent::*"/>
-</xsl:call-template>
-<xsl:apply-templates select="parent::qandadiv" mode="label.markup"/>
-<xsl:value-of select="$autotoc.label.separator"/>
-<xsl:apply-templates/>
-</xsl:template>
-
-
-
-<xsl:template match="qandaentry" mode="qandatoc.mode">
- <xsl:apply-templates mode="qandatoc.mode"/>
-</xsl:template>
-
-
-
-<xsl:template match="question" mode="qandatoc.mode">
- <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/>
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text> </xsl:text>
-</xsl:template>
-
-
-<xsl:template match="answer|revhistory" mode="qandatoc.mode">
- <!-- nop -->
-</xsl:template>
-
-
-
-
-<xsl:template name="question.answer.label">
- <!-- variable: deflabel -->
- <xsl:variable name="deflabel">
- <!-- chck whether someone has a defaultlabel attribute -->
- <xsl:choose>
- <xsl:when test="ancestor-or-self::*[@defaultlabel]">
- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]/@defaultlabel"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="latex.qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
-
- <xsl:variable name="label" select="@label"/>
- <xsl:choose>
- <xsl:when test="$deflabel = 'qanda'">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'question'">question</xsl:when>
- <xsl:when test="local-name(.) = 'answer'">answer</xsl:when>
- <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when>
- <xsl:otherwise>qandaset</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$deflabel = 'label'">
- <xsl:value-of select="$label"/>
- </xsl:when>
- <xsl:when test="$deflabel = 'number' and local-name(.) = 'question'">
- <xsl:apply-templates select="ancestor::qandaset[1]" mode="number"/>
- <xsl:choose>
- <xsl:when test="ancestor::qandadiv">
- <xsl:apply-templates select="ancestor::qandadiv[1]" mode="number"/>
- <xsl:apply-templates select="ancestor::qandaentry" mode="number"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="ancestor::qandaentry" mode="number"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <!-- nothing -->
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/refentry.mod.xsl b/docs/docbook/xslt/db2latex/refentry.mod.xsl
deleted file mode 100644
index 52d2b297d52..00000000000
--- a/docs/docbook/xslt/db2latex/refentry.mod.xsl
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="refentry" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authogroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authogroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>References and Entries <filename>refentry.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <!--#############################################################################
- | REFERENCE
- |- #############################################################################
- |
- + ############################################################################## -->
- <xsl:template match="reference">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates select="partintro"/>
- <xsl:apply-templates select="*[local-name(.) != 'partintro']"/>
- </xsl:template>
-
- <xsl:template match="reference" mode="division.number">
- <xsl:number from="book" count="reference" format="I."/>
- </xsl:template>
-
- <xsl:template match="reference/docinfo"/>
- <xsl:template match="reference/title"/>
- <xsl:template match="reference/subtitle"/>
-
-
-
- <!--#############################################################################
- | REFENTRY
- |- #############################################################################
- |
- + ############################################################################## -->
- <xsl:template match="refentry">
- <xsl:variable name="refmeta" select=".//refmeta"/>
- <xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
- <xsl:variable name="refnamediv" select=".//refnamediv"/>
- <xsl:variable name="refname" select="$refnamediv//refname"/>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$refentrytitle">
- <xsl:apply-templates select="$refentrytitle[1]" mode="title"/>
- </xsl:when>
- <xsl:when test="$refname">
- <xsl:apply-templates select="$refname[1]" mode="title"/>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="string" select="$title"/>
- </xsl:call-template>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="refentrytitle|refname" mode="title">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="refentry/docinfo|refentry/refentryinfo"/>
- <xsl:template match="refmeta"/>
-
- <xsl:template match="manvolnum">
- <xsl:if test="$refentry.xref.manvolnum != 0">
- <xsl:text>(</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="refmiscinfo"/>
-
- <xsl:template match="refentrytitle">
- <xsl:call-template name="inline.charseq"/>
- </xsl:template>
-
- <xsl:template match="refnamediv">
- <xsl:call-template name="block.object"/>
- </xsl:template>
-
- <xsl:template match="refname">
- <xsl:apply-templates/>
- <xsl:if test="not (preceding-sibling::refname)">
- <xsl:text>&#10;\subsection*{</xsl:text>
- <xsl:if test="$refentry.generate.name != 0">
- <xsl:call-template name="gentext.element.name"/>
- </xsl:if>
- <xsl:text>}&#10;</xsl:text>
- </xsl:if>
- <xsl:apply-templates/>
- <xsl:if test="following-sibling::refname">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:template>
-
-
- <xsl:template match="refpurpose">
- <xsl:text> $-$ </xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="refdescriptor">
- <!-- todo: finish this -->
- </xsl:template>
-
- <xsl:template match="refclass">
- <xsl:if test="@role">
- <xsl:value-of select="@role"/>
- <xsl:text>: </xsl:text>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
- <!--#############################################################################
- | REFSYNOPSIS
- |- #############################################################################
- |
- + ############################################################################## -->
-
- <xsl:template match="refsynopsisdiv">
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;\subsection*{Synopsis}&#10;</xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="refsynopsisdivinfo"></xsl:template>
- <xsl:template match="refsynopsisdiv/title"></xsl:template>
-
-
- <!--#############################################################################
- | REFSECTS
- |- #############################################################################
- |
- + ############################################################################## -->
-
- <xsl:template match="refsect1|refsect2|refsect3">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="refsect1/title"/>
- <xsl:template match="refsect2/title"/>
- <xsl:template match="refsect3/title"/>
- <xsl:template match="refsect1info"/>
- <xsl:template match="refsect2info"/>
- <xsl:template match="refsect3info"/>
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/revision.mod.xsl b/docs/docbook/xslt/db2latex/revision.mod.xsl
deleted file mode 100644
index a041aed5c3c..00000000000
--- a/docs/docbook/xslt/db2latex/revision.mod.xsl
+++ /dev/null
@@ -1,215 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="revision" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Revision Management <filename>revision.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para>
- This file defines the DB2LaTeX XSL templates for <sgmltag>revision</sgmltag>
- and its children. The basic mapping is to output a LaTeX table and a table
- row for each revision.
- </para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revhistory" xmlns="">
- <refpurpose> revhistory XSL template </refpurpose>
- <refdescription>
- <formalpara><title>User variables</title>
- <itemizedlist>
- <listitem><para><literal>latex.output.revhistory</literal></para></listitem>
- </itemizedlist>
- </formalpara>
- <para>This XSL template depends on the value of <literal>latex.output.revhistory</literal>.
- If this variable is "1", the XSL template calls <command>map.begin</command>, then
- applies templates and finally calls <command>map.end</command></para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revhistory">
- <xsl:message>RCAS: Processing Revision History </xsl:message>
- <xsl:if test="$latex.output.revhistory=1">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:if>
- </xsl:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revhistory/revision" xmlns="">
- <refpurpose> revhistory/revision XSL template </refpurpose>
- <refdescription>
- <para>Each revhistory/revision corresponds to a LaTeX table row (see revhistory)
- containing the revision number, the date, author initials and the description/
- remarks of the revision.</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revhistory/revision">
- <xsl:variable name="revnumber" select=".//revnumber"/>
- <xsl:variable name="revdate" select=".//date"/>
- <xsl:variable name="revauthor" select=".//authorinitials"/>
- <xsl:variable name="revremark" select=".//revremark|.//revdescription"/>
- <!-- Row starts here -->
- <xsl:if test="$revnumber">
- <xsl:call-template name="gentext.element.name"/>
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="$revnumber"/>
- </xsl:if>
- <xsl:text> &amp; </xsl:text>
- <xsl:apply-templates select="$revdate"/>
- <xsl:text> &amp; </xsl:text>
- <xsl:choose>
- <xsl:when test="count($revauthor)=0">
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">nbsp</xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$revauthor"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- End Row here -->
- <xsl:text> \\ \hline&#10;</xsl:text>
- <!-- Add Remark Row if exists-->
- <xsl:if test="$revremark">
- <xsl:text>\multicolumn{3}{|l|}{</xsl:text>
- <xsl:apply-templates select="$revremark"/>
- <!-- End Row here -->
- <xsl:text>} \\ \hline&#10;</xsl:text>
- </xsl:if>
- </xsl:template>
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revision/authorinitials" xmlns="">
- <refpurpose> revision/authorinitials XSL template </refpurpose>
- <refdescription>
- <para>Applies templates and outputs a "comma" if the node position is not
- last()</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revision/authorinitials">
- <xsl:apply-templates/>
- <xsl:if test="position()!=last()">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:template>
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revision/revnumber" xmlns="">
- <refpurpose> revision/revnumber XSL template </refpurpose>
- <refdescription>
- <para>Applies templates.</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revision/revnumber">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revision/date" xmlns="">
- <refpurpose> revision/date XSL template </refpurpose>
- <refdescription>
- <para>Applies templates.</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revision/date">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revision/revremark" xmlns="">
- <refpurpose> revision/revremark XSL template </refpurpose>
- <refdescription>
- <para>Applies templates.</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revision/revremark">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="revision/revdescription" xmlns="">
- <refpurpose> revision/revdescription XSL template </refpurpose>
- <refdescription>
- <para>Applies templates.</para>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="revision/revdescription">
- <xsl:apply-templates/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/sections.mod.xsl b/docs/docbook/xslt/db2latex/sections.mod.xsl
deleted file mode 100644
index 2e74ce3890c..00000000000
--- a/docs/docbook/xslt/db2latex/sections.mod.xsl
+++ /dev/null
@@ -1,147 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: sections.
-| PENDING:
-| - Nested section|simplesect > 3 mapped to subsubsection*
-| - No sectinfo (!)
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="sections" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authogroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authogroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Sections <filename>sections.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
-
- <xsl:template match="sect1|sect2|sect3|sect4|sect5">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="sect1/title"/>
- <xsl:template match="sect2/title"/>
- <xsl:template match="sect3/title"/>
- <xsl:template match="sect4/title"/>
- <xsl:template match="sect5/title"/>
-
-
- <xsl:template match="section">
- <xsl:text>&#10;</xsl:text>
- <xsl:variable name="level" select="count(ancestor::section)+1"/>
- <xsl:choose>
- <xsl:when test='$level=1'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect1'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=2'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect2'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=3'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect3'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=4'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect4'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=5'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect5'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>DB2LaTeX: recursive section|simplesect &gt; 5 Not well Supported</xsl:message>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect6'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template match="simplesect">
- <xsl:text>&#10;</xsl:text>
- <xsl:variable name="level" select="count(ancestor::section) + 1"/>
- <xsl:choose>
- <xsl:when test='$level=1'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect1'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=2'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect2'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=3'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect3'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=4'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect4'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test='$level=5'>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect5'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>DB2LaTeX: recursive section|simplesect &gt; 5 Not well Supported</xsl:message>
- <xsl:call-template name="map.begin">
- <xsl:with-param name="keyword" select="'sect6'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="section/title"/>
- <xsl:template match="simplesect/title"/>
-
- <xsl:template match="sectioninfo"/>
- <xsl:template match="sect1info"/>
- <xsl:template match="sect2info"/>
- <xsl:template match="sect3info"/>
- <xsl:template match="sect4info"/>
- <xsl:template match="sect5info"/>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/set.mod.xsl b/docs/docbook/xslt/db2latex/set.mod.xsl
deleted file mode 100644
index 8f87fb10715..00000000000
--- a/docs/docbook/xslt/db2latex/set.mod.xsl
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="set" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Sets <filename>set.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
- <xsl:template match="set">
- <xsl:call-template name="label.id"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="set/setinfo"></xsl:template>
- <xsl:template match="set/title"></xsl:template>
- <xsl:template match="set/subtitle"></xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/sgmltag.mod.xsl b/docs/docbook/xslt/db2latex/sgmltag.mod.xsl
deleted file mode 100644
index 893a2b6d4d2..00000000000
--- a/docs/docbook/xslt/db2latex/sgmltag.mod.xsl
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="sgmltag" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authogroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authogroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>SGML Tags <filename>sgmltag.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <xsl:template match="sgmltag">
- <xsl:call-template name="format.sgmltag"/>
- </xsl:template>
-
- <xsl:template name="format.sgmltag">
- <xsl:param name="class">
- <xsl:choose>
- <xsl:when test="@class">
- <xsl:value-of select="normalize-space(@class)"/>
- </xsl:when>
- <xsl:otherwise>element</xsl:otherwise>
- </xsl:choose>
- </xsl:param>
-
- <xsl:choose>
- <xsl:when test="$class='attribute'">
- <xsl:call-template name="inline.charseq"/>
- </xsl:when>
- <xsl:when test="$class='attvalue'">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:when>
- <xsl:when test="$class='element'">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:when>
- <xsl:when test="$class='endtag'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;/</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='genentity'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>\&amp;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='numcharref'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>\&amp;\#</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='paramentity'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>\%</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='pi'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;?</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>?&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='xmlpi'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;?</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>?&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='starttag'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='emptytag'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>/&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$class='sgmlcomment'">
- <xsl:call-template name="inline.monoseq">
- <xsl:with-param name="content">
- <xsl:text>&lt;!--</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>--&gt;</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="inline.charseq"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/synop-oop.mod.xsl b/docs/docbook/xslt/db2latex/synop-oop.mod.xsl
deleted file mode 100644
index 93b29c12297..00000000000
--- a/docs/docbook/xslt/db2latex/synop-oop.mod.xsl
+++ /dev/null
@@ -1,689 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE xsl:stylesheet [ <!ENTITY RE "&#10;"> ]>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
- <!--#############################################################################
- |- #############################################################################
- |
- | PURPOSE:
- + ############################################################################## -->
-
-
-
- <xsl:template match="classsynopsis">
- <!-- PARAM language : -->
- <xsl:param name="language">
- <xsl:choose>
- <xsl:when test="@language">
- <xsl:value-of select="@language"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$default-classsynopsis-language"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
-
- <xsl:choose>
- <xsl:when test="$language='java'"> <xsl:apply-templates select="." mode="java"/> </xsl:when>
- <xsl:when test="$language='perl'"> <xsl:apply-templates select="." mode="perl"/> </xsl:when>
- <xsl:when test="$language='idl'"> <xsl:apply-templates select="." mode="idl"/> </xsl:when>
- <xsl:when test="$language='cpp'"> <xsl:apply-templates select="." mode="cpp"/> </xsl:when>
- <xsl:otherwise>
- <xsl:message>Unrecognized language on classsynopsis: <xsl:value-of select="$language"/> </xsl:message>
- <xsl:apply-templates select=".">
- <xsl:with-param name="language" select="$default-classsynopsis-language"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
- <!-- ===== Java ======================================================== -->
-
- <xsl:template match="classsynopsis" mode="java">
- <pre class="{name(.)}">
- <xsl:apply-templates select="ooclass[1]" mode="java"/>
- <xsl:if test="ooclass[position() &gt; 1]">
- <xsl:text> extends</xsl:text>
- <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="java"/>
- <xsl:if test="oointerface|ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="oointerface">
- <xsl:text>implements</xsl:text>
- <xsl:apply-templates select="oointerface" mode="java"/>
- <xsl:if test="ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="ooexception">
- <xsl:text>throws</xsl:text>
- <xsl:apply-templates select="ooexception" mode="java"/>
- </xsl:if>
- <xsl:text> {&RE;&RE;</xsl:text>
- <xsl:apply-templates select="constructorsynopsis
- |destructorsynopsis
- |fieldsynopsis
- |methodsynopsis
- |classsynopsisinfo" mode="java"/>
- <xsl:text>}</xsl:text>
- </pre>
- </xsl:template>
-
- <xsl:template match="classsynopsisinfo" mode="java">
- <xsl:apply-templates mode="java"/>
- </xsl:template>
-
- <xsl:template match="ooclass|oointerface|ooexception" mode="java">
- <xsl:choose>
- <xsl:when test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:apply-templates mode="java"/>
-
- </xsl:template>
-
- <xsl:template match="modifier" mode="java">
-
- <xsl:apply-templates mode="java"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="classname" mode="java">
- <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="java"/>
-
- </xsl:template>
-
- <xsl:template match="interfacename" mode="java">
- <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="java"/>
-
- </xsl:template>
-
- <xsl:template match="exceptionname" mode="java">
- <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="java"/>
-
- </xsl:template>
-
- <xsl:template match="fieldsynopsis" mode="java">
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="java"/>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <xsl:template match="type" mode="java">
-
- <xsl:apply-templates mode="java"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="varname" mode="java">
-
- <xsl:apply-templates mode="java"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="initializer" mode="java">
-
- <xsl:text>= </xsl:text>
- <xsl:apply-templates mode="java"/>
-
- </xsl:template>
-
- <xsl:template match="void" mode="java">
-
- <xsl:text>void </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="methodname" mode="java">
-
- <xsl:apply-templates mode="java"/>
- </xsl:template>
-
-
-
-
- <xsl:template match="methodparam" mode="java">
- <!-- PARAM: indent := 0 -->
- <xsl:param name="indent">0</xsl:param>
- <xsl:if test="position() &gt; 1">
- <xsl:text>,&RE;</xsl:text>
- <xsl:if test="$indent &gt; 0">
- <!-- RCAS FIXME: copy-string does not exist
- <xsl:call-template name="copy-string">
- <xsl:with-param name="string"> </xsl:with-param>
- <xsl:with-param name="count" select="$indent + 1"/>
- </xsl:call-template>
- -->
- </xsl:if>
- </xsl:if>
- <xsl:apply-templates mode="java"/>
- </xsl:template>
-
-
-
- <xsl:template match="parameter" mode="java">
- <xsl:apply-templates mode="java"/>
- </xsl:template>
-
- <xsl:template mode="java"
- match="constructorsynopsis|destructorsynopsis|methodsynopsis">
- <xsl:variable name="modifiers" select="modifier"/>
- <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
- <xsl:variable name="decl">
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="$modifiers" mode="java"/>
-
- <!-- type -->
- <xsl:if test="name($notmod[1]) != 'methodname'">
- <xsl:apply-templates select="$notmod[1]" mode="java"/>
- </xsl:if>
-
- <xsl:apply-templates select="methodname" mode="java"/>
- </xsl:variable>
-
-
- <xsl:copy-of select="$decl"/>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="methodparam" mode="java">
- <xsl:with-param name="indent" select="string-length($decl)"/>
- </xsl:apply-templates>
- <xsl:text>)</xsl:text>
- <xsl:if test="exceptionname">
- <xsl:text>&RE; throws </xsl:text>
- <xsl:apply-templates select="exceptionname" mode="java"/>
- </xsl:if>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <!-- ===== C++ ========================================================= -->
-
- <xsl:template match="classsynopsis" mode="cpp">
- <pre class="{name(.)}">
- <xsl:apply-templates select="ooclass[1]" mode="cpp"/>
- <xsl:if test="ooclass[position() &gt; 1]">
- <xsl:text>: </xsl:text>
- <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="cpp"/>
- <xsl:if test="oointerface|ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="oointerface">
- <xsl:text> implements</xsl:text>
- <xsl:apply-templates select="oointerface" mode="cpp"/>
- <xsl:if test="ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="ooexception">
- <xsl:text> throws</xsl:text>
- <xsl:apply-templates select="ooexception" mode="cpp"/>
- </xsl:if>
- <xsl:text> {&RE;&RE;</xsl:text>
- <xsl:apply-templates select="constructorsynopsis
- |destructorsynopsis
- |fieldsynopsis
- |methodsynopsis
- |classsynopsisinfo" mode="cpp"/>
- <xsl:text>}</xsl:text>
- </pre>
- </xsl:template>
-
- <xsl:template match="classsynopsisinfo" mode="cpp">
- <xsl:apply-templates mode="cpp"/>
- </xsl:template>
-
- <xsl:template match="ooclass|oointerface|ooexception" mode="cpp">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="modifier" mode="cpp">
-
- <xsl:apply-templates mode="cpp"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="classname" mode="cpp">
- <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="interfacename" mode="cpp">
- <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="exceptionname" mode="cpp">
- <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="fieldsynopsis" mode="cpp">
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="cpp"/>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <xsl:template match="type" mode="cpp">
-
- <xsl:apply-templates mode="cpp"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="varname" mode="cpp">
-
- <xsl:apply-templates mode="cpp"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="initializer" mode="cpp">
-
- <xsl:text>= </xsl:text>
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="void" mode="cpp">
-
- <xsl:text>void </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="methodname" mode="cpp">
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="methodparam" mode="cpp">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template match="parameter" mode="cpp">
-
- <xsl:apply-templates mode="cpp"/>
-
- </xsl:template>
-
- <xsl:template mode="cpp"
- match="constructorsynopsis|destructorsynopsis|methodsynopsis">
- <xsl:variable name="modifiers" select="modifier"/>
- <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
- <xsl:variable name="type">
- </xsl:variable>
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="$modifiers" mode="cpp"/>
-
- <!-- type -->
- <xsl:if test="name($notmod[1]) != 'methodname'">
- <xsl:apply-templates select="$notmod[1]" mode="cpp"/>
- </xsl:if>
-
- <xsl:apply-templates select="methodname" mode="cpp"/>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="methodparam" mode="cpp"/>
- <xsl:text>)</xsl:text>
- <xsl:if test="exceptionname">
- <xsl:text>&RE; throws </xsl:text>
- <xsl:apply-templates select="exceptionname" mode="cpp"/>
- </xsl:if>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <!-- ===== IDL ========================================================= -->
-
- <xsl:template match="classsynopsis" mode="idl">
- <pre class="{name(.)}">
- <xsl:text>interface </xsl:text>
- <xsl:apply-templates select="ooclass[1]" mode="idl"/>
- <xsl:if test="ooclass[position() &gt; 1]">
- <xsl:text>: </xsl:text>
- <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="idl"/>
- <xsl:if test="oointerface|ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="oointerface">
- <xsl:text> implements</xsl:text>
- <xsl:apply-templates select="oointerface" mode="idl"/>
- <xsl:if test="ooexception">
- <xsl:text>&RE; </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="ooexception">
- <xsl:text> throws</xsl:text>
- <xsl:apply-templates select="ooexception" mode="idl"/>
- </xsl:if>
- <xsl:text> {&RE;&RE;</xsl:text>
- <xsl:apply-templates select="constructorsynopsis
- |destructorsynopsis
- |fieldsynopsis
- |methodsynopsis
- |classsynopsisinfo" mode="idl"/>
- <xsl:text>}</xsl:text>
- </pre>
- </xsl:template>
-
- <xsl:template match="classsynopsisinfo" mode="idl">
- <xsl:apply-templates mode="idl"/>
- </xsl:template>
-
- <xsl:template match="ooclass|oointerface|ooexception" mode="idl">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="modifier" mode="idl">
-
- <xsl:apply-templates mode="idl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="classname" mode="idl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="interfacename" mode="idl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="exceptionname" mode="idl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="fieldsynopsis" mode="idl">
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="idl"/>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <xsl:template match="type" mode="idl">
-
- <xsl:apply-templates mode="idl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="varname" mode="idl">
-
- <xsl:apply-templates mode="idl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="initializer" mode="idl">
-
- <xsl:text>= </xsl:text>
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="void" mode="idl">
-
- <xsl:text>void </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="methodname" mode="idl">
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="methodparam" mode="idl">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template match="parameter" mode="idl">
-
- <xsl:apply-templates mode="idl"/>
-
- </xsl:template>
-
- <xsl:template mode="idl"
- match="constructorsynopsis|destructorsynopsis|methodsynopsis">
- <xsl:variable name="modifiers" select="modifier"/>
- <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
- <xsl:variable name="type">
- </xsl:variable>
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="$modifiers" mode="idl"/>
-
- <!-- type -->
- <xsl:if test="name($notmod[1]) != 'methodname'">
- <xsl:apply-templates select="$notmod[1]" mode="idl"/>
- </xsl:if>
-
- <xsl:apply-templates select="methodname" mode="idl"/>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="methodparam" mode="idl"/>
- <xsl:text>)</xsl:text>
- <xsl:if test="exceptionname">
- <xsl:text>&RE; raises(</xsl:text>
- <xsl:apply-templates select="exceptionname" mode="idl"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
-
-
-
-
- <!-- ===== Perl ======================================================== -->
-
- <xsl:template match="classsynopsis" mode="perl">
- <pre class="{name(.)}">
- <xsl:text>package </xsl:text>
- <xsl:apply-templates select="ooclass[1]" mode="perl"/>
- <xsl:text>;&RE;</xsl:text>
-
- <xsl:if test="ooclass[position() &gt; 1]">
- <xsl:text>@ISA = (</xsl:text>
- <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="perl"/>
- <xsl:text>);&RE;</xsl:text>
- </xsl:if>
-
- <xsl:apply-templates select="constructorsynopsis
- |destructorsynopsis
- |fieldsynopsis
- |methodsynopsis
- |classsynopsisinfo" mode="perl"/>
- </pre>
- </xsl:template>
-
- <xsl:template match="classsynopsisinfo" mode="perl">
- <xsl:apply-templates mode="perl"/>
- </xsl:template>
-
- <xsl:template match="ooclass|oointerface|ooexception" mode="perl">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="perl"/>
-
- </xsl:template>
-
- <xsl:template match="modifier" mode="perl">
-
- <xsl:apply-templates mode="perl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="classname" mode="perl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="perl"/>
-
- </xsl:template>
-
- <xsl:template match="interfacename" mode="perl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="perl"/>
-
- </xsl:template>
-
- <xsl:template match="exceptionname" mode="perl">
- <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
-
- <xsl:apply-templates mode="perl"/>
-
- </xsl:template>
-
- <xsl:template match="fieldsynopsis" mode="perl">
-
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="perl"/>
- <xsl:text>;</xsl:text>
-
- </xsl:template>
-
- <xsl:template match="type" mode="perl">
-
- <xsl:apply-templates mode="perl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="varname" mode="perl">
-
- <xsl:apply-templates mode="perl"/>
- <xsl:text> </xsl:text>
-
- </xsl:template>
-
- <xsl:template match="initializer" mode="perl">
-
- <xsl:text>= </xsl:text>
- <xsl:apply-templates mode="perl"/>
-
- </xsl:template>
-
- <xsl:template match="void" mode="perl">
-
- <xsl:text>void </xsl:text>
-
- </xsl:template>
-
-
-
- <xsl:template match="methodname" mode="perl">
- <xsl:apply-templates mode="perl"/>
- </xsl:template>
-
- <xsl:template match="methodparam" mode="perl">
- <xsl:if test="position() &gt; 1"> <xsl:text>, </xsl:text> </xsl:if>
- <xsl:apply-templates mode="perl"/>
- </xsl:template>
-
-
- <xsl:template match="parameter" mode="perl">
- <xsl:apply-templates mode="perl"/>
- </xsl:template>
-
-
- <xsl:template mode="perl" match="constructorsynopsis|destructorsynopsis|methodsynopsis">
- <xsl:variable name="modifiers" select="modifier"/>
- <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
- <xsl:variable name="type"> </xsl:variable>
-
- <xsl:text>sub </xsl:text>
-
- <xsl:apply-templates select="methodname" mode="perl"/>
- <xsl:text> { ... };</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/synop-struct.mod.xsl b/docs/docbook/xslt/db2latex/synop-struct.mod.xsl
deleted file mode 100644
index 1ffe2fc4634..00000000000
--- a/docs/docbook/xslt/db2latex/synop-struct.mod.xsl
+++ /dev/null
@@ -1,246 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
- <xsl:template match="synopsis">
- <xsl:call-template name="label.id"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="cmdsynopsis">
- <xsl:call-template name="label.id"/>
- <xsl:text>&#10;\begin{list}{}{\setlength{\itemindent}{-\leftmargin}\setlength{\parsep}{0mm}}&#10;</xsl:text>
- <xsl:if test="@label!=''">
- <xsl:text>\item\textbf{</xsl:text>
- <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="@label"/></xsl:call-template>
- <xsl:text>}&#10;</xsl:text>
- </xsl:if>
- <xsl:text>\item\raggedright\texttt{</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}&#10;</xsl:text>
- <xsl:text>\end{list}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="cmdsynopsis/command">
- <xsl:apply-templates />
- </xsl:template>
-
-
- <xsl:template match="cmdsynopsis//replaceable" priority="2">
- <xsl:text>{\itshape </xsl:text>
- <xsl:apply-templates />
- <xsl:text>}</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="group|arg">
- <xsl:variable name="choice" select="@choice"/>
- <xsl:variable name="rep" select="@rep"/>
- <xsl:variable name="sepchar">
- <xsl:choose>
- <xsl:when test="ancestor-or-self::*/@sepchar">
- <xsl:value-of select="ancestor-or-self::*/@sepchar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if>
- <xsl:choose>
- <xsl:when test="$choice='plain'">
- <xsl:value-of select="$arg.choice.plain.open.str"/>
- </xsl:when>
- <xsl:when test="$choice='req'">
- <xsl:value-of select="$arg.choice.req.open.str"/>
- </xsl:when>
- <xsl:when test="$choice='opt'">
- <xsl:value-of select="$arg.choice.opt.open.str"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$arg.choice.def.open.str"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="$rep='repeat'">
- <xsl:value-of select="$arg.rep.repeat.str"/>
- </xsl:when>
- <xsl:when test="$rep='norepeat'">
- <xsl:value-of select="$arg.rep.norepeat.str"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$arg.rep.def.str"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$choice='plain'">
- <xsl:value-of select="$arg.choice.plain.close.str"/>
- </xsl:when>
- <xsl:when test="$choice='req'">
- <xsl:value-of select="$arg.choice.req.close.str"/>
- </xsl:when>
- <xsl:when test="$choice='opt'">
- <xsl:value-of select="$arg.choice.opt.close.str"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$arg.choice.def.close.str"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="group/arg">
- <xsl:variable name="choice" select="@choice"/>
- <xsl:variable name="rep" select="@rep"/>
- <xsl:if test="position()>1"><xsl:value-of select="$arg.or.sep"/></xsl:if>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="sbr">
- <xsl:text>&#10;</xsl:text>
- </xsl:template>
-
- <!-- ==================================================================== -->
-
- <xsl:template match="synopfragmentref">
- <!-- VAR target : -->
- <xsl:variable name="target" select="id(@linkend)"/>
- <!-- VAR snum : -->
- <xsl:variable name="snum">
- <xsl:apply-templates select="$target" mode="synopfragment.number"/>
- </xsl:variable>
-
- <xsl:text> {\em (</xsl:text> <xsl:value-of select="$snum"/> <xsl:text>) }</xsl:text>
- </xsl:template>
-
- <xsl:template match="synopfragment" mode="synopfragment.number">
- <xsl:number format="1"/>
- </xsl:template>
-
- <xsl:template match="synopfragment">
- <xsl:variable name="snum">
- <xsl:apply-templates select="." mode="synopfragment.number"/>
- </xsl:variable>
- <p>
- <a name="#{@id}">
- <xsl:text>(</xsl:text>
- <xsl:value-of select="$snum"/>
- <xsl:text>)</xsl:text>
- </a>
- <xsl:text> </xsl:text>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
-
- <xsl:template match="funcsynopsis">
- <xsl:call-template name="informal.object"/>
- </xsl:template>
-
-
- <xsl:template match="funcsynopsisinfo">
- <xsl:call-template name="verbatim.apply.templates"/>
- </xsl:template>
-
-
- <xsl:template match="funcprototype">
- <xsl:apply-templates/>
- <xsl:if test="$funcsynopsis.style='kr'">
- <xsl:apply-templates select="./paramdef" mode="kr-funcsynopsis-mode"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="funcdef">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="funcdef/function">
- <xsl:choose>
- <xsl:when test="$funcsynopsis.decoration != 0">
- <xsl:text>\textbf{ </xsl:text><xsl:apply-templates/><xsl:text> } </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="void">
- <xsl:choose>
- <xsl:when test="$funcsynopsis.style='ansi'">
- <xsl:text>(void);</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>();</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="varargs">
- <xsl:text>( ... );</xsl:text>
- </xsl:template>
-
- <xsl:template match="paramdef">
- <!-- VAR paramnum -->
- <xsl:variable name="paramnum"> <xsl:number count="paramdef" format="1"/> </xsl:variable>
-
- <xsl:if test="$paramnum=1">(</xsl:if>
- <xsl:choose>
- <xsl:when test="$funcsynopsis.style='ansi'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="./parameter"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="following-sibling::paramdef">
- <xsl:text>, </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>);</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <xsl:template match="paramdef/parameter">
- <xsl:choose>
- <xsl:when test="$funcsynopsis.decoration != 0">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="following-sibling::parameter">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:template>
-
-
-
- <xsl:template match="paramdef" mode="kr-funcsynopsis-mode">
- \newline
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:template>
-
- <xsl:template match="funcparams">
- <xsl:text>(</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>)</xsl:text>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/table.mod.xsl b/docs/docbook/xslt/db2latex/table.mod.xsl
deleted file mode 100644
index 0edb4ad2cc4..00000000000
--- a/docs/docbook/xslt/db2latex/table.mod.xsl
+++ /dev/null
@@ -1,743 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="table" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <firstname>Ramon</firstname> <surname>Casellas</surname>
- <firstname>James</firstname> <surname>Devenish</surname>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>Tables <filename>table.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="table|informaltable" xmlns="">
- <refpurpose>XSL template for docbook tables. </refpurpose>
- <refdescription>
- <para></para>
- <formalpara><title>Remarks and Bugs</title>
- <itemizedlist>
- </itemizedlist>
- </formalpara>
- <formalpara><title>Default Behaviour</title>
- <screen></screen>
- </formalpara>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="table">
- <xsl:variable name="placement">
- <xsl:call-template name="generate.formal.title.placement">
- <xsl:with-param name="object" select="local-name(.)" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="caption">
- <xsl:text>\caption{</xsl:text>
- <xsl:apply-templates select="title" mode="caption.mode"/>
- <xsl:text>}&#10;</xsl:text>
- </xsl:variable>
- <xsl:call-template name="map.begin"/>
- <xsl:if test="$placement='before'">
- <xsl:text>\captionswapskip{}</xsl:text>
- <xsl:value-of select="$caption" />
- <xsl:text>\captionswapskip{}</xsl:text>
- </xsl:if>
- <xsl:apply-templates/>
- <xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
- <xsl:template match="table/title"/>
- <xsl:template match="table/title" mode="caption.mode"><xsl:apply-templates /></xsl:template>
-
- <xsl:template match="informaltable">
- <xsl:call-template name="map.begin"/>
- <xsl:apply-templates/>
- <xsl:call-template name="map.end"/>
- </xsl:template>
-
-
- <xsl:template name="table.format.tabularx">
- <xsl:param name="cols" select="1"/>
- <xsl:param name="i" select="1"/>
- <xsl:param name="colsep" select="1"/>
- <!-- sum of numeric portions in 1*-like colwidths -->
- <xsl:param name="starfactor" select="0"/>
- <xsl:choose>
- <!-- Out of the recursive iteration -->
- <xsl:when test="$i > $cols"></xsl:when>
- <!-- There are still columns to count -->
- <xsl:otherwise>
- <xsl:variable name="width">
- <xsl:variable name="userchoice" select="colspec[@colnum=$i]/@colwidth"/>
- <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/>
- <xsl:choose>
- <xsl:when test="string-length($userchoice)=0 and count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)&gt;0">
- <!-- In these specific circumstances, we MUST use a line-wrapped column
- and yet the user hasn't specified one. -->
- <xsl:value-of select="'1*'"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- In the general case, we just do what the user wants (may even
- have no pre-specified width). -->
- <xsl:value-of select="$userchoice"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Try to take heed of colspecs -->
- <xsl:choose>
- <xsl:when test="$width!=''">
- <xsl:text>&gt;{</xsl:text>
- <xsl:if test="contains($width,'*')">
- <!-- see tabularx documentation -->
- <xsl:text>\hsize=</xsl:text>
- <xsl:value-of select="substring-before($width,'*') * $starfactor" />
- <xsl:text>\hsize</xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>\RaggedRight</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>\RaggedLeft</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>\Centering</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when>
- </xsl:choose>
- <xsl:text>}</xsl:text>
- <xsl:choose>
- <xsl:when test="contains($width,'*')">
- <xsl:text>X</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>p{</xsl:text><xsl:value-of select="$width" /><xsl:text>}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$i&lt;$cols and $colsep='1'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>X</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when>
- <xsl:otherwise><xsl:text>c</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$i&lt;$cols and $colsep='1'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Recursive for next column -->
- <xsl:call-template name="table.format.tabularx">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="starfactor" select="$starfactor"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <!-- FIX THIS -->
- <xsl:template name="table.format.tabular">
- <xsl:param name="cols" select="1"/>
- <xsl:param name="i" select="1"/>
- <xsl:param name="colsep" select="1"/>
- <xsl:choose>
- <!-- Out of the recursive iteration -->
- <xsl:when test="$i > $cols"></xsl:when>
- <!-- There are still columns to count -->
- <xsl:otherwise>
- <!-- Try to take heed of colspecs -->
- <xsl:choose>
- <!-- RC 2003/03/19 : Added first 'test' : colspec[@colnum=$i] for xsltproc
- Before this patch, parsing the doc with xsltproc the xsl:when clause
- was evaluated to 'true' even if there was no colspec for the column
- -->
- <xsl:when test="colspec[@colnum=$i] and colspec[@colnum=$i]/@colwidth!='' and not(contains(colspec[@colnum=$i]/@colwidth,'*'))">
- <xsl:choose>
- <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>&gt;{\RaggedRight}</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>&gt;{\RaggedLeft}</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>&gt;{\Centering}</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when>
- </xsl:choose>
- <xsl:text>p{</xsl:text><xsl:value-of select="colspec[@colnum=$i]/@colwidth" /><xsl:text>}</xsl:text>
- <xsl:if test="$i&lt;$cols and $colsep='1'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>l</xsl:text></xsl:when>
- <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when>
- <xsl:otherwise><xsl:text>c</xsl:text></xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$i&lt;$cols and $colsep='1'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Recursive for next column -->
- <xsl:call-template name="table.format.tabular">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <!-- See tabularx documentation. -->
- <!-- For example, if we have a 1* column and a 3* column, then the
- the hsizes for each column are (1/(1+3)*2) and (3/(1+3)*2).
- The ratio of these to the star values (star values being 1 and 3)
- is 2/(1+3).
- BUT it is now very complicated because it takes into account columns
- where the user has not specified a width but LaTeX requires a
- fixed-width column (i.e. specialcols may vary).
- Relies on there being (a) colspecs for every column or (b) no
- colspecs.
- -->
- <xsl:template name="generate.starfactor">
- <xsl:param name="i" select="1"/>
- <xsl:param name="cols" select="count(colspec)"/>
- <xsl:param name="sum" select="0"/>
- <xsl:param name="specialcols" select="count(colspec[contains(@colwidth,'*')])"/>
- <xsl:choose>
- <xsl:when test="$i&lt;=$cols and colspec[position()=$i and contains(@colwidth,'*')]">
- <!-- a * column -->
- <xsl:call-template name="generate.starfactor">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="sum" select="$sum+substring-before(colspec[$i]/@colwidth,'*')"/>
- <xsl:with-param name="specialcols" select="$specialcols"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$i&lt;=$cols">
- <!-- not a * column, but we are going to pretend that it is -->
- <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/>
- <xsl:variable name="problems" select="count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)"/>
- <xsl:choose>
- <xsl:when test="$problems &gt; 0">
- <xsl:call-template name="generate.starfactor">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="sum" select="$sum+1"/>
- <xsl:with-param name="specialcols" select="$specialcols+1"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.starfactor">
- <xsl:with-param name="i" select="$i+1"/>
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="sum" select="$sum"/>
- <xsl:with-param name="specialcols" select="$specialcols"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$specialcols div $sum"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="tgroup">
- <xsl:variable name="align" select="@align"/>
- <xsl:variable name="frame">
- <xsl:choose>
- <xsl:when test="string-length(../@frame)&lt;1">all</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="../@frame"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="colspecs" select="./colspec"/>
- <xsl:variable name="usex">
- <xsl:choose>
- <!-- if there are lists within cells, we need tabularx -->
- <xsl:when test="$latex.use.tabularx=1 and (descendant::itemizedlist|descendant::orderedlist|descendant::variablelist)">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <!-- if there are instances of 1*-style colwidths, we need tabularx -->
- <xsl:when test="$latex.use.tabularx=1 and contains(colspec/@colwidth,'*')">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <!-- if there are colspecs with 'justify' alignment and no explicit width, we need tabularx -->
- <xsl:when test="$latex.use.tabularx=1 and count(colspec[@align='justify'])&gt;0">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>0</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="useminipage">
- <!-- Hack to get around LaTeX issue with tabular (not necessary with tabularx).
- This is NOT a good solution, and has problems of its own, but at least the footnotes
- do not actually disappear (which is what would otherwise happen). -->
- <xsl:if test="count(.//footnote)!=0">1</xsl:if>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$usex='1'">
- <xsl:text>\begin{tabularx}{\linewidth}{</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$useminipage='1'"><xsl:text>\begin{minipage}{\linewidth}&#10;</xsl:text></xsl:if>
- <xsl:text>\begin{tabular}{</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$frame='all' or $frame='sides'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$usex=1">
- <xsl:call-template name="table.format.tabularx">
- <xsl:with-param name="cols" select="@cols"/>
- <xsl:with-param name="starfactor">
- <xsl:call-template name="generate.starfactor">
- <xsl:with-param name="cols" select="@cols"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="table.format.tabular">
- <xsl:with-param name="cols" select="@cols"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$frame='all' or $frame='sides'">
- <xsl:text>|</xsl:text>
- </xsl:if>
- <xsl:text>}&#10;</xsl:text>
- <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='bottom'">
- <xsl:text>\hline &#10;</xsl:text>
- </xsl:if>
- <!-- APPLY TEMPLATES -->
- <xsl:apply-templates/>
- <!-- -->
- <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='top'">
- <xsl:text>\hline &#10;</xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$usex=1">
- <xsl:text>\end{tabularx}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\end{tabular}&#10;</xsl:text>
- <xsl:if test="$useminipage='1'"><xsl:text>\end{minipage}&#10;</xsl:text></xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <!--
- <xsl:template name="generate.col">
- <xsl:param name="countcol">1</xsl:param>
- </xsl:template>
- -->
-
- <xsl:template match="colspec"></xsl:template>
- <xsl:template match="spanspec"></xsl:template>
-
-
-
-
- <xsl:template match="thead|tfoot">
- <xsl:if test="@align">
- <xsl:attribute name="align">
- <xsl:value-of select="@align"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@char">
- <xsl:attribute name="char">
- <xsl:value-of select="@char"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@charoff">
- <xsl:attribute name="charoff">
- <xsl:value-of select="@charoff"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@valign">
- <xsl:attribute name="valign">
- <xsl:value-of select="@valign"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="thead/row/entry|tfoot/row/entry">
- <xsl:call-template name="latex.entry.prealign"/>
- <xsl:call-template name="latex.thead.row.entry"/>
- <xsl:call-template name="latex.entry.postalign"/>
- <xsl:choose>
- <xsl:when test="position()=last()"><xsl:text> \tabularnewline&#10;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="tbody">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="row">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="tbody/row|thead/row|tfoot/row">
- <xsl:apply-templates/>
- <!-- The rule below the last row in the table is controlled by the
- Frame attribute of the enclosing Table or InformalTable and the RowSep
- of the last row is ignored. If unspecified, this attribute is
- inherited from enclosing elements, rowsep=1 by default. -->
- <xsl:variable name="parent_position" select="count(../preceding-sibling::node())+1"/>
- <xsl:variable name="grandparent_children" select="count(../../child::node())"/>
- <xsl:if test="(count(@rowsep)=0 or @rowsep='1') and (position() != last() or $parent_position &lt; $grandparent_children)">
- <xsl:text> \hline &#10;</xsl:text>
- </xsl:if>
- </xsl:template>
-
-
- <xsl:template match="tbody/row/entry">
- <xsl:call-template name="latex.entry.prealign"/>
- <xsl:apply-templates/>
- <xsl:call-template name="latex.entry.postalign"/>
- <xsl:choose>
- <xsl:when test="position()=last()"><xsl:text> \tabularnewline&#10;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="latex.entry.prealign">
- <xsl:variable name="span">
- <xsl:choose>
- <xsl:when test="@spanname!=''">
- <xsl:call-template name="calculate.colspan">
- <xsl:with-param name="namest" select="../../../spanspec[@spanname=@spanname]/@namest"/>
- <xsl:with-param name="nameend" select="../../../spanspec[@spanname=@spanname]/@nameend"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="@namest!=''">
- <xsl:call-template name="calculate.colspan"/>
- </xsl:when>
- <xsl:otherwise>-1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="$span &gt; 1">
- <xsl:text>\multicolumn{</xsl:text>
- <xsl:value-of select="$span"/>
- <xsl:text>|}{</xsl:text><!-- TODO take heed of @colsep -->
- <xsl:choose>
- <xsl:when test="@align='left'"><xsl:text>l</xsl:text></xsl:when>
- <xsl:when test="@align='right'"><xsl:text>r</xsl:text></xsl:when>
- <xsl:when test="@align='center'"><xsl:text>c</xsl:text></xsl:when>
- <xsl:when test="@align='char'">c<xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when>
- <xsl:otherwise>c</xsl:otherwise>
- </xsl:choose>
- <!-- use this as a hook for some general warnings -->
- <xsl:text>}</xsl:text>
- </xsl:if>
- <!-- this is used when the entry's align spec wants to override the column default -->
- <xsl:if test="$span &lt; 1">
- <xsl:choose>
- <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignll </xsl:text></xsl:when>
- <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrl </xsl:text></xsl:when>
- <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncl </xsl:text></xsl:when>
- <xsl:when test="@align='char'"><xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when>
- </xsl:choose>
- </xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:if test="@rotate='1'">
- <xsl:text>\rotatebox{90}</xsl:text>
- <xsl:if test="@align!=''"><xsl:message>entry[@rotate='1' and @align!=''] probably doesn't work.</xsl:message></xsl:if>
- </xsl:if>
- <xsl:text>{</xsl:text>
- <!-- use this as a hook for some general warnings -->
- <xsl:if test="@morerows!=''"><xsl:message>The morerows attribute is not supported.</xsl:message></xsl:if>
- </xsl:template>
-
- <xsl:template name="latex.entry.postalign">
- <xsl:text>}}</xsl:text>
- <!-- this is used when the entry's align spec wants to override the column default -->
- <xsl:if test="@namest='' and @spanspec=''"><!-- TODO improve -->
- <xsl:choose>
- <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignlr </xsl:text></xsl:when>
- <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrr </xsl:text></xsl:when>
- <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncr </xsl:text></xsl:when>
- </xsl:choose>
- </xsl:if>
- </xsl:template>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <xsl:template name="process.cell">
- <xsl:param name="cellgi">td</xsl:param>
- <xsl:variable name="empty.cell" select="count(node()) = 0"/>
-
- <xsl:element name="{$cellgi}">
- <xsl:if test="@morerows">
- <xsl:attribute name="rowspan">
- <xsl:value-of select="@morerows+1"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@namest">
- <xsl:attribute name="colspan">
- <xsl:call-template name="calculate.colspan"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@align">
- <xsl:attribute name="align">
- <xsl:value-of select="@align"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@char">
- <xsl:attribute name="char">
- <xsl:value-of select="@char"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@charoff">
- <xsl:attribute name="charoff">
- <xsl:value-of select="@charoff"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@valign">
- <xsl:attribute name="valign">
- <xsl:value-of select="@valign"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="$empty.cell">
- <xsl:text>&#160;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:template>
-
- <xsl:template name="generate.colgroup">
- <xsl:param name="cols" select="1"/>
- <xsl:param name="count" select="1"/>
- <xsl:choose>
- <xsl:when test="$count>$cols"></xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.col">
- <xsl:with-param name="countcol" select="$count"/>
- </xsl:call-template>
- <xsl:call-template name="generate.colgroup">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="generate.col">
- <xsl:param name="countcol">1</xsl:param>
- <xsl:param name="colspecs" select="./colspec"/>
- <xsl:param name="count">1</xsl:param>
- <xsl:param name="colnum">1</xsl:param>
-
- <xsl:choose>
- <xsl:when test="$count>count($colspecs)">
- <col/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="colspec" select="$colspecs[$count=position()]"/>
- <xsl:variable name="colspec.colnum">
- <xsl:choose>
- <xsl:when test="$colspec/@colnum">
- <xsl:value-of select="$colspec/@colnum"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colnum"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$colspec.colnum=$countcol">
- <col>
- <xsl:if test="$colspec/@align">
- <xsl:attribute name="align">
- <xsl:value-of select="$colspec/@align"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$colspec/@char">
- <xsl:attribute name="char">
- <xsl:value-of select="$colspec/@char"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$colspec/@charoff">
- <xsl:attribute name="charoff">
- <xsl:value-of select="$colspec/@charoff"/>
- </xsl:attribute>
- </xsl:if>
- </col>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.col">
- <xsl:with-param name="countcol" select="$countcol"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="count" select="$count+1"/>
- <xsl:with-param name="colnum">
- <xsl:choose>
- <xsl:when test="$colspec/@colnum">
- <xsl:value-of select="$colspec/@colnum + 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colnum + 1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:template>
-
- <xsl:template name="colspec.colnum">
- <!-- when this macro is called, the current context must be an entry -->
- <xsl:param name="colname"></xsl:param>
- <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup -->
- <xsl:param name="colspecs" select="../../../../tgroup/colspec"/>
- <xsl:param name="count">1</xsl:param>
- <xsl:param name="colnum">1</xsl:param>
- <xsl:choose>
- <xsl:when test="$count>count($colspecs)"></xsl:when>
- <xsl:otherwise>
- <xsl:variable name="colspec" select="$colspecs[$count=position()]"/>
- <!--
- <xsl:value-of select="$count"/>:
- <xsl:value-of select="$colspec/@colname"/>=
- <xsl:value-of select="$colnum"/>
- -->
- <xsl:choose>
- <xsl:when test="$colspec/@colname=$colname">
- <xsl:choose>
- <xsl:when test="$colspec/@colnum">
- <xsl:value-of select="$colspec/@colnum"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colnum"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="colspec.colnum">
- <xsl:with-param name="colname" select="$colname"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="count" select="$count+1"/>
- <xsl:with-param name="colnum">
- <xsl:choose>
- <xsl:when test="$colspec/@colnum">
- <xsl:value-of select="$colspec/@colnum + 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colnum + 1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="colspec.colwidth">
- <!-- when this macro is called, the current context must be an entry -->
- <xsl:param name="colname"></xsl:param>
- <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup -->
- <xsl:param name="colspecs" select="../../../../tgroup/colspec"/>
- <xsl:param name="count">1</xsl:param>
- <xsl:choose>
- <xsl:when test="$count>count($colspecs)"></xsl:when>
- <xsl:otherwise>
- <xsl:variable name="colspec" select="$colspecs[$count=position()]"/>
- <xsl:choose>
- <xsl:when test="$colspec/@colname=$colname">
- <xsl:value-of select="$colspec/@colwidth"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="colspec.colwidth">
- <xsl:with-param name="colname" select="$colname"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="count" select="$count+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="calculate.colspan">
- <xsl:param name="namest" select="@namest"/>
- <xsl:param name="nameend" select="@nameend"/>
- <xsl:variable name="scol">
- <xsl:call-template name="colspec.colnum">
- <xsl:with-param name="colname" select="$namest"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="ecol">
- <xsl:call-template name="colspec.colnum">
- <xsl:with-param name="colname" select="$nameend"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$ecol - $scol + 1"/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/texmath.mod.xsl b/docs/docbook/xslt/db2latex/texmath.mod.xsl
deleted file mode 100644
index 47036c56aca..00000000000
--- a/docs/docbook/xslt/db2latex/texmath.mod.xsl
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="texmath" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>LaTeX Only Commands <filename>texmath.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
-
- <xsl:template match="alt">
- <xsl:choose>
- <xsl:when test="ancestor::inlineequation and (@role='tex' or @role='latex' or $latex.alt.is.latex='1')">
- <xsl:text>\ensuremath{</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:when test="ancestor::equation|ancestor::informalequation and (@role='tex' or @role='latex' or $latex.alt.is.latex='1')">
- <xsl:text>\begin{displaymath}</xsl:text>
- <xsl:call-template name="label.id"/>
- <xsl:value-of select="."/>
- <xsl:text>\end{displaymath}&#10;</xsl:text>
- </xsl:when>
- <xsl:when test="$latex.alt.is.latex='1'">
- <xsl:value-of select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="latex|tex">
- <xsl:value-of select="."/>
- </xsl:template>
-
- <xsl:template match="latex[@fileref]">
- <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="tex[@fileref]">
- <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="tm[@fileref]">
- <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="tm[@tex]">
- <xsl:value-of select="@tex"/>
- </xsl:template>
-
- <xsl:template match="inlinetm[@fileref]">
- <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>}&#10;</xsl:text>
- </xsl:template>
-
- <xsl:template match="inlinetm[@tex]">
- <xsl:value-of select="@tex"/>
- </xsl:template>
-
-
- <xsl:template match="inlineequation">
- <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|inlinemediaobject/textobject[@role='tex' or @role='latex']|inlinemediaobject/textobject/phrase[@role='tex' or @role='latex']" />
- <xsl:choose>
- <xsl:when test="$tex">
- <xsl:apply-templates select="$tex"/>
- </xsl:when>
- <xsl:when test="alt and $latex.alt.is.preferred='1'">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:when test="inlinemediaobject">
- <xsl:apply-templates select="inlinemediaobject"/>
- </xsl:when>
- <xsl:when test="alt">
- <xsl:apply-templates select="alt"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="graphic"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/vars.mod.xsl b/docs/docbook/xslt/db2latex/vars.mod.xsl
deleted file mode 100644
index e20fb59ce29..00000000000
--- a/docs/docbook/xslt/db2latex/vars.mod.xsl
+++ /dev/null
@@ -1,937 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: User and stylesheets XSL variables
-+ ############################################################################## -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <doc:reference id="vars" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author><surname>Casellas</surname><firstname>Ramon</firstname></author>
- <author><surname>Devenish</surname><firstname>James</firstname></author>
- </authorgroup>
- <copyright>
- <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
-
- <title>XSL Variables and Parameters</title>
-
- <partintro>
- <section><title>Introduction</title>
-
- <para>This is technical reference documentation for the DocBook XSL
- Stylesheets. It documents (some of) the parameters, templates, and
- other elements of the stylesheets.</para>
- </section>
- </partintro>
- </doc:reference>
-
-
- <!--#############################################################################
- | COMMON VARIABLES
- |- #############################################################################
- |
- + ############################################################################## -->
- <xsl:variable name="default-classsynopsis-language">java</xsl:variable>
-
- <xsl:variable name="author.othername.in.middle" select="1"/>
- <xsl:variable name="refentry.xref.manvolnum" select="1"/>
- <xsl:variable name="funcsynopsis.style">kr</xsl:variable>
- <xsl:variable name="funcsynopsis.decoration" select="1"/>
- <xsl:variable name="function.parens">0</xsl:variable>
- <xsl:variable name="refentry.generate.name" select="1"/>
-
- <doc:param name="show.comments" xmlns="">
- <refpurpose> Display <sgmltag class="element">comment</sgmltag> elements? </refpurpose>
- <refdescription>
- <para>Control the display of <sgmltag class="element">comment</sgmltag>s and <sgmltag class="element">remark</sgmltag>s.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="show.comments" select="1"/>
-
- <xsl:variable name="section.autolabel" select="1"/>
- <xsl:variable name="section.label.includes.component.label" select="0"/>
- <xsl:variable name="chapter.autolabel" select="1"/>
- <xsl:variable name="preface.autolabel" select="0"/>
- <xsl:variable name="part.autolabel" select="1"/>
- <xsl:variable name="qandadiv.autolabel" select="1"/>
- <xsl:variable name="autotoc.label.separator" select="'. '"/>
- <xsl:variable name="qanda.inherit.numeration" select="1"/>
- <xsl:variable name="qanda.defaultlabel">number</xsl:variable>
- <xsl:param name="biblioentry.item.separator">, </xsl:param>
- <doc:param name="toc.section.depth" xmlns="">
- <refpurpose> Cull table-of-contents entries that are deeply nested </refpurpose>
- <refdescription>
- <para>Specifies the maximum depth before sections are omitted from the table of contents.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="toc.section.depth">4</xsl:param>
-
- <doc:param name="section.depth" xmlns="">
- <refpurpose> Control the automatic numbering of section, parts, and chapters </refpurpose>
- <refdescription>
- <para>
- Specifies the maximum depth before sections cease to be uniquely numbered.
- This is passed to LaTeX using the <literal>secnumdepth</literal> counter.
- Therefore, it is possible to use a value of <quote>0</quote> (zero) to disable section numbering.
- A value of <quote>-1</quote> will disable the numbering of parts and chapters, too.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="section.depth">4</xsl:param>
- <xsl:variable name="graphic.default.extension"></xsl:variable>
- <xsl:variable name="check.idref">1</xsl:variable>
- <!--
- <xsl:variable name="link.mailto.url"></xsl:variable>
- <xsl:variable name="toc.list.type">dl</xsl:variable>
- -->
-
- <doc:param name="use.role.for.mediaobject" xmlns="">
- <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose>
- <refdescription>
- <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">figure</sgmltag> contains
- multiple <sgmltag class="element">mediaobject</sgmltag>s. When enabled, DB2LaTeX will choose
- the mediaobject with the "LaTeX" or "TeX" role, if present. Otherwise, the first mediaobject
- is chosen.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="use.role.for.mediaobject">1</xsl:param>
-
- <doc:param name="preferred.mediaobject.role" xmlns="">
- <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose>
- <refdescription>
- <para>When <xref linkend="param.use.role.for.mediaobject"/> is enabled, this variable
- can be used to specify the mediaobject role that your document uses for LaTeX output.
- DB2LaTeX will try to use this role before using the "LaTeX" or "TeX" roles.
- For example, some authors may choose to set this to "PDF".</para>
- </refdescription>
- </doc:param>
- <xsl:param name="preferred.mediaobject.role"></xsl:param>
-
- <doc:param name="formal.title.placement" xmlns="">
- <refpurpose> Specifies where formal object titles should occur </refpurpose>
- <refdescription>
- <para>
- Titles for the formal object types (figure, example, quation, table, and procedure)
- can be placed before or after those objects. The keyword <quote>before</quote>
- is recognised. All other strings qualify as <quote>after</quote>.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="formal.title.placement">
- figure not_before
- example before
- equation not_before
- table before
- procedure before
- </xsl:param>
-
- <doc:param name="insert.xref.page.number" xmlns="">
- <refpurpose> Control the appearance of page numbers in cross references </refpurpose>
- <refdescription>
- <para>
- When enabled, <sgmltag class="element">xref</sgmltag>s will include page
- numbers after their generated cross-reference text.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="insert.xref.page.number">0</xsl:param>
-
- <doc:param name="ulink.show" xmlns="">
- <refpurpose> Control the display of URLs after ulinks </refpurpose>
- <refdescription>
- <para>
- When this option is enabled, and a ulink has a URL that is different
- from the displayed content, the URL will be typeset after the content.
- If the URL and content are identical, only one of them will appear.
- Otherwise, the URL is hyperlinked and the content is not.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="ulink.show">0</xsl:param>
-
- <doc:param name="ulink.footnotes" xmlns="">
- <refpurpose> Control the generation of footnotes for ulinks </refpurpose>
- <refdescription>
- <para>
- When this option is enabled, a ulink that has content different to its
- URL will have an associated footnote. The contents of the footnote
- will be the URL. If the ulink is within a footnote, the URL is shown
- after the content.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="ulink.footnotes">0</xsl:param>
-
- <!--#############################################################################
- | LaTeX VARIABLES
- |- #############################################################################
- |
- | PURPOSE: User and stylesheets XSL variables
- + ############################################################################## -->
-
- <doc:param name="latex.override" xmlns="">
- <refpurpose> Override DB2LaTeX's preamble with a custom preamble. </refpurpose>
- <refdescription>
- <para>
- When this variable is set, the entire DB2LaTeX premable will be superseded.
- <emphasis>You should not normally need or want to use this.</emphasis>
- It may cause LaTeX typesetting problems. This is a last resort or
- <quote>expert</quote> feature.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.override"></xsl:param>
-
- <doc:param name="latex.entities" xmlns="">
- <refpurpose> Control Unicode character handling. </refpurpose>
- <refdescription>
- <para>
- Normally, XSLT processors will convert SGML character entities into
- Unicode characters and DB2LaTeX doesn't have much chance to do anything
- toward converting them to LaTeX equivalents. We do not yet know how we
- can solve this problem best.
- </para>
- <para>
- Proposed values: 'catcode', 'unicode', 'extension'.
- Currently only 'catcode' is supported. All other values will
- cause no special handling except for certain mappings in MathML.
- In future, perhaps the 'unicode' LaTeX package could be of assistance.
- 'Extension' could be an XSLT extension that handles the characters
- using a mapping table.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.entities"></xsl:param>
-
- <doc:param name="latex.alt.is.latex" xmlns="">
- <refpurpose> Control the escaping of <sgmltag class="element">alt</sgmltag> text </refpurpose>
- <refdescription>
- <para>
- Text within <sgmltag class="element">alt</sgmltag> elements is assumed to
- be valid LaTeX and is passed through unescaped by default. If this is not
- appropriate for your document, set this variable to something other than
- '1'.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.alt.is.latex">1</xsl:param>
-
- <doc:param name="latex.alt.is.preferred" xmlns="">
- <refpurpose> Control the use of <sgmltag class="element">alt</sgmltag> text </refpurpose>
- <refdescription>
- <para>
- By default, DB2LaTeX assumes that <sgmltag class="element">alt</sgmltag>
- text should be typeset in preference to any
- <sgmltag class="element">mediaobject</sgmltag>s.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.alt.is.preferred">1</xsl:param>
-
- <!--
- <doc:variable name="latex.figure.position" xmlns="">
- <refpurpose> How to place floats. </refpurpose>
- <refdescription>
- <para>
- This variable is used as the positioning argument for floats.
- In future, this may be replaced by a dynamic mechanism that can
- honour DocBook placement attributes.
- </para>
- </refdescription>
- </doc:variable>
- <xsl:variable name="latex.figure.position">[hbt]</xsl:variable>
- -->
-
- <doc:param name="latex.apply.title.templates" xmlns="">
- <refpurpose> Whether to apply templates for section titles. </refpurpose>
- <refdescription>
- <para>
- Controls whether section titles will be generated by
- applying templates or by conversion to string values.
- When enabled, templates will be applied. This enables template
- expression in titles but may have problematic side-effects such
- as nested links.
- </para>
- <note>
- <para>
- This variable does not influence all <sgmltag class="element">title</sgmltag>
- elements. Some may have their own variables or not be configurable.
- </para>
- </note>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.apply.title.templates">1</xsl:param>
-
-
-
-
-
- <doc:param name="latex.apply.title.templates.admonitions" xmlns="">
- <refpurpose> Whether to apply templates for admonition titles. </refpurpose>
- <refdescription>
- <para>
- Controls whether admonition titles will be generated by
- applying templates or by conversion to string values.
- When enabled, templates will be applied.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.apply.title.templates.admonitions">1</xsl:param>
-
-
-
-
-
-
- <doc:param name="latex.graphics.formats" xmlns="">
- <refpurpose> Control <sgmltag class="element">imagedata</sgmltag> selection. </refpurpose>
- <refdescription>
- <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">mediaobject</sgmltag> contains
- multiple <sgmltag class="element">imagedata</sgmltag>. When non-empty, DB2LaTeX will exclude
- imagedata that have a format no listed within this variable.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.graphics.formats"></xsl:param>
-
-
-
-
-
-
- <doc:param name="latex.caption.swapskip" xmlns="">
- <refpurpose> Improved typesetting of captions </refpurpose>
- <refdescription>
- <para>
- DB2LaTeX supports <link linkend="param.formal.title.placement">$formal.title.placement</link>
- as a mechanism for choosing whether captions will appear above or below the objects they describe.
- <!--
- ($formal.title.placement is described in the <ulink
- url="http://docbook.sourceforge.net/release/xsl/current/doc/html/formal.title.placement.html">DocBook
- XSL Stylesheet HTML Parameter Reference</ulink>.)
- -->
- However, LaTeX will often produce an ugly result when captions occur
- above their corresponding content. This usually arises because of
- unsuitable \abovecaptionskip and \belowcaptionskip.
- </para>
- <para>
- This variable, when set to '1', authorises DB2LaTeX to swap the caption
- 'skip' lengths when a caption is placed <emphasis>above</emphasis> its
- corresponding content. This is enabled by default.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.caption.swapskip">1</xsl:param>
-
-
-
-
-
- <doc:param name="latex.titlepage.file" xmlns="">
- <refpurpose> DB2LaTeX allows using an (externally generated) cover page </refpurpose>
- <refdescription>
- <para>
- You may supply a LaTeX file that will supersede DB2LaTeX's default
- cover page or title. If the value of this variable is non-empty, the
- generated LaTeX code includes \input{filename}. Otherwise, it uses the
- \maketitle command.
- </para>
- <warning><para>
- Bear in mind that using an external cover page breaks the
- "encapsulation" of DocBook. Further revisions of these stylesheets
- will add chunking support, and the automation of the cover file
- generation.
- </para></warning>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.titlepage.file">title</xsl:param>
-
-
-
-
- <doc:param name="latex.documentclass" xmlns="">
- <refpurpose> DB2LaTeX document class </refpurpose>
- <refdescription>
- <para>
- This variable is normally empty and the stylesheets will determine
- the correct document class according to whether the document is a
- book or an article. If you wish to use your own document class,
- put its non-empty value in this variable. It will apply for both
- books and articles.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass"></xsl:param>
-
- <doc:param name="latex.documentclass.common" xmlns="">
- <refpurpose> DB2LaTeX document class options </refpurpose>
- <refdescription>
- <para>
- These are the first options to be passed to <literal>\documentclass</literal>
- The common options are set to <literal>french,english</literal> by default.
- They will be augmented or superseded by article/book options (see $latex.documentclass.article and $latex.documentclass.book) and pdftex/dvips options (see $latex.documentclass.pdftex and $latex.documentclass.dvips).
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass.common">french,english</xsl:param>
-
- <doc:param name="latex.documentclass.article" xmlns="">
- <refpurpose> DB2LaTeX document class options for articles</refpurpose>
- <refdescription>
- <para>
- The article options are set to <literal>a4paper,10pt,twoside,twocolumn</literal> by default.
- These are the intermediate options to be passed to <literal>\documentclass</literal>,
- between the common options and the pdftex/dvips options.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass.article">a4paper,10pt,twoside,twocolumn</xsl:param>
-
- <doc:param name="latex.documentclass.book" xmlns="">
- <refpurpose> DB2LaTeX document class options for books</refpurpose>
- <refdescription>
- <para>
- The book options are set to <literal>a4paper,10pt,twoside,openright</literal> by default.
- These are the intermediate options to be passed to <literal>\documentclass</literal>,
- between the common options and the pdftex/dvips options.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass.book">a4paper,10pt,twoside,openright</xsl:param>
-
- <doc:param name="latex.documentclass.pdftex" xmlns="">
- <refpurpose> DB2LaTeX document class options for pdfTeX output</refpurpose>
- <refdescription>
- <para>
- The pdfTeX options are empty by default.
- These are the last options to be passed to <literal>\documentclass</literal>
- and override the common/article/book options.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass.pdftex"></xsl:param>
-
- <doc:param name="latex.documentclass.dvips" xmlns="">
- <refpurpose> DB2LaTeX document class options for dvips output</refpurpose>
- <refdescription>
- <para>
- The dvips options are empty by default.
- These are the last options to be passed to <literal>\documentclass</literal>
- and override the common/article/book options.
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.documentclass.dvips"></xsl:param>
-
- <doc:param name="latex.admonition.path" xmlns="">
- <refpurpose> LaTeX location for admonition graphics </refpurpose>
- <refdescription>
- <para>The file path that will be passed to LaTeX in order to find admonition graphics.</para>
- <para>An empty value suppresses the use of admonition graphics.</para>
- <para>If your figures are in <quote>the current directory</quote> then use a value of
- <quote>.</quote> (i.e. the full stop or period on its own) to signify this.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.admonition.path">figures</xsl:param>
-
-
- <doc:param name="latex.admonition.imagesize" xmlns="">
- <refpurpose> DB2LaTeX graphics admonitions size</refpurpose>
- <refdescription>
- <para>
- Is passed as an optional parameter for <literal>\includegraphics</literal> and
- can take on any such legal values (or be empty).
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.admonition.imagesize">width=1cm</xsl:param>
-
-
- <!--
- <xsl:param name="latex.chapter.label">1</xsl:param>
-
- <doc:param name="latex.chapter.hypertarget" xmlns="">
- <refpurpose> Hypertarget Chapters </refpurpose>
- <refdescription>
- <para>
- </para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.chapter.hypertarget">1</xsl:param>
- -->
-
-
- <doc:param name="latex.biblio.output" xmlns="">
- <refpurpose> Control which references are cited in the bibliography </refpurpose>
- <refdescription>
- <para>
- The DB2LaTeX generated bibliography (bibitems) may either
- include all biblioentries found in the document, or only thee ones explicitly
- cited with <sgmltag class="element">citation</sgmltag>.
- </para>
- <para>Two values are possible: <quote>all</quote> or <quote>cited</quote>.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.biblio.output">all</xsl:param>
-
-
- <doc:param name="latex.bibfiles" xmlns="">
- <refpurpose>
- Control the output of the \bibliography{.bib}.
- </refpurpose>
- <refdescription>
- <para>The value of this parameter is output.</para>
- <para>An example is <quote><filename>citations.bib</filename></quote>,
- if your BibTeX file has that name.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.bibfiles"></xsl:param>
-
-
- <doc:param name="latex.bibwidelabel" xmlns="">
- <refpurpose> Adjust bibliography formatting </refpurpose>
- <refdescription>
- <para>The environment bibliography accepts a parameter that indicates
- the widest label, which is used to correctly format the bibliography
- output. The value of this parameter is output inside the
- <literal>\begin{thebibliography[]}</literal> LaTeX command.</para>
- </refdescription>
- </doc:param>
- <xsl:param name="latex.bibwidelabel">WIDELABEL</xsl:param>
-
- <!--
- <xsl:variable name="latex.dont.label">0</xsl:variable>
- <xsl:variable name="latex.dont.hypertarget">0</xsl:variable>
- -->
-
- <doc:param name="latex.use.ucs" xmlns="">
- <refpurpose> Choose whether to use the <productname>unicode</productname> LaTeX package</refpurpose>
- <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.ucs">0</xsl:param>
-
- <doc:param name="latex.ucs.options" xmlns="">
- <refpurpose>Select the optional parameter(s) for the <productname>unicode</productname> LaTeX package</refpurpose>
- <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.ucs.options"></xsl:param>
-
- <doc:param name="latex.babel.language" xmlns="">
- <refpurpose>Select the optional parameter for the <productname>babel</productname> LaTeX package</refpurpose>
- <refdescription><para>See the <productname>babel</productname> documentation for details.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.babel.language">french</xsl:param>
-
- <doc:param name="latex.use.isolatin1" xmlns="">
- <refpurpose>Toggle the use of the <productname>isolatin1</productname> LaTeX package</refpurpose>
- </doc:param>
- <xsl:variable name="latex.use.isolatin1">1</xsl:variable>
-
- <doc:param name="latex.use.hyperref" xmlns="">
- <refpurpose>Toggle the use of the <productname>hyperref</productname> LaTeX package</refpurpose>
- <refdescription><para>This is used extensively for hyperlinking within documents.</para></refdescription>
- </doc:param>
- <xsl:variable name="latex.use.hyperref">1</xsl:variable>
-
- <doc:param name="latex.use.fancybox" xmlns="">
- <refpurpose>Toggle the use of the <productname>fancybox</productname> LaTeX package</refpurpose>
- <refdescription><para>This is essential for admonitions.</para></refdescription>
- </doc:param>
- <xsl:variable name="latex.use.fancybox">1</xsl:variable>
-
- <doc:param name="latex.use.fancyvrb" xmlns="">
- <refpurpose>Toggle the use of the <productname>fancyvrb</productname> LaTeX package</refpurpose>
- <refdescription><para>Provides support for tabbed whitespace in verbatim environments.
- See also <xref linkend="param.latex.fancyvrb.tabsize"/>.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.fancyvrb">1</xsl:param>
-
- <doc:param name="latex.fancyvrb.tabsize" xmlns="">
- <refpurpose>Choose indentation for tabs in verbatim environments</refpurpose>
- <refdescription><para>When <xref linkend="param.latex.use.fancyvrb"/> is enabled,
- this variable sets the width of a tab in terms of an equivalent number of spaces.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.fancyvrb.tabsize">3</xsl:param>
-
- <doc:param name="latex.use.fancyhdr" xmlns="">
- <refpurpose>Toggle the use of the <productname>fancyhdr</productname> LaTeX package</refpurpose>
- <refdescription><para>Provides page headers and footers. Disabling support for
- this package will make headers and footer go away.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.fancyhdr">1</xsl:param>
-
- <doc:param name="latex.use.parskip" xmlns="">
- <refpurpose>Toggle the use of the <productname>parskip</productname> LaTeX package</refpurpose>
- <refdescription><para>Support a <quote>block</quote> paragraph style as opposed to
- <quote>indented</quote>.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.parskip">0</xsl:param>
-
- <doc:param name="latex.use.subfigure" xmlns="">
- <refpurpose>Toggle the use of the <productname>subfigure</productname> LaTeX package</refpurpose>
- <refdescription><para>Used to provide nice layout of multiple mediaobjects in figures.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.subfigure">1</xsl:param>
-
- <doc:param name="latex.use.rotating" xmlns="">
- <refpurpose>Toggle the use of the <productname>rotating</productname> LaTeX package</refpurpose>
- </doc:param>
- <xsl:param name="latex.use.rotating">1</xsl:param>
-
- <doc:param name="latex.use.tabularx" xmlns="">
- <refpurpose>Toggle the use of the <productname>tabularx</productname> LaTeX package</refpurpose>
- <refdescription><para>Used to provide certain table features. Has some incompatabilities
- with packages, but also solves some conflicts that the regular tabular
- environment has.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.tabularx">1</xsl:param>
-
- <doc:param name="latex.use.umoline" xmlns="">
- <refpurpose>Toggle the use of the <productname>umoline</productname> LaTeX package</refpurpose>
- <refdescription><para>Provide underlining.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.umoline">0</xsl:param>
-
- <doc:param name="latex.use.url" xmlns="">
- <refpurpose>Toggle the use of the <productname>url</productname> LaTeX package</refpurpose>
- <refdescription><para>Provide partial support for hyperlinks.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.url">1</xsl:param>
-
- <doc:param name="latex.use.makeidx" xmlns="">
- <refpurpose>Toggle the use of the <productname>makeidx</productname> LaTeX package</refpurpose>
- <refdescription><para>Support index generation.</para></refdescription>
- </doc:param>
- <xsl:param name="latex.use.makeidx">1</xsl:param>
-
- <doc:param name="latex.hyphenation.tttricks" xmlns="">
- <refpurpose> DB2LaTeX hyphenation linebreak tricks </refpurpose>
- <refdescription>
- <para>
- Usually, LaTeX does not perform hyphenation in <quote>teletype</quote> (monospace)
- text. This can lead to formatting problems. But certain monospace texts, such as
- URLs and filenames, have <quote>natural</quote> breakpoints such as full stops
- and slashes. DB2LaTeX's <quote>tttricks</quote> exploit a hyphenation trick in
- order to provide line wrapping in the middle of monospace text. Set this to '1'
- to enable these tricks (they are not enabled by default). See also the FAQ.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.hyphenation.tttricks">0</xsl:variable>
-
- <doc:param name="latex.hyperref.param.common" xmlns="">
- <refpurpose> DB2LaTeX hyperref options</refpurpose>
- <refdescription>
- <para>
- The hyperref options are set to <literal>bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</literal> by default.
- You may wish to specify additional options using <literal>latex.hyperref.param.pdftex</literal>
- or <literal>latex.hyperref.param.dvips</literal>.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.hyperref.param.common">bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</xsl:variable>
-
- <doc:param name="latex.hyperref.param.pdftex" xmlns="">
- <refpurpose> DB2LaTeX hyperref options for pdfTeX output</refpurpose>
- <refdescription>
- <para>
- This variable is empty by default. See the hyperref documentation for further information.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.hyperref.param.pdftex">pdfstartview=FitH</xsl:variable>
-
- <doc:param name="latex.hyperref.param.dvips" xmlns="">
- <refpurpose> DB2LaTeX hyperref options for dvips output</refpurpose>
- <refdescription>
- <para>
- This variable is empty by default. See the hyperref documentation for further information.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.hyperref.param.dvips"></xsl:variable>
-
- <xsl:variable name="latex.fancyhdr.lh">Left Header</xsl:variable>
- <xsl:variable name="latex.fancyhdr.ch">Center Header</xsl:variable>
- <xsl:variable name="latex.fancyhdr.rh">Right Header</xsl:variable>
- <xsl:variable name="latex.fancyhdr.lf">Left Footer</xsl:variable>
- <xsl:variable name="latex.fancyhdr.cf">Center Footer</xsl:variable>
- <xsl:variable name="latex.fancyhdr.rf">Right Footer</xsl:variable>
-
- <doc:param name="latex.step.title.style" xmlns="">
- <refpurpose> Control the style of step titles </refpurpose>
- <refdescription>
- <para>Step titles are typeset in small caps but if
- this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
- that command will precede the title and it will be typeset accordingly.</para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.step.title.style">\bf</xsl:variable>
-
- <doc:param name="latex.book.article.title.style" xmlns="">
- <refpurpose> Control the style of article titles within books </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.book.article.title.style">\Large\textbf</xsl:variable>
-
- <doc:param name="latex.article.title.style" xmlns="">
- <refpurpose> Control the style of article titles </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.article.title.style">\textbf</xsl:variable>
-
- <doc:param name="latex.pagestyle" xmlns="">
- <refpurpose> Override DB2LaTeX's choice of LaTeX page numbering style </refpurpose>
- <refdescription>
- <para>By default, DB2LaTeX will choose the 'plain' or 'fancy' page styles,
- depending on <xref linkend="param.latex.use.fancyhdr"/>. If non-empty, this
- variable overrides the automatic selection. An example would be the literal
- string 'empty', to eliminate headers and page numbers.</para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.pagestyle"></xsl:variable>
-
- <doc:param name="latex.procedure.title.style" xmlns="">
- <refpurpose> Control the style of procedure titles </refpurpose>
- <refdescription>
- <para>Procedure titles are typeset in small caps but if
- this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
- that command will precede the title and it will be typeset accordingly.</para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.procedure.title.style">\sc</xsl:variable>
-
- <doc:param name="latex.figure.title.style" xmlns="">
- <refpurpose> Control the style of figure titles </refpurpose>
- <refdescription>
- <para>Figure titles are typeset in the default typeface (usually 'roman') but if
- this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
- that command will precede the title and it will be typeset accordingly.</para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.figure.title.style"></xsl:variable>
-
- <doc:param name="latex.pdf.support" xmlns="">
- <refpurpose> Controls the output of LaTeX commands to support the generation
- of PDF files.</refpurpose>
- <refdescription>
- <para>If this parameter is set to 1, the stylesheets generate code to
- detect if it is either <literal>latex</literal> or <literal>pdflatex</literal>
- the shell command that is being used to compile the LaTeX text file. Some
- packages (<literal>graphicx</literal>, <literal>hyperref</literal>) are used
- with the right parameters. Finally, the graphic extensions declared, to use in
- <literal>\includegraphics</literal> commands depends also on which command is
- being used. If this parameter is set to zero, such code is not generated (which
- does not mean that the file cannot compile with pdflatex, but some strange issues
- may appear). <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.pdf.support">1</xsl:variable>
-
-
-
- <doc:param name="latex.thead.row.entry" xmlns="">
- <refpurpose> Format the output of tabular headings. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:template name="latex.thead.row.entry">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
- <doc:param name="latex.math.support" xmlns="">
- <refpurpose> Controls the output of LaTeX packages and commands to support
- documents with math commands and environments..</refpurpose>
- <refdescription>
- <para>If this parameter is set to 1, the stylesheets generate code to
- <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.math.support">1</xsl:variable>
-
-
-
- <doc:param name="latex.output.revhistory" xmlns="">
- <refpurpose> Controls if the revision history table is generated as the first document
- table.
- </refpurpose>
- <refdescription>
- <para>If this parameter is set to 1, the stylesheets generate code to
- <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
- </para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.output.revhistory">1</xsl:variable>
-
-
-
-
- <xsl:variable name="latex.book.preamble.pre">
- </xsl:variable>
-
- <xsl:variable name="latex.book.preamble.post">
- </xsl:variable>
-
- <doc:param name="latex.book.varsets" xmlns="">
- <refpurpose>
- All purpose commands to change text width, height, counters, etc.
- Defaults to a two-sided margin layout.
- </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.book.varsets">
- <xsl:text>\usepackage{anysize}&#10;</xsl:text>
- <xsl:text>\marginsize{3cm}{2cm}{1.25cm}{1.25cm}&#10;</xsl:text>
- </xsl:variable>
-
- <doc:param name="latex.book.begindocument" xmlns="">
- <refpurpose>
- Begin document command
- </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.book.begindocument">
- <xsl:text>\begin{document}&#10;</xsl:text>
- </xsl:variable>
-
-
-
-
-
- <doc:param name="latex.book.afterauthor" xmlns="">
- <refpurpose>
- LaTeX code that is output after the author (e.g.
- <literal>\makeindex, \makeglossary</literal>
- </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.book.afterauthor">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\makeindex&#10;</xsl:text>
- <xsl:text>\makeglossary&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- </xsl:variable>
-
-
-
-
- <doc:param name="latex.book.end" xmlns="">
- <refpurpose>
- LaTeX code that is output at the end of the document
- <literal>\end{document}</literal>
- </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.book.end">
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% End of document&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\end{document}&#10;</xsl:text>
- </xsl:variable>
-
-
-
- <!--#############################################################################
- | XSL VARIABLES FOR ARTICLES
- |- #############################################################################
- |
- + ############################################################################## -->
-
-
-
- <xsl:variable name="latex.article.preamble.pre">
- </xsl:variable>
-
- <xsl:variable name="latex.article.preamble.post">
- </xsl:variable>
-
- <doc:param name="latex.article.begindocument" xmlns="">
- <refpurpose> The begin document </refpurpose>
- <refdescription>The value of this variable is output from the article template
- <xref linkend="template.article"/> after the author command. The default value
- (shown below) is just the begin document command. Users of the XSL LaTeX
- stylesheet may override this parameter in order to output what they want.
- </refdescription>
- <refreturn><literal>\begin{document}</literal></refreturn>
- </doc:param>
- <xsl:variable name="latex.article.begindocument">
- <xsl:text>\begin{document}&#10;</xsl:text>
- </xsl:variable>
-
-
- <doc:param name="latex.article.varsets" xmlns="">
- <refpurpose> Controls what is output after the LaTeX preamble. </refpurpose>
- <refdescription>
- <para>Default values decrease edge margins and allow a large quantity of figures to be set on each page. </para>
- </refdescription>
- </doc:param>
-
- <xsl:variable name="latex.article.varsets">
- <xsl:text>
- \usepackage{anysize}
- \marginsize{2cm}{2cm}{2cm}{2cm}
- \renewcommand\floatpagefraction{.9}
- \renewcommand\topfraction{.9}
- \renewcommand\bottomfraction{.9}
- \renewcommand\textfraction{.1}
- </xsl:text>
- </xsl:variable>
-
-
-
-
- <doc:param name="latex.maketitle" xmlns="">
- <refpurpose> The <literal>\maketitle</literal> for books and articles. </refpurpose>
- <refdescription>
- <para>Some users may wish to override or eliminate <literal>\maketitle</literal>.</para>
- <note><para>Does not apply to <sgmltag class="element">article</sgmltag>s within <sgmltag class="element">book</sgmltag>s.</para></note>
- <para>By default, uses LaTeX <literal>\maketitle</literal> with the 'empty' pagestyle
- for the first page. The page style of subsequent pages is determined by
- <xref linkend="template.generate.latex.pagestyle"/>.</para>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.maketitle">
- <xsl:text>{\maketitle</xsl:text>
- <xsl:call-template name="generate.latex.pagestyle"/>
- <xsl:text>\thispagestyle{empty}}&#10;</xsl:text>
- </xsl:variable>
-
-
- <doc:param name="latex.article.end" xmlns="">
- <refpurpose> Controls what is output at the end of the article. Basically the <literal>\end{document}</literal>
- command, with some markup comments. </refpurpose>
- <refdescription>
- </refdescription>
- </doc:param>
- <xsl:variable name="latex.article.end">
- <xsl:text>&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>% End of document&#10;</xsl:text>
- <xsl:text>% --------------------------------------------&#10;</xsl:text>
- <xsl:text>\end{document}&#10;</xsl:text>
- </xsl:variable>
-
-
-
-</xsl:stylesheet>
-
diff --git a/docs/docbook/xslt/db2latex/verbatim.mod.xsl b/docs/docbook/xslt/db2latex/verbatim.mod.xsl
deleted file mode 100644
index 549883869b2..00000000000
--- a/docs/docbook/xslt/db2latex/verbatim.mod.xsl
+++ /dev/null
@@ -1,144 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE:
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:reference id="verbatim" xmlns="">
- <referenceinfo>
- <releaseinfo role="meta">
- </releaseinfo>
- <authorgroup>
- <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
- <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
- </authorgroup>
- <copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
- </copyright>
- </referenceinfo>
- <title>Verbatim <filename>verbatim.mod.xsl</filename></title>
- <partintro>
- <section><title>Introduction</title>
- <para></para>
- </section>
- </partintro>
- </doc:reference>
- <!--############################################################################# -->
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template match="literal" xmlns="">
- <refpurpose>Template for <sgmltag>literal</sgmltag></refpurpose>
- <refdescription>
- Template for literal template
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template match="literal" mode="latex.verbatim">
- <xsl:text>{\verb </xsl:text>
- <xsl:apply-templates mode="latex.verbatim"/>
- <xsl:text>}</xsl:text>
- </xsl:template>
-
-
-
-
-
- <!--############################################################################# -->
- <!-- DOCUMENTATION -->
- <doc:template name="verbatim.apply.templates" xmlns="">
- <refpurpose> Auxiliary template to output verbatim LaTeX code in verbatim mode </refpurpose>
- <refdescription>
- <para> Takes into account whether the user is using fancyvrb or not. It allows
- veratim line numbering and other fancy stuff. </para>
- <para> In order to use a small or large font, you may also wanto to use
- the <literal>role</literal> attribute : </para>
- <screen><![CDATA[
- <programlisting role="small">
- </programlisting>
- <programlisting role="large">
- </programlisting>
- ]]></screen>
- </refdescription>
- </doc:template>
- <!--############################################################################# -->
-
- <xsl:template name="verbatim.apply.templates">
- <xsl:choose>
- <xsl:when test="ancestor::entry">
- <xsl:message>Problem with <xsl:value-of select="local-name(.)"/> inside table entries.</xsl:message>
- <xsl:text>\texttt{</xsl:text>
- <xsl:apply-templates mode="latex.verbatim"/>
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:when test="$latex.use.fancyvrb='1'">
- <xsl:variable name="not_monospaced" select="local-name(.)='literallayout' and @format!='monospaced'"/>
- <xsl:text>&#10;\begin{Verbatim}[</xsl:text>
- <xsl:if test="@linenumbering='numbered'">
- <xsl:text>,numbers=left</xsl:text>
- </xsl:if>
- <xsl:if test="$not_monospaced">
- <xsl:text>,fontfamily=default</xsl:text>
- </xsl:if>
- <xsl:if test="@role">
- <xsl:choose>
- <xsl:when test="@role='small'">
- <xsl:text>,fontsize=\small</xsl:text>
- </xsl:when>
- <xsl:when test="@role='large'">
- <xsl:text>,fontsize=\large</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <xsl:text>]&#10;</xsl:text>
- <xsl:choose>
- <xsl:when test="$not_monospaced">
- <!-- Needs to be changed to cope with regular characterset! -->
- <xsl:apply-templates mode="latex.verbatim"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="latex.verbatim"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>&#10;\end{Verbatim}&#10;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#10;\begin{verbatim}&#10;</xsl:text>
- <xsl:apply-templates mode="latex.verbatim"/>
- <xsl:text>&#10;\end{verbatim}&#10;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <xsl:template match="address">
- <xsl:call-template name="verbatim.apply.templates"/>
- </xsl:template>
-
- <doc:template name="verbatim" match="screen|programlisting|literallayout" xmlns="">
- <refpurpose>Environments in which whitespace is significant</refpurpose>
- <refdescription>
- <itemizedlist>
- <title>Known Bugs</title>
- <listitem><simpara>Templates are not applied within programlistings.</simpara></listitem>
- </itemizedlist>
- </refdescription>
- </doc:template>
- <xsl:template match="screen|programlisting|literallayout">
- <xsl:call-template name="verbatim.apply.templates"/>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/db2latex/xref.mod.xsl b/docs/docbook/xslt/db2latex/xref.mod.xsl
deleted file mode 100644
index 82289b19df7..00000000000
--- a/docs/docbook/xslt/db2latex/xref.mod.xsl
+++ /dev/null
@@ -1,657 +0,0 @@
-<?xml version='1.0'?>
-<!--#############################################################################
-|- #############################################################################
-|
-| PURPOSE: Manage XREFs
-+ ############################################################################## -->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc" version='1.0'>
-
-
-
-<!--############################################################################# -->
-<!-- DOCUMENTATION -->
-<doc:reference id="xref" xmlns="">
-<referenceinfo>
-<releaseinfo role="meta">
-</releaseinfo>
-<authorgroup>
-<author> <surname>Casellas</surname><firstname>Ramon</firstname> </author>
-<author> <surname>James</surname><firstname>Devenish</firstname> </author>
-</authorgroup>
-<copyright>
- <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
- <holder>Ramon Casellas</holder>
-</copyright>
-</referenceinfo>
-
-<title>Xref, Cross References <filename>xref.mod.xsl</filename></title>
-<partintro>
-<section><title>Introduction</title>
-<para></para>
-</section>
-</partintro>
-</doc:reference>
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="anchor" xmlns="">
- <refpurpose>Anchor XSL template</refpurpose>
- <refdescription>
- <para>The <sgmltag>anchor</sgmltag> element
- The DB2LaTeX processing of the element is quite straightforward :
- Map to a <literal>\label</literal>.</para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template match="anchor">
- <xsl:text>\hypertarget{</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>}{}</xsl:text>
- </xsl:template>
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template name="id.is.xrefed" xmlns="">
- <refpurpose>Auxiliary named template</refpurpose>
- <refdescription>
- <para>This template returns 1 if there exists somewhere an xref
- whose linkend is the target's id.</para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template name="id.is.xrefed">
- <xsl:param name="i" select="1"/>
- <xsl:param name="target" select="."/>
- <xsl:param name="xrefs" select="//xref"/>
- <xsl:choose>
- <xsl:when test="xrefs[i]/@linkend = 'target/@id'">
- <xsl:value-of select="1"/>
- </xsl:when>
- <xsl:when test="i = count(xrefs)">
- <xsl:value-of select="0"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="id.is.xrefed">
- <xsl:with-param name="i" select="i+1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template name="xref.xreflabel" xmlns="">
- <refpurpose>Auxiliary named template</refpurpose>
- <refdescription>
- <para> Called to process an xreflabel...you might use this to make
- xreflabels come out in the right font for different targets,
- for example.</para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template name="xref.xreflabel">
- <xsl:param name="target" select="."/>
- <xsl:value-of select="$target/@xreflabel"/>
- </xsl:template>
-
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="xref|link" xmlns="">
- <refpurpose>Xref and Link XSL Template</refpurpose>
- <refdescription>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template match="xref|link">
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:variable name="refelem" select="local-name($target)"/>
- <xsl:call-template name="check.id.unique"><xsl:with-param name="linkend" select="@linkend"/></xsl:call-template>
- <xsl:choose>
- <xsl:when test="$refelem=''">
- <xsl:message><xsl:text>XRef to nonexistent id: </xsl:text><xsl:value-of select="@linkend"/></xsl:message>
- <xsl:text>XrefId[?</xsl:text>
- <xsl:if test="local-name(.)='link'"><xsl:apply-templates/></xsl:if>
- <xsl:text>?]</xsl:text>
- </xsl:when>
-
- <!-- This is a link with content ... -->
- <xsl:when test="local-name(.)='link' and .!=''">
- <xsl:call-template name="generate.hyperlink">
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="text"><xsl:apply-templates/></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@endterm">
- <xsl:variable name="etargets" select="id(@endterm)"/>
- <xsl:variable name="etarget" select="$etargets[1]"/>
- <xsl:choose>
- <xsl:when test="count($etarget) = 0">
- <xsl:message>
- <xsl:value-of select="count($etargets)"/>
- <xsl:text>Endterm points to nonexistent ID: </xsl:text>
- <xsl:value-of select="@endterm"/>
- </xsl:message>
- <xsl:text>[NONEXISTENT ID]</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.hyperlink">
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="text"><xsl:apply-templates select="$etarget" mode="xref.text"/></xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- If an xreflabel has been specified for the target ... -->
- <xsl:when test="local-name(.)='xref' and $target/@xreflabel">
- <xsl:call-template name="generate.hyperlink">
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="text">
- <xsl:text>{[</xsl:text>
- <xsl:call-template name="xref.xreflabel">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- <xsl:text>]}</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.hyperlink">
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="text"><xsl:apply-templates select="$target" mode="xref-to"/></xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$insert.xref.page.number=1 and $refelem!='' and local-name(.)='xref'">
- <xsl:call-template name="xref.p.subst">
- <xsl:with-param name="string">
- <xsl:call-template name="gentext.xref.text">
- <xsl:with-param name="element.name" select="'page.citation'"/>
- <xsl:with-param name="default"> [%p]</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
- <doc:template name="generate.hyperlink" xmlns="">
- <refpurpose> Choose hyperlink syntax </refpurpose>
- <refdescription>
- <para>Will use hyperref, if it is available. Otherwise, just outputs
- unlinked text. If the destination is a citation, a backreference is
- emitted (even though it is technically a hyperlink, not a citation).
- If the 'text' arises from an @endterm, then the 'optional argument'
- syntax of <literal>\cite</literal> is used.</para>
- </refdescription>
- </doc:template>
- <xsl:template name="generate.hyperlink">
- <xsl:param name="target"/>
- <xsl:param name="text"/>
- <xsl:variable name="element" select="local-name($target)"/>
- <xsl:variable name="citation" select="$element='biblioentry' or $element='bibliomixed'"/>
- <xsl:choose>
- <xsl:when test="$citation and @endterm!=''">
- <xsl:text>\docbooktolatexcite</xsl:text>
- <xsl:text>{</xsl:text>
- <xsl:value-of select="$target/@id"/>
- <xsl:text>}{</xsl:text>
- <xsl:call-template name="scape-optionalarg">
- <xsl:with-param name="string" select="$text"/>
- </xsl:call-template>
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$latex.use.hyperref=1">
- <xsl:text>\hyperlink{</xsl:text>
- <xsl:value-of select="$target/@id"/>
- <xsl:text>}</xsl:text>
- </xsl:if>
- <xsl:text>{</xsl:text>
- <xsl:if test="$citation">
- <xsl:text>\docbooktolatexbackcite{</xsl:text>
- <xsl:value-of select="$target/@id"/>
- <xsl:text>}</xsl:text>
- </xsl:if>
- <xsl:value-of select="$text"/>
- <xsl:text>}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <doc:template name="xref.p.subst" xmlns="">
- <refpurpose>Insert page number into xrefs</refpurpose>
- <refdescription><para></para></refdescription>
- </doc:template>
- <xsl:template name="xref.p.subst">
- <xsl:param name="string"></xsl:param>
- <xsl:param name="target" select="."/>
- <xsl:variable name="subst">%p</xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($string, $subst)">
- <xsl:value-of select="substring-before($string, $subst)"/>
- <xsl:text>\pageref*{</xsl:text>
- <xsl:value-of select="$target/@id"/>
- <xsl:text>}</xsl:text>
- <xsl:value-of select="substring-after($string, $subst)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template name="number.xref" xmlns="">
- <refpurpose>Numbering template</refpurpose>
- <refdescription>
- <para>
- Let LaTeX manage the numbering. Otherwise sty files that
- do specify another numberic (e.g I,II) get messed
- </para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template name="number.xref">
- <xsl:text>{\ref*{</xsl:text><xsl:value-of select="@id"/><xsl:text>}}</xsl:text>
- </xsl:template>
-
-
-
-
-
-
-
-
-<!--############################################################################# -->
-<doc:template name="cross-reference" xmlns="">
- <refpurpose>FIXME</refpurpose>
- <refdescription>
- <para>
- FIXME
- </para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template name="cross-reference">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:param name="xref.text">
- <xsl:call-template name="gentext.xref.text">
- <xsl:with-param name="element.name" select="$refelem"/>
- <xsl:with-param name="default">%g %n</xsl:with-param>
- </xsl:call-template>
- </xsl:param>
- <xsl:call-template name="subst.xref.text">
- <xsl:with-param name="xref.text" select="$xref.text"/>
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
-
-
-
-
- <xsl:template match="*" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:message>
- <xsl:text>[Don't know what gentext to create for xref to: "</xsl:text>
- <xsl:value-of select="$refelem"/>
- <xsl:text>"]</xsl:text>
- </xsl:message>
- <xsl:text>UNKGENTEXT</xsl:text><xsl:value-of select="$refelem"/>
- </xsl:template>
-
-
-
-
-
- <xsl:template match="formalpara" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
-
- <xsl:template match="figure|example|table|equation" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
-
- <xsl:template match="dedication|preface|part|chapter|appendix" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="cmdsynopsis" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:variable name="command" select="($target//command)[1]"/>
- <xsl:apply-templates select="$command" mode="xref"/>
- </xsl:template>
-
- <xsl:template match="funcsynopsis" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:variable name="func" select="($target//function)[1]"/>
- <xsl:apply-templates select="$func" mode="xref"/>
- </xsl:template>
-
-
- <xsl:template match="biblioentry" mode="xref-to">
- <!-- handles both biblioentry and bibliomixed -->
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:text>[</xsl:text>
- <xsl:choose>
- <xsl:when test="local-name($target/*[1]) = 'abbrev'">
- <xsl:apply-templates select="$target/*[1]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@id"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>]</xsl:text>
- </xsl:template>
-
-
-
- <xsl:template match="bibliography|glossary|index" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
-
- <xsl:template match="section|simplesect
- |sect1|sect2|sect3|sect4|sect5
- |refsect1|refsect2|refsect3" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="question|answer" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="reference" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:call-template name="cross-reference">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="co" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:apply-templates select="$target" mode="callout-bug"/>
- </xsl:template>
-
- <xsl:template match="co" mode="conumber">
- <xsl:number from="literallayout|programlisting|screen|synopsis"
- level="single"
- format="1"/>
- </xsl:template>
-
-
- <xsl:template match="book" mode="xref-to">
- <xsl:param name="target" select="."/>
- <xsl:param name="refelem" select="local-name($target)"/>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$target/title">
- <xsl:apply-templates select="$target/title" mode="xref"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$target/bookinfo/title" mode="xref"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text>{\em </xsl:text> <xsl:copy-of select="$title"/> <xsl:text>}</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="command" mode="xref">
- <xsl:call-template name="inline.boldseq"/>
- </xsl:template>
-
- <xsl:template match="function" mode="xref">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="ulink" xmlns="">
- <refpurpose>A link that addresses its target by means of a URL (Uniform Resource Locator)</refpurpose>
- <refdescription>
- <formalpara>
- <title>Pertinent Variables</title>
- <itemizedlist>
- <listitem><simpara><xref linkend="param.ulink.show"/></simpara></listitem>
- <listitem><simpara><xref linkend="param.ulink.footnotes"/></simpara></listitem>
- <listitem><simpara><xref linkend="latex.hyphenation.tttricks"/></simpara></listitem>
- </itemizedlist>
- </formalpara>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
-
- <xsl:template match="ulink" name="ulink">
- <xsl:param name="hyphenation">\docbookhyphenateurl</xsl:param>
- <xsl:param name="url" select="@url"/>
- <xsl:choose>
- <xsl:when test=". = '' or . = $url">
- <xsl:call-template name="generate.typeset.url">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="url" select="$url"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$latex.use.tabularx=1 and count(ancestor::table)&gt;0">
- <xsl:apply-templates/>
- <xsl:text> </xsl:text>
- <xsl:call-template name="generate.typeset.url">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="url" select="$url"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$ulink.footnotes='1' or $ulink.show='1'">
- <xsl:apply-templates/>
- <xsl:if test="$ulink.footnotes='1' and count(ancestor::footnote)=0">
- <xsl:call-template name="footnote">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="url" select="$url"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$ulink.show='1' or ($ulink.footnotes='1' and ancestor::footnote)">
- <xsl:text> </xsl:text>
- <xsl:call-template name="generate.typeset.url">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="url" select="$url"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\href{</xsl:text>
- <xsl:call-template name="scape-href">
- <xsl:with-param name="string" select="$url"/>
- </xsl:call-template>
- <xsl:text>}</xsl:text>
- <xsl:text>{</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}</xsl:text><!-- End Of second argument of \href -->
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-<!--############################################################################# -->
-<doc:template match="olink" xmlns="">
- <refpurpose>OLink XSL template</refpurpose>
- <refdescription>
- <para></para>
- </refdescription>
-</doc:template>
-<!--############################################################################# -->
-
- <xsl:template match="olink">
- <xsl:apply-templates/>
- </xsl:template>
-
-
-
-
-
-
-
-<!--############################################################################# -->
- <xsl:template name="title.xref">
- <xsl:param name="target" select="."/>
- <xsl:choose>
- <xsl:when test="name($target) = 'figure'
- or name($target) = 'example'
- or name($target) = 'equation'
- or name($target) = 'table'
- or name($target) = 'dedication'
- or name($target) = 'preface'
- or name($target) = 'bibliography'
- or name($target) = 'glossary'
- or name($target) = 'index'
- or name($target) = 'setindex'
- or name($target) = 'colophon'">
- <xsl:call-template name="gentext.startquote"/>
- <xsl:apply-templates select="$target" mode="title.content"/>
- <xsl:call-template name="gentext.endquote"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>{\em </xsl:text><xsl:apply-templates select="$target" mode="title.content"/><xsl:text>}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-<!--############################################################################# -->
- <xsl:template match="title" mode="xref">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="command" mode="xref">
- <xsl:call-template name="inline.boldseq"/>
- </xsl:template>
-
- <xsl:template match="function" mode="xref">
- <xsl:call-template name="inline.monoseq"/>
- </xsl:template>
-
- <xsl:template name="generate.typeset.url">
- <xsl:param name="hyphenation"/>
- <xsl:param name="url" select="@url"/>
- <xsl:choose>
- <xsl:when test="$latex.use.url='1'">
- <xsl:text>\url{</xsl:text>
- <xsl:value-of select="$url"/>
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\href{</xsl:text>
- <xsl:call-template name="scape-href">
- <xsl:with-param name="string" select="$url"/>
- </xsl:call-template>
- <xsl:text>}{\texttt{</xsl:text>
- <xsl:call-template name="generate.string.url">
- <xsl:with-param name="hyphenation" select="$hyphenation"/>
- <xsl:with-param name="string" select="$url"/>
- </xsl:call-template>
- <xsl:text>}}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-<!--############################################################################# -->
- <doc:template name="generate.string.url" xmlns="">
- <refpurpose>Escape and hyphenate a string as a teletype URL.</refpurpose>
- <refdescription>
- <para>
- This template typsets teletype text using slash.hyphen if
- $latex.hyphenation.tttricks is disabled.
- Has two parameters: 'hyphenation' and 'string'.
- </para>
- </refdescription>
- </doc:template>
-<!--############################################################################# -->
- <xsl:template name="generate.string.url">
- <xsl:param name="hyphenation" />
- <xsl:param name="string" />
- <xsl:param name="url" select="$string"/>
- <xsl:choose>
- <xsl:when test="$latex.hyphenation.tttricks=1">
- <xsl:value-of select="$hyphenation" />
- <xsl:text>{</xsl:text>
- <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="$string"/></xsl:call-template>
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <!-- LaTeX chars are scaped. Each / except the :// is mapped to a /\- -->
- <xsl:call-template name="scape.slash.hyphen"><xsl:with-param name="string" select="$url"/></xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/docs/docbook/xslt/generate-attributions.xsl b/docs/docbook/xslt/generate-attributions.xsl
index c781a77cc42..29683b19211 100644
--- a/docs/docbook/xslt/generate-attributions.xsl
+++ b/docs/docbook/xslt/generate-attributions.xsl
@@ -12,38 +12,39 @@
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
-<xsl:template match="book">
- <xsl:element name="variablelist">
- <xsl:apply-templates/>
- </xsl:element>
-</xsl:template>
-
<xsl:template match="chapter">
- <xsl:element name="varlistentry">
- <xsl:element name="term">
- <xsl:element name="link">
- <xsl:attribute name="linkend"><xsl:value-of select="@id"/></xsl:attribute>
- <xsl:value-of select="title"/>
- </xsl:element>
- </xsl:element>
- <xsl:element name="listitem">
+ <xsl:choose>
+ <xsl:when test="chapterinfo/author != ''">
<xsl:element name="para">
+ <xsl:element name="link">
+ <xsl:attribute name="linkend"><xsl:value-of select="@id"/></xsl:attribute>
+ <xsl:value-of select="title"/>
+ </xsl:element>
<xsl:element name="itemizedlist">
- <xsl:apply-templates/>
+ <xsl:apply-templates/>
</xsl:element>
</xsl:element>
- </xsl:element>
- </xsl:element>
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
<xsl:template match="author">
<xsl:element name="listitem">
<xsl:element name="para">
- <xsl:value-of select="firstname"/><xsl:text> </xsl:text><xsl:value-of select="surname"/>
+ <xsl:value-of select="firstname"/>
+ <xsl:if test="othername != ''">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="othername"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:text> </xsl:text><xsl:value-of select="surname"/>
<xsl:choose>
<xsl:when test="affiliation/address/email != ''">
<xsl:text> &lt;</xsl:text>
<xsl:element name="ulink">
+ <xsl:attribute name="noescape">
+ <xsl:text>1</xsl:text>
+ </xsl:attribute>
<xsl:attribute name="url">
<xsl:text>mailto:</xsl:text>
<xsl:value-of select="affiliation/address/email"/>
@@ -62,6 +63,8 @@
</xsl:choose>
</xsl:element>
</xsl:element>
+ <xsl:text>
+ </xsl:text>
</xsl:template>
</xsl:stylesheet>
diff --git a/docs/docbook/xslt/html-common.xsl b/docs/docbook/xslt/html-common.xsl
index ecb8a08662b..dce900ef678 100644
--- a/docs/docbook/xslt/html-common.xsl
+++ b/docs/docbook/xslt/html-common.xsl
@@ -19,4 +19,7 @@
<xsl:value-of select="refentrytitle"/><xsl:text>.</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>.html</xsl:text>
</xsl:template>
+<xsl:template match="author">
+</xsl:template>
+
</xsl:stylesheet>
diff --git a/docs/docbook/xslt/latex.xsl b/docs/docbook/xslt/latex.xsl
index 8fafd5d140f..406a64b646c 100644
--- a/docs/docbook/xslt/latex.xsl
+++ b/docs/docbook/xslt/latex.xsl
@@ -1,18 +1,21 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-<xsl:import href="db2latex/docbook.xsl"/>
-<xsl:import href="table.mod.xsl"/>
-<xsl:import href="lists.mod.xsl"/>
+<xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/>
-<xsl:variable name="latex.documentclass">xslt/latex/sambadoc</xsl:variable>
-<xsl:variable name="latex.documentclass.common">english,final,titlepage,parskip</xsl:variable>
+<xsl:param name="l10n.gentext.default.language">en</xsl:param>
+<xsl:variable name="latex.documentclass">sambadoc</xsl:variable>
+<xsl:variable name="latex.documentclass.common">english,final,titlepage,parskip,<xsl:value-of select="$papersize"/>,<xsl:value-of select="$fontsize"/>pt</xsl:variable>
<xsl:variable name="latex.documentclass.book"></xsl:variable>
+<xsl:variable name="latex.generate.indexterm">1</xsl:variable>
<xsl:variable name="latex.hyperref.param.pdftex">hyperfigures,hyperindex,citecolor=blue,urlcolor=blue</xsl:variable>
<xsl:variable name="latex.document.font">default</xsl:variable>
<xsl:variable name="latex.admonition.path">xslt/figures</xsl:variable>
<xsl:variable name="latex.hyphenation.tttricks">1</xsl:variable>
<xsl:variable name="latex.use.tabularx">1</xsl:variable>
+<xsl:template name="latex.thead.row.entry">
+<xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text>
+</xsl:template>
<xsl:param name="latex.babel.language">english</xsl:param>
<xsl:param name="ulink.url">1</xsl:param>
@@ -31,5 +34,9 @@
</xsl:if>
</xsl:template>
+<xsl:template name="latex.thead.row.entry">
+<xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text>
+</xsl:template>
+
</xsl:stylesheet>
diff --git a/docs/docbook/xslt/latex/sambadoc.cls b/docs/docbook/xslt/latex/sambadoc.cls
index 9f3caa54821..fcea11992f2 100644
--- a/docs/docbook/xslt/latex/sambadoc.cls
+++ b/docs/docbook/xslt/latex/sambadoc.cls
@@ -2,7 +2,7 @@
%%-- RC Thesis
%%---------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xslt/latex/sambadoc}
+\ProvidesClass{sambadoc}
%%---------------------------------------------------
%%-- Load the base class and modify current macros.