aboutsummaryrefslogtreecommitdiffstats
path: root/lib/docbook/docbook-xsl/fo
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-10 19:55:01 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-10 19:55:01 +0700
commit062cd2ef86a66fe3219d3c315685bbe62a07ae62 (patch)
treea84f6ac44ef757766d5582347527a4f7e0ca5e0b /lib/docbook/docbook-xsl/fo
parent92edca3ea7a482d59a9086b1cb61413ed8604b67 (diff)
downloadaspectj-062cd2ef86a66fe3219d3c315685bbe62a07ae62.tar.gz
aspectj-062cd2ef86a66fe3219d3c315685bbe62a07ae62.zip
Delete docbook XSL + DTD directories from libs, download instead
It was kind of difficult to identify and find the vintage versions used in AspectJ in download archives, but finally I managed to. Docs generation looks good visually, tests to be run on GitHub CI. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'lib/docbook/docbook-xsl/fo')
-rw-r--r--lib/docbook/docbook-xsl/fo/ChangeLog240
-rw-r--r--lib/docbook/docbook-xsl/fo/admon.xsl116
-rw-r--r--lib/docbook/docbook-xsl/fo/autoidx.xsl332
-rw-r--r--lib/docbook/docbook-xsl/fo/autotoc.xsl182
-rw-r--r--lib/docbook/docbook-xsl/fo/biblio.xsl1023
-rw-r--r--lib/docbook/docbook-xsl/fo/block.xsl225
-rw-r--r--lib/docbook/docbook-xsl/fo/callout.xsl181
-rw-r--r--lib/docbook/docbook-xsl/fo/component.xsl400
-rw-r--r--lib/docbook/docbook-xsl/fo/division.xsl359
-rw-r--r--lib/docbook/docbook-xsl/fo/docbook.xsl162
-rw-r--r--lib/docbook/docbook-xsl/fo/ebnf.xsl318
-rw-r--r--lib/docbook/docbook-xsl/fo/fo.xsl49
-rw-r--r--lib/docbook/docbook-xsl/fo/footnote.xsl58
-rw-r--r--lib/docbook/docbook-xsl/fo/fop.xsl186
-rw-r--r--lib/docbook/docbook-xsl/fo/formal.xsl112
-rw-r--r--lib/docbook/docbook-xsl/fo/glossary.xsl304
-rw-r--r--lib/docbook/docbook-xsl/fo/graphics.xsl341
-rw-r--r--lib/docbook/docbook-xsl/fo/index.xsl119
-rw-r--r--lib/docbook/docbook-xsl/fo/info.xsl34
-rw-r--r--lib/docbook/docbook-xsl/fo/inline.xsl608
-rw-r--r--lib/docbook/docbook-xsl/fo/keywords.xsl21
-rw-r--r--lib/docbook/docbook-xsl/fo/lists.xsl589
-rw-r--r--lib/docbook/docbook-xsl/fo/math.xsl32
-rw-r--r--lib/docbook/docbook-xsl/fo/pagesetup.xsl431
-rw-r--r--lib/docbook/docbook-xsl/fo/param.xsl1268
-rw-r--r--lib/docbook/docbook-xsl/fo/pi.xsl183
-rw-r--r--lib/docbook/docbook-xsl/fo/qandaset.xsl222
-rw-r--r--lib/docbook/docbook-xsl/fo/refentry.xsl266
-rw-r--r--lib/docbook/docbook-xsl/fo/sections.xsl352
-rw-r--r--lib/docbook/docbook-xsl/fo/synop.xsl241
-rw-r--r--lib/docbook/docbook-xsl/fo/table.xsl748
-rw-r--r--lib/docbook/docbook-xsl/fo/titlepage.templates.xml934
-rw-r--r--lib/docbook/docbook-xsl/fo/titlepage.templates.xsl2914
-rw-r--r--lib/docbook/docbook-xsl/fo/titlepage.xsl637
-rw-r--r--lib/docbook/docbook-xsl/fo/toc.xsl211
-rw-r--r--lib/docbook/docbook-xsl/fo/verbatim.xsl246
-rw-r--r--lib/docbook/docbook-xsl/fo/xep.xsl207
-rw-r--r--lib/docbook/docbook-xsl/fo/xref.xsl415
38 files changed, 0 insertions, 15266 deletions
diff --git a/lib/docbook/docbook-xsl/fo/ChangeLog b/lib/docbook/docbook-xsl/fo/ChangeLog
deleted file mode 100644
index 21c4d0738..000000000
--- a/lib/docbook/docbook-xsl/fo/ChangeLog
+++ /dev/null
@@ -1,240 +0,0 @@
-2001-08-09 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * component.xsl, titlepage.templates.xml, titlepage.xsl:
- Support colophon
-
- * graphics.xsl: Forgot curly braces in AVT for height/width
-
- * inline.xsl: Remark|comment must be formatted as a block in case it appears at the paragraph-level in a component
-
-2001-08-05 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * callout.xsl, param.xsl: Removed the FormatDingbatCallout classes, they were the same as the FormatUnicodeCallout classes but with a font wrapper. Added a callout.unicode.font parameter to wrap Unicode callouts
-
-2001-08-02 Robert Stayton <bobstayton@users.sourceforge.net>
-
- * xref.xsl: Changed <xref> with endterm to process the children nodes
- and not just the text by calling a new mode="endterm" template.
-
- Also changed <link> to process its endterm if the element content
- is empty.
-
- Also changed the first use of name() to local-name() to
- match the others in the file and in html/xref.xsl.
-
-2001-08-01 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * graphics.xsl: Use mediaobject.filename to calculate graphic reference
-
- * inline.xsl: Changed vertical-align to baseline-shift; vertical-align is a shortcut
-
- * sections.xsl: Added templates to suppress titleabbrev
-
- * table.xsl: Support table widths
-
- * titlepage.templates.xml, titlepage.xsl: Present othercredit on titlepages
-
-2001-07-31 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * fop.xsl, xep.xsl: Fixes for PDF bookmarks by Pavel Zampach
-
-2001-07-21 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * block.xsl, param.xsl: Fix title-end punctuation problems on formalparas
-
-2001-07-16 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * table.xsl: Process thead/tbody/tfoot in the right order (thead/tfoot/tbody)
-
- * table.xsl: Add template for tfoot
-
-2001-07-15 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * graphics.xsl: Fixed graphic height/width calculations
-
- * table.xsl: Output column number when namest is used
-
- * titlepage.xsl: Fix duplicate template bug
-
-2001-07-08 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * qandaset.xsl: Improve QandA formatting; make question bold if defaultlabel=none (FR #419315)
-
- * sections.xsl, xref.xsl: Support xref to bridgehead
-
-2001-07-05 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * lists.xsl, param.xsl: Added format.variablelist.as.list parameter
-
-2001-07-04 <uid48421@users.sourceforge.net>
-
- * biblio.xsl, param.xsl, xref.xsl: Support an external bibliography collection
-
- * docbook.xsl: Turn of indentation
-
- * fo.xsl, param.xsl: Added dingbat.font.family
-
- * qandaset.xsl: Bug #426166, fix duplicate id on qandaentry formatting
-
- * qandaset.xsl, xref.xsl: Bug #429011, fix xref to qandset elements
-
- * sections.xsl: Removed debugging messages; added prio for section title template
-
- * titlepage.templates.xml, titlepage.xsl: Remove internal references to *.titlepage.recto.mode and *.titlepage.verso.mode
-
-2001-06-22 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * docbook.xsl, ebnf.xsl: Support EBNF
-
- * docbook.xsl, xep.xsl: Fix XEP support for pdf bookmarks
-
- * inline.xsl: Support linkend to glossentry on glossterm
-
- * param.xsl, xep.xsl: Initial cut at bookmark and info support for RenderX's XEP--doesn't work yet
-
- * synop.xsl: Support SBR
-
- * xref.xsl: Support anchor
-
-2001-06-21 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * lists.xsl, param.xsl, xref.xsl: Use common code to calculate step numbers; support xref to procedures and steps; added formal.procedures parameter
-
-2001-06-20 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * refentry.xsl: Bug 434102: fix refentry inside of chapter and fix refsynopsisdiv formatting in both FO and HTML
-
- * titlepage.xsl, xref.xsl: Use person.name.list to generate author lists; put IDs on authors and author groups if appropriate; support xref to authorgroup
-
-2001-06-19 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * formal.xsl, param.xsl: Fix formatting of formal object titles.
-
-2001-06-15 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * graphics.xsl: Remove file:; why was I doing this?
-
-2001-06-14 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * sections.xsl: Bug fix: section autolabelling wasn't working in division bodies
-
- * titlepage.templates.xml: Changed text-alignment on centered titles to be 'center' rather than 'justify'
-
- * xref.xsl: Added anchor template
-
-2001-06-13 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * graphics.xsl, param.xsl: Support Arbortext extensions--at the moment, just to turn off the url() stuff in external graphic references
-
- * titlepage.xsl: Bug fix: make a single author in an authorgroup work correctly
-
-2001-06-08 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * callout.xsl, inline.xsl, synop.xsl: Fixed some unparameterized references to specific font families
-
-2001-06-04 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * block.xsl: Made blockquote indent more reasonable
-
- * graphics.xsl: Omit the url() wrapper around external-graphic srcs for FOP and PT
-
-2001-05-23 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * graphics.xsl: Fix dup. template bug with is.graphic.*
-
- * titlepage.xsl: Add template for publisher
-
-2001-05-21 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * callout.xsl, verbatim.xsl: Move calculation of linenumber.* parameters into the number.rtf.lines template
-
- * titlepage.templates.xml: Reworked titlepage template processing to support use of more interesting
- predicates.
-
- Note: in previous versions, at most one title, subtitle, or titleabbrev
- element would be processed for each title page. In the new design, if you
- have multiple title, subtitle, or titleabbrev elements inside an info
- wrapper (you shouldn't!), they will all be processed.
-
-2001-05-18 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * sections.xsl: Fix subtitle bug
-
-2001-05-12 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * sections.xsl: Calculate the heading level for bridgeheads
-
-2001-05-04 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * docbook.xsl: Replace hardcoded values on fo:root with parameters
-
-2001-05-03 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * biblio.xsl: Render author names correctly in bibliomixed mode
-
- * graphics.xsl: Tweak available graphics formats
-
- * inline.xsl: Added support for class="xmlpi" and "emptytag".
- Rendering of attributes is in sync with HTML stylesheet (monospace instead of normal).
-
- * param.xsl, verbatim.xsl: Created verbatim and monospace.verbatim property sets
-
- * table.xsl: Process head/body/foot in the right order
-
-2001-04-26 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * lists.xsl: Improve procedure step/substep enumeration
-
-2001-04-21 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * qandaset.xsl: My first crude attempts at support for qandaset
-
-2001-04-20 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * autoidx.xsl: Remove variable references from key functions; use entities instead.
-
-2001-04-19 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * inline.xsl: Add template for constant
-
-2001-04-17 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * component.xsl, division.xsl: Add templates for partinfo, chapterinfo, and appendixinfo
-
- * component.xsl, pagesetup.xsl: Use the new gentext scheme for component titles and running headers
-
- * docbook.xsl: Print warning message when an unhandled tag is encountered
-
- * docbook.xsl, param.xsl: Move label.from.part parameter into param.xsl; default it to 0 so that chapters and appendixes are numbered monotonically throughout a book by default. Moved param.xsl up in the include list, just for good measure
-
-2001-04-16 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * glossary.xsl: Improve formatting of glossseealso
-
- * table.xsl: Fix typo: used xsl:param where xsl:variable was required
-
-2001-04-15 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * division.xsl: Use new toc/lot parameters
-
- * docbook.xsl: Removed unused variable declaration
-
- * formal.xsl: Fixed typo
-
- * param.xsl: Added some new parameters
-
- * toc.xsl: Support DocBook toc markup
-
-2001-04-03 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * callout.xsl: Fix bug 412487, make XSL-generated callout marks honor callout mark parameters
-
- * param.xsl: Documentation fixes
-
-2001-04-02 Norman Walsh <nwalsh@users.sourceforge.net>
-
- * .cvsignore, Makefile, admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, fo.xsl, footnote.xsl, fop.xsl, formal.xsl, glossary.xsl, graphics.xsl, index.xsl, info.xsl, inline.xsl, keywords.xsl, lists.xsl, math.xsl, pagesetup.xsl, param.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xref.xsl:
- New file.
-
- * Makefile: Use the cvstools version of saxon
-
diff --git a/lib/docbook/docbook-xsl/fo/admon.xsl b/lib/docbook/docbook-xsl/fo/admon.xsl
deleted file mode 100644
index d05ce16fb..000000000
--- a/lib/docbook/docbook-xsl/fo/admon.xsl
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: admon.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template match="note|important|warning|caution|tip">
- <xsl:choose>
- <xsl:when test="$admon.graphics != 0">
- <xsl:call-template name="graphical.admonition"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="nongraphical.admonition"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="admon.graphic.width">
- <xsl:param name="node" select="."/>
- <xsl:text>36pt</xsl:text>
-</xsl:template>
-
-<xsl:template name="admon.graphic">
- <xsl:param name="node" select="."/>
- <xsl:value-of select="$admon.graphics.path"/>
- <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:value-of select="$admon.graphics.extension"/>
-</xsl:template>
-
-<xsl:template name="graphical.admonition">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <fo:table>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-rows-spanned="2">
- <fo:block>
- <fo:external-graphic width="auto" height="auto">
- <xsl:attribute name="src">
- <xsl:call-template name="admon.graphic"/>
- </xsl:attribute>
- <xsl:attribute name="content-width">
- <xsl:call-template name="admon.graphic.width"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="2">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
-</xsl:template>
-
-<xsl:template name="nongraphical.admonition">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block space-before.minimum="0.8em"
- space-before.optimum="1em"
- space-before.maximum="1.2em"
- start-indent="0.25in"
- end-indent="0.25in"
- id="{$id}">
- <fo:block font-size="14pt" font-weight="bold" keep-with-next='always'>
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
-
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="note/title"></xsl:template>
-<xsl:template match="important/title"></xsl:template>
-<xsl:template match="warning/title"></xsl:template>
-<xsl:template match="caution/title"></xsl:template>
-<xsl:template match="tip/title"></xsl:template>
-
-<xsl:template match="title" mode="admonition.title.mode">
- <fo:block font-size="14pt" font-weight="bold" keep-with-next='always'>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/autoidx.xsl b/lib/docbook/docbook-xsl/fo/autoidx.xsl
deleted file mode 100644
index c1098ae31..000000000
--- a/lib/docbook/docbook-xsl/fo/autoidx.xsl
+++ /dev/null
@@ -1,332 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE xsl:stylesheet [
-
-<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
-<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
-
-<!ENTITY primary 'concat(primary/@sortas, primary[not(@sortas)])'>
-<!ENTITY secondary 'concat(secondary/@sortas, secondary[not(@sortas)])'>
-<!ENTITY tertiary 'concat(tertiary/@sortas, tertiary[not(@sortas)])'>
-
-<!ENTITY section '(ancestor-or-self::set
- |ancestor-or-self::book
- |ancestor-or-self::part
- |ancestor-or-self::reference
- |ancestor-or-self::partintro
- |ancestor-or-self::chapter
- |ancestor-or-self::appendix
- |ancestor-or-self::preface
- |ancestor-or-self::section
- |ancestor-or-self::sect1
- |ancestor-or-self::sect2
- |ancestor-or-self::sect3
- |ancestor-or-self::sect4
- |ancestor-or-self::sect5
- |ancestor-or-self::refsect1
- |ancestor-or-self::refsect2
- |ancestor-or-self::refsect3
- |ancestor-or-self::simplesect
- |ancestor-or-self::bibliography
- |ancestor-or-self::glossary
- |ancestor-or-self::index)[last()]'>
-
-<!ENTITY section.id 'generate-id(&section;)'>
-<!ENTITY sep '" "'>
-]>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0">
-
-<xsl:import href="docbook.xsl"/>
-
-<!-- ==================================================================== -->
-<!-- Derived from Jeni Tennison's work in the HTML case -->
-
-<xsl:key name="letter"
- match="indexterm"
- use="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
-
-<xsl:key name="primary"
- match="indexterm"
- use="&primary;"/>
-
-<xsl:key name="secondary"
- match="indexterm"
- use="concat(&primary;, &sep;, &secondary;)"/>
-
-<xsl:key name="tertiary"
- match="indexterm"
- use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
-
-<xsl:key name="primary-section"
- match="indexterm[not(secondary) and not(see)]"
- use="concat(&primary;, &sep;, &section.id;)"/>
-
-<xsl:key name="secondary-section"
- match="indexterm[not(tertiary) and not(see)]"
- use="concat(&primary;, &sep;, &secondary;, &sep;, &section.id;)"/>
-
-<xsl:key name="tertiary-section"
- match="indexterm[not(see)]"
- use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, &section.id;)"/>
-
-<xsl:key name="see-also"
- match="indexterm[seealso]"
- use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso)"/>
-
-<xsl:key name="see"
- match="indexterm[see]"
- use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see)"/>
-
-<xsl:key name="sections" match="*[@id]" use="@id"/>
-
-<xsl:template name="generate-index">
- <xsl:variable name="terms" select="//indexterm[count(.|key('letter',
- translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;))[1]) = 1]"/>
- <xsl:variable name="alphabetical"
- select="$terms[contains(concat(&lowercase;, &uppercase;),
- substring(&primary;, 1, 1))]"/>
- <xsl:variable name="others" select="$terms[not(contains(concat(&lowercase;,
- &uppercase;),
- substring(&primary;, 1, 1)))]"/>
- <fo:block>
- <xsl:if test="$others">
- <fo:block font-size="16pt"
- font-weight="bold"
- keep-with-next.within-column="always"
- space-before="1em">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'index symbols'"/>
- </xsl:call-template>
- </fo:block>
- <fo:block>
- <xsl:apply-templates select="$others[count(.|key('primary',
- &primary;)[1]) = 1]"
- mode="index-primary">
- <xsl:sort select="&primary;"/>
- </xsl:apply-templates>
- </fo:block>
- </xsl:if>
- <xsl:apply-templates select="$alphabetical[count(.|key('letter',
- translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;))[1]) = 1]"
- mode="index-div">
- <xsl:sort select="&primary;"/>
- </xsl:apply-templates>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-div">
- <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
- <fo:block>
- <!-- this isn't quite exactly right. ideally all the symbols would -->
- <!-- be grouped together. as it stands, they all get separate divs -->
- <!-- but at least this test makes sure that they don't all get -->
- <!-- separate titles as well. -->
- <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
- <fo:block font-size="16pt"
- font-weight="bold"
- keep-with-next.within-column="always"
- space-before="1em">
- <xsl:value-of select="translate($key, &lowercase;, &uppercase;)"/>
- </fo:block>
- </xsl:if>
- <fo:block>
- <xsl:apply-templates select="key('letter', $key)[count(.|key('primary', &primary;)[1]) = 1]"
- mode="index-primary">
- <xsl:sort select="&primary;"/>
- </xsl:apply-templates>
- </fo:block>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-primary">
- <xsl:variable name="key" select="&primary;"/>
- <xsl:variable name="refs" select="key('primary', $key)"/>
- <fo:block>
- <xsl:value-of select="primary"/>
-
- <xsl:variable name="page-number-citations">
- <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section', concat($key, &sep;, &section.id;))[1])]">
- <xsl:apply-templates select="." mode="reference"/>
- </xsl:for-each>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- <xsl:if test="$refs/secondary or $refs[not(secondary)]/*[self::see or self::seealso]">
- <fo:block start-indent="1pc">
- <fo:block>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &sep;, &sep;, see))[1])]"
- mode="index-see">
- <xsl:sort select="see"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &sep;, &sep;, seealso))[1])]"
- mode="index-seealso">
- <xsl:sort select="seealso"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[1]) = 1]"
- mode="index-secondary">
- <xsl:sort select="&secondary;"/>
- </xsl:apply-templates>
- </fo:block>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-secondary">
- <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
- <xsl:variable name="refs" select="key('secondary', $key)"/>
- <fo:block>
- <xsl:value-of select="secondary"/>
-
- <xsl:variable name="page-number-citations">
- <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section', concat($key, &sep;, &section.id;))[1])]">
- <xsl:apply-templates select="." mode="reference"/>
- </xsl:for-each>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- <xsl:if test="$refs/tertiary or $refs[not(tertiary)]/*[self::see or self::seealso]">
- <fo:block start-indent="2pc">
- <fo:block>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, see))[1])]"
- mode="index-see">
- <xsl:sort select="see"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, seealso))[1])]"
- mode="index-seealso">
- <xsl:sort select="seealso"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[1]) = 1]"
- mode="index-tertiary">
- <xsl:sort select="&tertiary;"/>
- </xsl:apply-templates>
- </fo:block>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-tertiary">
- <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
- <xsl:variable name="refs" select="key('tertiary', $key)"/>
- <fo:block>
- <xsl:value-of select="tertiary"/>
-
- <xsl:variable name="page-number-citations">
- <xsl:for-each select="$refs[generate-id() = generate-id(key('tertiary-section', concat($key, &sep;, &section.id;))[1])]">
- <xsl:apply-templates select="." mode="reference"/>
- </xsl:for-each>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- <xsl:variable name="see" select="$refs/see | $refs/seealso"/>
- <xsl:if test="$see">
- <fo:block>
- <fo:block>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see))[1])]"
- mode="index-see">
- <xsl:sort select="see"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso))[1])]"
- mode="index-seealso">
- <xsl:sort select="seealso"/>
- </xsl:apply-templates>
- </fo:block>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="reference">
- <xsl:if test="$passivetex.extensions = '0'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="@zone and string(@zone)">
- <xsl:call-template name="reference">
- <xsl:with-param name="zones" select="normalize-space(@zone)"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <fo:page-number-citation ref-id="{$id}"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="reference">
- <xsl:param name="zones"/>
- <xsl:choose>
- <xsl:when test="contains($zones, ' ')">
- <xsl:variable name="zone" select="substring-before($zones, ' ')"/>
- <xsl:variable name="target" select="key('sections', $zone)"/>
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$target[1]"/>
- </xsl:call-template>
- </xsl:variable>
-
- <fo:page-number-citation ref-id="{$id}"/>
-
- <xsl:if test="$passivetex.extensions = '0'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:call-template name="reference">
- <xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="zone" select="$zones"/>
- <xsl:variable name="target" select="key('sections', $zone)"/>
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$target[1]"/>
- </xsl:call-template>
- </xsl:variable>
-
- <fo:page-number-citation ref-id="{$id}"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-see">
- <fo:block><xsl:value-of select="see"/></fo:block>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="index-seealso">
- <fo:block><xsl:value-of select="seealso"/></fo:block>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/autotoc.xsl b/lib/docbook/docbook-xsl/fo/autotoc.xsl
deleted file mode 100644
index 290877fa8..000000000
--- a/lib/docbook/docbook-xsl/fo/autotoc.xsl
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: autotoc.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template name="division.toc">
- <xsl:variable name="nodes"
- select="part|reference|preface
- |chapter|appendix
- |article
- |bibliography|glossary|index"/>
- <xsl:if test="$nodes">
- <fo:block xsl:use-attribute-sets="toc.margin.properties">
- <xsl:call-template name="table.of.contents.titlepage"/>
- <xsl:apply-templates select="$nodes" mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="component.toc">
- <xsl:variable name="nodes" select="section|sect1|refentry
- |article|bibliography|glossary
- |appendix"/>
- <xsl:if test="$nodes">
- <fo:block xsl:use-attribute-sets="toc.margin.properties">
- <fo:block>
- <fo:inline font-weight="bold">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">TableofContents</xsl:with-param>
- </xsl:call-template>
- </fo:inline>
- </fo:block>
- <xsl:apply-templates select="$nodes" mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="toc.line">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block text-align-last="justify"
- end-indent="2pc"
- last-line-end-indent="-2pc">
- <fo:inline keep-with-next.within-line="always">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="." mode="title.markup"/>
- </fo:inline>
- <fo:inline keep-together.within-line="always">
- <xsl:text> </xsl:text>
- <fo:leader leader-pattern="dots"
- keep-with-next.within-line="always"/>
- <xsl:text> </xsl:text>
- <fo:basic-link internal-destination="{$id}">
-<!-- xsl:use-attribute-sets="xref.properties">-->
- <fo:page-number-citation ref-id="{$id}"/>
- </fo:basic-link>
- </fo:inline>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="part" mode="toc">
- <xsl:call-template name="toc.line"/>
-
- <xsl:if test="chapter|appendix|preface|reference">
- <fo:block start-indent="{count(ancestor::*)*2}pc">
- <xsl:apply-templates select="chapter|appendix|preface|reference"
- mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="reference" mode="toc">
- <xsl:call-template name="toc.line"/>
-
- <xsl:if test="refentry">
- <fo:block start-indent="{count(ancestor::*)*2}pc">
- <xsl:apply-templates select="refentry" mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="refentry" mode="toc">
- <xsl:call-template name="toc.line"/>
-</xsl:template>
-
-<xsl:template match="preface|chapter|appendix|article"
- mode="toc">
- <xsl:call-template name="toc.line"/>
-
- <xsl:if test="section|sect1">
- <fo:block start-indent="{count(ancestor::*)*2}pc">
- <xsl:apply-templates select="section|sect1"
- mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="section|sect1|sect2|sect3|sect4|sect5"
- mode="toc">
- <xsl:call-template name="toc.line"/>
-
- <xsl:if test="section|sect2|sect3|sect4|sect5">
- <fo:block start-indent="{count(ancestor::*)*2}pc">
- <xsl:apply-templates select="section|sect2|sect3|sect4|sect5"
- mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="bibliography|glossary"
- mode="toc">
- <xsl:call-template name="toc.line"/>
-</xsl:template>
-
-<xsl:template match="index"
- mode="toc">
- <xsl:if test="* or $generate.index">
- <xsl:call-template name="toc.line"/>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="title" mode="toc">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="list.of.titles">
- <xsl:param name="titles" select="'table'"/>
- <xsl:param name="nodes" select=".//table"/>
-
- <xsl:if test="$nodes">
- <fo:block>
- <xsl:choose>
- <xsl:when test="$titles='table'">
- <xsl:call-template name="list.of.tables.titlepage"/>
- </xsl:when>
- <xsl:when test="$titles='figure'">
- <xsl:call-template name="list.of.figures.titlepage"/>
- </xsl:when>
- <xsl:when test="$titles='equation'">
- <xsl:call-template name="list.of.equations.titlepage"/>
- </xsl:when>
- <xsl:when test="$titles='example'">
- <xsl:call-template name="list.of.examples.titlepage"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="list.of.unknowns.titlepage"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="$nodes" mode="toc"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="figure|table|example|equation" mode="toc">
- <xsl:call-template name="toc.line"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/biblio.xsl b/lib/docbook/docbook-xsl/fo/biblio.xsl
deleted file mode 100644
index 0c77d944d..000000000
--- a/lib/docbook/docbook-xsl/fo/biblio.xsl
+++ /dev/null
@@ -1,1023 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: biblio.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="bibliography">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="bibliography.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="book/bibliography">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="bibliography.titlepage"/>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="bibliography/bibliographyinfo"></xsl:template>
-<xsl:template match="bibliography/title"></xsl:template>
-<xsl:template match="bibliography/subtitle"></xsl:template>
-<xsl:template match="bibliography/titleabbrev"></xsl:template>
-
-<xsl:template match="bibliography/title" mode="component.title.mode">
- <fo:block xsl:use-attribute-sets="component.title.properties">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="bibliography/subtitle" mode="component.title.mode">
- <fo:block font-size="18pt" font-weight="bold" font-style="italic">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="bibliodiv">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="bibliodiv/title">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:variable>
- <fo:block font-size="16pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="biblioentry">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
- <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
- <xsl:choose>
- <xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No bibliography entry: </xsl:text>
- <xsl:value-of select="$id"/>
- <xsl:text> found in </xsl:text>
- <xsl:value-of select="$bibliography.collection"/>
- </xsl:message>
- <fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
- <xsl:text>Error: no bibliography entry: </xsl:text>
- <xsl:value-of select="$id"/>
- <xsl:text> found in </xsl:text>
- <xsl:value-of select="$bibliography.collection"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="bibliomixed">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
- <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
- <xsl:choose>
- <xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No bibliography entry: </xsl:text>
- <xsl:value-of select="$id"/>
- <xsl:text> found in </xsl:text>
- <xsl:value-of select="$bibliography.collection"/>
- </xsl:message>
- <fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
- <xsl:text>Error: no bibliography entry: </xsl:text>
- <xsl:value-of select="$id"/>
- <xsl:text> found in </xsl:text>
- <xsl:value-of select="$bibliography.collection"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
- <xsl:choose>
- <xsl:when test="local-name(*[1]) = 'abbrev'">
- <xsl:apply-templates select="*[position()&gt;1]|text()"
- mode="bibliomixed.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*" mode="bibliography.mode">
- <xsl:apply-templates select="."/><!-- try the default mode -->
-</xsl:template>
-
-<xsl:template match="abbrev" mode="bibliography.mode">
- <fo:inline>
- <xsl:text>[</xsl:text>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:text>] </xsl:text>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="abstract" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="address" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="affiliation" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="shortaffil" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="jobtitle" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="artheader|articleinfo" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="artpagenums" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="author" mode="bibliography.mode">
- <fo:inline>
- <xsl:call-template name="person.name"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorblurb" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="bibliography.mode">
- <fo:inline>
- <xsl:call-template name="person.name.list"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorinitials" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="bibliomisc" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="bibliomset" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<!-- ================================================== -->
-
-<xsl:template match="biblioset" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
-</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>
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="$biblioentry.item.separator"/>
-</xsl:template>
-
-<!-- ================================================== -->
-
-<xsl:template match="bookbiblio" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="citetitle" mode="bibliography.mode">
- <fo:inline>
- <fo:inline font-style="italic">
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="collab" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="confgroup" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contractnum" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contractsponsor" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contrib" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<!-- ================================================== -->
-
-<xsl:template match="copyright" mode="bibliography.mode">
- <fo:inline>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Copyright'"/>
- </xsl:call-template>
- <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:if test="holder">
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="holder" mode="bibliography.mode"/>
- </xsl:if>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</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">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="corpname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="date" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="edition" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="editor" mode="bibliography.mode">
- <fo:inline>
- <xsl:call-template name="person.name"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="firstname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="honorific" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="invpartnumber" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="isbn" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="issn" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="issuenum" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="lineage" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="orgname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="othername" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pagenums" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="printhistory" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="productname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="productnumber" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="publisher" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="publishername" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pubsnumber" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="seriesinfo" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="seriesvolnums" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="surname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="title" mode="bibliography.mode">
- <fo:inline>
- <fo:inline font-style="italic">
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="titleabbrev" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="volumenum" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="orgdiv" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="collabname" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="confdates" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="conftitle" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="confnum" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="confsponsor" mode="bibliography.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- <xsl:value-of select="$biblioentry.item.separator"/>
- </fo:inline>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*" mode="bibliomixed.mode">
- <xsl:apply-templates select="."/><!-- try the default mode -->
-</xsl:template>
-
-<xsl:template match="abbrev" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="abstract" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="address" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="affiliation" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="shortaffil" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="jobtitle" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliography.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="artpagenums" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="author" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:call-template name="person.name"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorblurb" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="authorinitials" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="bibliomisc" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<!-- ================================================== -->
-
-<xsl:template match="bibliomset" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="bibliomset/title|bibliomset/citetitle"
- mode="bibliomixed.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>
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ================================================== -->
-
-<xsl:template match="biblioset" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="citetitle" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="collab" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="confgroup" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contractnum" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contractsponsor" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="contrib" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="copyright" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="corpname" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="date" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="edition" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="editor" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="firstname" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="honorific" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="indexterm" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="invpartnumber" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="isbn" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="issn" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="issuenum" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="lineage" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="orgname" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="othername" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pagenums" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="printhistory" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="productname" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="productnumber" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="publisher" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="publishername" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="pubsnumber" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="seriesvolnums" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="surname" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="title" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="titleabbrev" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="volumenum" mode="bibliomixed.mode">
- <fo:inline>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </fo:inline>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/block.xsl b/lib/docbook/docbook-xsl/fo/block.xsl
deleted file mode 100644
index 7257b53f7..000000000
--- a/lib/docbook/docbook-xsl/fo/block.xsl
+++ /dev/null
@@ -1,225 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: block.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template name="block.object">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="para">
- <fo:block xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="simpara">
- <fo:block xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="formalpara">
- <fo:block xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="formalpara/title">
- <xsl:variable name="titleStr" select="."/>
- <xsl:variable name="lastChar">
- <xsl:if test="$titleStr != ''">
- <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
- </xsl:if>
- </xsl:variable>
-
- <fo:inline font-weight="bold"
- keep-with-next.within-line="always"
- padding-end="1em">
- <xsl:apply-templates/>
- <xsl:if test="$lastChar != ''
- and not(contains($runinhead.title.end.punct, $lastChar))">
- <xsl:value-of select="$runinhead.default.title.end.punct"/>
- </xsl:if>
- <xsl:text>&#160;</xsl:text>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="formalpara/para">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="blockquote">
- <fo:block start-indent="0.5in" end-indent="0.5in">
- <xsl:call-template name="semiformal.object"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="epigraph">
- <fo:block>
- <xsl:apply-templates select="para"/>
- <fo:inline>
- <xsl:text>--</xsl:text>
- <xsl:apply-templates select="attribution"/>
- </fo:inline>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="attribution">
- <fo:inline><xsl:apply-templates/></fo:inline>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="sidebar">
- <fo:block>
- <xsl:if test="./title">
- <fo:block font-weight="bold"
- keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:apply-templates select="./title" mode="sidebar.title.mode"/>
- </fo:block>
- </xsl:if>
-
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sidebar/title">
-</xsl:template>
-
-<xsl:template match="sidebar/title" mode="sidebar.title.mode">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="abstract">
- <fo:block>
- <xsl:if test="@id">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:if>
- <xsl:call-template name="formal.object.heading">
- <xsl:with-param name="title">
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="abstract/title">
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="msgset">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="msgentry">
- <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="msgsub">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="msgrel">
- <xsl:apply-templates/>
-</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">
- <fo:block>
- <fo:inline font-weight="bold"
- keep-with-next.within-line="always">
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgLevel'"/>
- </xsl:call-template>
- </fo:inline>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="msgorig">
- <fo:block>
- <fo:inline font-weight="bold"
- keep-with-next.within-line="always">
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgOrig'"/>
- </xsl:call-template>
- </fo:inline>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="msgaud">
- <fo:block>
- <fo:inline font-weight="bold"
- keep-with-next.within-line="always">
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgAud'"/>
- </xsl:call-template>
- </fo:inline>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="msgexplan">
- <xsl:call-template name="block.object"/>
-</xsl:template>
-
-<xsl:template match="msgexplan/title">
- <fo:block font-weight="bold"
- keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="highlights">
- <xsl:call-template name="block.object"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/callout.xsl b/lib/docbook/docbook-xsl/fo/callout.xsl
deleted file mode 100644
index 4de1e9062..000000000
--- a/lib/docbook/docbook-xsl/fo/callout.xsl
+++ /dev/null
@@ -1,181 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
- xmlns:xverb="com.nwalsh.xalan.Verbatim"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="sverb xverb lxslt"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: callout.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<lxslt:component prefix="xverb"
- functions="insertCallouts"/>
-
-<xsl:template match="programlistingco|screenco">
- <xsl:variable name="verbatim" select="programlisting|screen"/>
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-
- <xsl:choose>
- <xsl:when test="$use.extensions != '0'
- and $callouts.extension != '0'">
- <xsl:variable name="rtf">
- <xsl:apply-templates select="$verbatim">
- <xsl:with-param name="suppress-numbers" select="'1'"/>
- </xsl:apply-templates>
- </xsl:variable>
-
- <xsl:variable name="rtf-with-callouts">
- <xsl:choose>
- <xsl:when test="contains($vendor, 'SAXON ')">
- <xsl:copy-of select="sverb:insertCallouts(areaspec,$rtf)"/>
- </xsl:when>
- <xsl:when test="contains($vendor, 'Apache Software Foundation')">
- <xsl:copy-of select="xverb:insertCallouts(areaspec,$rtf)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>Don't know how to do callouts with </xsl:text>
- <xsl:value-of select="$vendor"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$verbatim/@linenumbering = 'numbered'
- and $linenumbering.extension != '0'">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf" select="$rtf-with-callouts"/>
- <xsl:with-param name="pi.context"
- select="programlisting|screen"/>
- </xsl:call-template>
- <xsl:apply-templates select="calloutlist"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$rtf-with-callouts"/>
- <xsl:apply-templates select="calloutlist"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="areaspec|areaset|area">
-</xsl:template>
-
-<xsl:template match="areaset" mode="conumber">
- <xsl:number count="area|areaset" format="1"/>
-</xsl:template>
-
-<xsl:template match="area" mode="conumber">
- <xsl:number count="area|areaset" format="1"/>
-</xsl:template>
-
-<xsl:template match="co">
- <fo:inline id="{@id}">
- <xsl:apply-templates select="." mode="callout-bug"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="co" mode="callout-bug">
- <xsl:call-template name="callout-bug">
- <xsl:with-param name="conum">
- <xsl:number count="co" format="1"/>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template name="callout-bug">
- <xsl:param name="conum" select='1'/>
-
- <xsl:choose>
- <!-- Draw callouts as images -->
- <xsl:when test="$callout.graphics != '0'
- and $conum &lt;= $callout.graphics.number.limit">
- <fo:external-graphic
- src="{$callout.graphics.path}{$conum}{$callout.graphics.extension}"/>
- </xsl:when>
-
- <xsl:when test="$callout.unicode != 0
- and $conum &lt;= $callout.unicode.number.limit">
- <xsl:variable name="comarkup">
- <xsl:choose>
- <xsl:when test="$callout.unicode.start.character = 10102">
- <xsl:choose>
- <xsl:when test="$conum = 1">&#10102;</xsl:when>
- <xsl:when test="$conum = 2">&#10103;</xsl:when>
- <xsl:when test="$conum = 3">&#10104;</xsl:when>
- <xsl:when test="$conum = 4">&#10105;</xsl:when>
- <xsl:when test="$conum = 5">&#10106;</xsl:when>
- <xsl:when test="$conum = 6">&#10107;</xsl:when>
- <xsl:when test="$conum = 7">&#10108;</xsl:when>
- <xsl:when test="$conum = 8">&#10109;</xsl:when>
- <xsl:when test="$conum = 9">&#10110;</xsl:when>
- <xsl:when test="$conum = 10">&#10111;</xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>Don't know how to generate Unicode callouts </xsl:text>
- <xsl:text>when $callout.unicode.start.character is </xsl:text>
- <xsl:value-of select="$callout.unicode.start.character"/>
- </xsl:message>
- <fo:inline background-color="#404040"
- color="white"
- padding-top="0.1em"
- padding-bottom="0.1em"
- padding-start="0.2em"
- padding-end="0.2em"
- baseline-shift="0.1em"
- font-family="{$body.font.family}"
- font-weight="bold"
- font-size="75%">
- <xsl:value-of select="$conum"/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$callout.unicode.font != ''">
- <fo:inline font-family="{$callout.unicode.font}">
- <xsl:copy-of select="$comarkup"/>
- </fo:inline>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$comarkup"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- Most safe: draw a dark gray square with a white number inside -->
- <xsl:otherwise>
- <fo:inline background-color="#404040"
- color="white"
- padding-top="0.1em"
- padding-bottom="0.1em"
- padding-start="0.2em"
- padding-end="0.2em"
- baseline-shift="0.1em"
- font-family="{$body.font.family}"
- font-weight="bold"
- font-size="75%">
- <xsl:value-of select="$conum"/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/component.xsl b/lib/docbook/docbook-xsl/fo/component.xsl
deleted file mode 100644
index 6d2261d7a..000000000
--- a/lib/docbook/docbook-xsl/fo/component.xsl
+++ /dev/null
@@ -1,400 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: component.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template name="component.title">
- <xsl:param name="node" select="."/>
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="title">
- <xsl:apply-templates select="$node" mode="object.title.markup"/>
- </xsl:variable>
-
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="2"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$title"/>
- </fotex:bookmark>
- </xsl:if>
-
- <fo:block keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:copy-of select="$title"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template name="component.subtitle">
- <xsl:param name="node" select="."/>
- <xsl:variable name="subtitle">
- <xsl:apply-templates select="$node" mode="subtitle.markup"/>
- </xsl:variable>
-
- <xsl:if test="$subtitle != ''">
- <fo:block font-size="16pt"
- font-weight="bold"
- font-style="italic"
- keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:copy-of select="$subtitle"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="component.separator">
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="dedication" mode="dedication">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="dedication.titlepage"/>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="dedication"></xsl:template> <!-- see mode="dedication" -->
-<xsl:template match="dedication/docinfo"></xsl:template>
-<xsl:template match="dedication/title"></xsl:template>
-<xsl:template match="dedication/subtitle"></xsl:template>
-<xsl:template match="dedication/titleabbrev"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="colophon">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="colophon.titlepage"/>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="colophon/title"></xsl:template>
-<xsl:template match="colophon/subtitle"></xsl:template>
-<xsl:template match="colophon/titleabbrev"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="preface">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="preface.titlepage"/>
- <xsl:if test="$generate.component.toc">
- <xsl:call-template name="component.toc"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="preface/docinfo"></xsl:template>
-<xsl:template match="preface/title"></xsl:template>
-<xsl:template match="preface/titleabbrev"></xsl:template>
-<xsl:template match="preface/subtitle"></xsl:template>
-
-<xsl:template match="chapter">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="not(preceding::chapter)">
- <xsl:attribute name="initial-page-number">1</xsl:attribute>
- </xsl:if>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="chapter.titlepage"/>
- <xsl:if test="$generate.component.toc">
- <xsl:call-template name="component.toc"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="chapter/docinfo|chapterinfo"></xsl:template>
-<xsl:template match="chapter/title"></xsl:template>
-<xsl:template match="chapter/titleabbrev"></xsl:template>
-<xsl:template match="chapter/subtitle"></xsl:template>
-
-<xsl:template match="appendix">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="appendix.titlepage"/>
- <xsl:if test="$generate.component.toc">
- <xsl:call-template name="component.toc"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="appendix/docinfo|appendixinfo"></xsl:template>
-<xsl:template match="appendix/title"></xsl:template>
-<xsl:template match="appendix/titleabbrev"></xsl:template>
-<xsl:template match="appendix/subtitle"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="dedication" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="preface" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="chapter" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:text>.</xsl:text>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$chapter.autolabel">
- <xsl:number from="book" count="chapter" format="1."/>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="appendix" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:text>.</xsl:text>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$chapter.autolabel">
- <xsl:number from="book" count="appendix" format="A."/>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="article" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<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:template match="article">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="article.titlepage"/>
- <xsl:if test="$generate.component.toc">
- <xsl:call-template name="component.toc"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="article/artheader"></xsl:template>
-<xsl:template match="article/articleinfo"></xsl:template>
-<xsl:template match="article/title"></xsl:template>
-<xsl:template match="article/subtitle"></xsl:template>
-
-<xsl:template match="article/appendix">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id='{$id}'>
- <xsl:call-template name="section.heading">
- <xsl:with-param name="level" select="2"/>
- <xsl:with-param name="title">
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:with-param>
- </xsl:call-template>
-
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/division.xsl b/lib/docbook/docbook-xsl/fo/division.xsl
deleted file mode 100644
index 6bf12777e..000000000
--- a/lib/docbook/docbook-xsl/fo/division.xsl
+++ /dev/null
@@ -1,359 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: division.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template name="division.title">
- <xsl:param name="node" select="."/>
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="title">
- <xsl:apply-templates select="$node" mode="title.markup"/>
- </xsl:variable>
-
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="1"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$title"/>
- </fotex:bookmark>
- </xsl:if>
-
- <fo:block keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:copy-of select="$title"/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="set">
- <xsl:variable name="preamble"
- select="*[not(self::book or self::setindex)]"/>
- <xsl:variable name="content" select="book|setindex"/>
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <xsl:if test="$preamble">
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="set.titlepage"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:apply-templates select="$content"/>
-</xsl:template>
-
-<xsl:template match="set/setinfo"></xsl:template>
-<xsl:template match="set/title"></xsl:template>
-<xsl:template match="set/subtitle"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="book">
- <xsl:variable name="preamble"
- select="title|subtitle|titleabbrev|bookinfo"/>
- <xsl:variable name="content"
- select="*[not(self::title or self::subtitle
- or self::titleabbrev
- or self::bookinfo)]"/>
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <xsl:if test="$preamble">
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="book.titlepage"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:if test="$generate.book.toc != '0'">
- <fo:page-sequence hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="division.toc"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:if test="$generate.book.figure.lot != '0' and .//figure">
- <fo:page-sequence hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="list.of.titles">
- <xsl:with-param name="titles" select="'figure'"/>
- <xsl:with-param name="nodes" select=".//figure"/>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:if test="$generate.book.table.lot != '0' and .//table">
- <fo:page-sequence hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="list.of.titles">
- <xsl:with-param name="titles" select="'table'"/>
- <xsl:with-param name="nodes" select=".//table"/>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:if test="$generate.book.example.lot != '0' and .//example">
- <fo:page-sequence hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="list.of.titles">
- <xsl:with-param name="titles" select="'example'"/>
- <xsl:with-param name="nodes" select=".//example"/>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:if test="$generate.book.equation.lot != '0' and .//equation">
- <fo:page-sequence hyphenate="{$hyphenate}"
- format="i"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="list.of.titles">
- <xsl:with-param name="titles" select="'equation'"/>
- <xsl:with-param name="nodes" select=".//equation"/>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
-
- <xsl:apply-templates select="dedication" mode="dedication"/>
-
- <xsl:apply-templates select="$content"/>
-</xsl:template>
-
-<xsl:template match="book/bookinfo"></xsl:template>
-<xsl:template match="book/title"></xsl:template>
-<xsl:template match="book/subtitle"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="part">
- <xsl:if test="not(partintro)">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="part.titlepage"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="part" mode="part.titlepage.mode">
- <!-- done this way to force the context node to be the part -->
- <xsl:call-template name="part.titlepage"/>
-</xsl:template>
-
-<xsl:template match="part/docinfo|partinfo"></xsl:template>
-<xsl:template match="part/title"></xsl:template>
-<xsl:template match="part/subtitle"></xsl:template>
-
-<xsl:template match="part/partintro">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="ancestor::part"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:apply-templates select=".." mode="part.titlepage.mode"/>
- <xsl:if test="title">
- <xsl:call-template name="partintro.titlepage"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="partintro/title"></xsl:template>
-<xsl:template match="partintro/subtitle"></xsl:template>
-<xsl:template match="partintro/titleabbrev"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="book" mode="division.number">
- <xsl:number from="set" count="book" format="1."/>
-</xsl:template>
-
-<xsl:template match="part" mode="division.number">
- <xsl:number from="book" count="part" format="I."/>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/docbook.xsl b/lib/docbook/docbook-xsl/fo/docbook.xsl
deleted file mode 100644
index 01796a9cb..000000000
--- a/lib/docbook/docbook-xsl/fo/docbook.xsl
+++ /dev/null
@@ -1,162 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc"
- version='1.0'>
-
-<!-- It is important to use indent="no" here, otherwise verbatim -->
-<!-- environments get broken by indented tags...at least when the -->
-<!-- callout extension is used...at least with some processors -->
-<xsl:output method="xml" indent="no"/>
-
-<!-- ********************************************************************
- $Id: docbook.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:include href="../VERSION"/>
-<xsl:include href="param.xsl"/>
-<xsl:include href="../lib/lib.xsl"/>
-<xsl:include href="../common/l10n.xsl"/>
-<xsl:include href="../common/common.xsl"/>
-<xsl:include href="../common/labels.xsl"/>
-<xsl:include href="../common/titles.xsl"/>
-<xsl:include href="../common/subtitles.xsl"/>
-<xsl:include href="../common/gentext.xsl"/>
-<xsl:include href="autotoc.xsl"/>
-<xsl:include href="lists.xsl"/>
-<xsl:include href="callout.xsl"/>
-<xsl:include href="verbatim.xsl"/>
-<xsl:include href="graphics.xsl"/>
-<xsl:include href="xref.xsl"/>
-<xsl:include href="formal.xsl"/>
-<xsl:include href="table.xsl"/>
-<xsl:include href="sections.xsl"/>
-<xsl:include href="inline.xsl"/>
-<xsl:include href="footnote.xsl"/>
-<xsl:include href="fo.xsl"/>
-<xsl:include href="info.xsl"/>
-<xsl:include href="keywords.xsl"/>
-<xsl:include href="division.xsl"/>
-<xsl:include href="index.xsl"/>
-<xsl:include href="toc.xsl"/>
-<xsl:include href="refentry.xsl"/>
-<xsl:include href="math.xsl"/>
-<xsl:include href="admon.xsl"/>
-<xsl:include href="component.xsl"/>
-<xsl:include href="biblio.xsl"/>
-<xsl:include href="glossary.xsl"/>
-<xsl:include href="block.xsl"/>
-<xsl:include href="qandaset.xsl"/>
-<xsl:include href="synop.xsl"/>
-<xsl:include href="titlepage.xsl"/>
-<xsl:include href="titlepage.templates.xsl"/>
-<xsl:include href="pagesetup.xsl"/>
-<xsl:include href="pi.xsl"/>
-<xsl:include href="ebnf.xsl"/>
-
-<xsl:include href="fop.xsl"/>
-<xsl:include href="xep.xsl"/>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*">
- <xsl:message>
- <xsl:value-of select="name(.)"/>
- <xsl:text> encountered, but no template matches.</xsl:text>
- </xsl:message>
- <fo:block color="red">
- <xsl:text>&lt;</xsl:text>
- <xsl:value-of select="name(.)"/>
- <xsl:text>&gt;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&lt;/</xsl:text>
- <xsl:value-of select="name(.)"/>
- <xsl:text>&gt;</xsl:text>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="text()">
- <xsl:value-of select="."/>
-</xsl:template>
-
-<xsl:template match="/">
- <xsl:message>
- <xsl:text>Making </xsl:text>
- <xsl:value-of select="$page.orientation"/>
- <xsl:text> pages on </xsl:text>
- <xsl:value-of select="$paper.type"/>
- <xsl:text> paper (</xsl:text>
- <xsl:value-of select="$page.width"/>
- <xsl:text>x</xsl:text>
- <xsl:value-of select="$page.height"/>
- <xsl:text>)</xsl:text>
- </xsl:message>
-
- <xsl:variable name="document.element" select="*[1]"/>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$document.element/title[1]">
- <xsl:value-of select="$document.element/title[1]"/>
- </xsl:when>
- <xsl:otherwise>[could not find document title]</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:root font-family="{$body.font.family}"
- font-size="{$body.font.size}"
- text-align="{$alignment}">
- <xsl:if test="$xep.extensions != 0">
- <xsl:call-template name="xep-document-information"/>
- </xsl:if>
- <xsl:call-template name="setup.pagemasters"/>
- <xsl:choose>
- <xsl:when test="$rootid != ''">
- <xsl:choose>
- <xsl:when test="count(id($rootid)) = 0">
- <xsl:message terminate="yes">
- <xsl:text>ID '</xsl:text>
- <xsl:value-of select="$rootid"/>
- <xsl:text>' not found in document.</xsl:text>
- </xsl:message>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$fop.extensions != 0">
- <xsl:apply-templates select="id($rootid)" mode="outline"/>
- </xsl:if>
- <xsl:if test="$xep.extensions != 0">
- <rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
- <xsl:apply-templates select="id($rootid)" mode="xep.outline"/>
- </rx:outline>
- </xsl:if>
- <xsl:apply-templates select="id($rootid)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$fop.extensions != 0">
- <xsl:apply-templates mode="outline"/>
- </xsl:if>
- <xsl:if test="$xep.extensions != 0">
- <rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
- <xsl:apply-templates mode="xep.outline"/>
- </rx:outline>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-
- </fo:root>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/ebnf.xsl b/lib/docbook/docbook-xsl/fo/ebnf.xsl
deleted file mode 100644
index b39113c68..000000000
--- a/lib/docbook/docbook-xsl/fo/ebnf.xsl
+++ /dev/null
@@ -1,318 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: ebnf.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<doc:reference xmlns="">
-<referenceinfo>
-<releaseinfo role="meta">
-$Id: ebnf.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
-</releaseinfo>
-<author><surname>Walsh</surname>
-<firstname>Norman</firstname></author>
-<copyright><year>1999</year><year>2000</year><year>2001</year>
-<holder>Norman Walsh</holder>
-</copyright>
-</referenceinfo>
-<title>HTML EBNF Reference</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>
-
-<para>This reference describes the templates and parameters relevant
-to formatting EBNF markup.</para>
-
-<para>This is not intended to be <quote>user</quote> documentation.
-It is provided for developers writing customization layers for the
-stylesheets, and for anyone who's interested in <quote>how it
-works</quote>.</para>
-
-<para>Although I am trying to be thorough, this documentation is known
-to be incomplete. Don't forget to read the source, too :-)</para>
-</section>
-</partintro>
-</doc:reference>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="productionset">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:choose>
- <xsl:when test="title">
- <fo:table-and-caption id="{$id}"
- xsl:use-attribute-sets="formal.object.properties">
- <fo:table-caption>
- <fo:block xsl:use-attribute-sets="formal.title.properties">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
- </fo:table-caption>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-body>
- <xsl:apply-templates select="production|productionrecap"/>
- </fo:table-body>
- </fo:table>
- </fo:table-and-caption>
- </xsl:when>
- <xsl:otherwise>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-body>
- <xsl:apply-templates select="production|productionrecap"/>
- </fo:table-body>
- </fo:table>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="productionset/title">
- <!-- suppressed -->
-</xsl:template>
-
-<xsl:template match="production">
- <xsl:param name="recap" select="false()"/>
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:table-row>
- <fo:table-cell width="3%">
- <fo:block text-align="start">
- <xsl:text>[</xsl:text>
- <xsl:number count="production" level="any"/>
- <xsl:text>]</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell width="10%">
- <fo:block text-align="end">
- <xsl:choose>
- <xsl:when test="$recap">
- <fo:basic-link internal-destination="{$id}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:apply-templates select="lhs"/>
- </fo:basic-link>
- </xsl:when>
- <xsl:otherwise>
- <fo:wrapper id="{$id}">
- <xsl:apply-templates select="lhs"/>
- </fo:wrapper>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell width="5%">
- <fo:block text-align="center">
- <fo:inline font-family="{$monospace.font.family}">
- <xsl:text>::=</xsl:text>
- </fo:inline>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell width="52%">
- <fo:block>
- <xsl:apply-templates select="rhs"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell width="30%" border-start-width="3pt">
- <fo:block text-align="start">
- <xsl:choose>
- <xsl:when test="rhs/lineannotation|constraint">
- <xsl:apply-templates select="rhs/lineannotation" mode="rhslo"/>
- <xsl:apply-templates select="constraint"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#160;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
-</xsl:template>
-
-<xsl:template match="productionrecap">
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
-
- <xsl:if test="count($targets)=0">
- <xsl:message>
- <xsl:text>Error: no ID for productionrecap linkend: </xsl:text>
- <xsl:value-of select="@linkend"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
-
- <xsl:if test="count($targets)>1">
- <xsl:message>
- <xsl:text>Warning: multiple "IDs" for productionrecap linkend: </xsl:text>
- <xsl:value-of select="@linkend"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
-
- <xsl:apply-templates select="$target">
- <xsl:with-param name="recap" select="true()"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template match="lhs">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="rhs">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="nonterminal">
- <xsl:variable name="linkend">
- <xsl:call-template name="xpointer.idref">
- <xsl:with-param name="xpointer" select="@def"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:call-template name="check.id.unique">
- <xsl:with-param name="linkend" select="$linkend"/>
- </xsl:call-template>
-
- <xsl:call-template name="check.idref.targets">
- <xsl:with-param name="linkend" select="$linkend"/>
- <xsl:with-param name="element-list">production</xsl:with-param>
- </xsl:call-template>
-
- <!-- If you don't provide content, you can't point outside this doc. -->
- <xsl:choose>
- <xsl:when test="*|text()"><!--nop--></xsl:when>
- <xsl:otherwise>
- <xsl:if test="$linkend = ''">
- <xsl:message>
- <xsl:text>Non-terminals with no content must point to </xsl:text>
- <xsl:text>production elements in the current document.</xsl:text>
- </xsl:message>
- <xsl:message>
- <xsl:text>Invalid xpointer for empty nt: </xsl:text>
- <xsl:value-of select="@def"/>
- </xsl:message>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:variable name="href">
- <xsl:choose>
- <xsl:when test="$linkend != ''">
- <xsl:variable name="targets" select="id($linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@def"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:basic-link internal-destination="{$href}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:choose>
- <xsl:when test="*|text()">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$linkend != ''">
- <xsl:variable name="targets" select="id($linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:apply-templates select="$target/lhs"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>???</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </fo:basic-link>
-</xsl:template>
-
-<xsl:template match="rhs/lineannotation">
- <!--nop-->
-</xsl:template>
-
-<xsl:template match="rhs/lineannotation" mode="rhslo">
- <xsl:text>/*&#160;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&#160;*/</xsl:text>
-</xsl:template>
-
-<xsl:template match="constraint">
- <xsl:call-template name="check.id.unique">
- <xsl:with-param name="linkend" select="@linkend"/>
- </xsl:call-template>
-
- <xsl:call-template name="check.idref.targets">
- <xsl:with-param name="linkend" select="@linkend"/>
- <xsl:with-param name="element-list">constraintdef</xsl:with-param>
- </xsl:call-template>
-
- <xsl:variable name="href">
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$target"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:if test="preceding-sibling::constraint">
- <fo:inline linefeed-treatment="preserve">&#xA;</fo:inline>
- </xsl:if>
- <xsl:text>[&#160;</xsl:text>
-
- <xsl:choose>
- <xsl:when test="@role">
- <xsl:value-of select="@role"/>
- <xsl:text>: </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:if test="$target/@role">
- <xsl:value-of select="$target/@role"/>
- <xsl:text>: </xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <fo:basic-link internal-destination="{$href}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <xsl:apply-templates select="$target" mode="title.markup"/>
- </fo:basic-link>
- <xsl:text>&#160;]</xsl:text>
-</xsl:template>
-
-<xsl:template match="constraintdef">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:block id="{$id}">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="constraintdef/title">
- <fo:block font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/fo.xsl b/lib/docbook/docbook-xsl/fo/fo.xsl
deleted file mode 100644
index 2b13a1328..000000000
--- a/lib/docbook/docbook-xsl/fo/fo.xsl
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: fo.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template name="dingbat">
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:variable name="symbol">
- <xsl:choose>
- <xsl:when test="$dingbat='bullet'">o</xsl:when>
- <xsl:when test="$dingbat='copyright'">&#x00A9;</xsl:when>
- <xsl:when test="$dingbat='trademark'">&#x2122;</xsl:when>
- <xsl:when test="$dingbat='trade'">&#x2122;</xsl:when>
- <xsl:when test="$dingbat='registered'">&#x00AE;</xsl:when>
- <xsl:when test="$dingbat='service'">(SM)</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='en-dash'">-</xsl:when>
- <xsl:otherwise>o</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$dingbat.font.family = ''">
- <xsl:copy-of select="$symbol"/>
- </xsl:when>
- <xsl:otherwise>
- <fo:inline font-family="{$dingbat.font.family}">
- <xsl:copy-of select="$symbol"/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/footnote.xsl b/lib/docbook/docbook-xsl/fo/footnote.xsl
deleted file mode 100644
index 05c561d8b..000000000
--- a/lib/docbook/docbook-xsl/fo/footnote.xsl
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: footnote.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template match="footnote">
- <fo:footnote>
- <fo:inline>
- <xsl:text>[</xsl:text>
- <xsl:apply-templates select="." mode="footnote.number"/>
- <xsl:text>]</xsl:text>
- </fo:inline>
- <fo:footnote-body font-size="{$footnote.font.size}">
- <xsl:apply-templates/>
- </fo:footnote-body>
- </fo:footnote>
-</xsl:template>
-
-<xsl:template match="footnoteref">
- <xsl:variable name="footnote" select="id(@linkend)"/>
- <fo:inline>
- <xsl:text>[</xsl:text>
- <xsl:apply-templates select="$footnote" mode="footnote.number"/>
- <xsl:text>]</xsl:text>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="footnote" mode="footnote.number">
- <xsl:number level="any" format="1"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="footnote/para[1]
- |footnote/simpara[1]
- |footnote/formalpara[1]"
- priority="2">
- <!-- this only works if the first thing in a footnote is a para, -->
- <!-- which is ok, because it usually is. -->
- <fo:block>
- <xsl:text>[</xsl:text>
- <xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
- <xsl:text>] </xsl:text>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/fop.xsl b/lib/docbook/docbook-xsl/fo/fop.xsl
deleted file mode 100644
index ed1939322..000000000
--- a/lib/docbook/docbook-xsl/fo/fop.xsl
+++ /dev/null
@@ -1,186 +0,0 @@
-<?xml version='1.0' encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: fop.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
- (c) Stephane Bline Peregrine Systems 2001
- Driver file to allow pdf bookmarking (based on fop implementation).
- ******************************************************************** -->
-<!--
-In PDF bookmarks can't be used characters with code>255. This version of file
-translates characters with code>255 back to ASCII.
-
- Pavel Zampach (zampach@volny.cz)
--->
-
-<xsl:variable name="a-dia" select=
-"'&#257;&#259;&#261;&#263;&#265;&#267;&#269;&#271;&#273;&#275;&#277;&#279;&#281;&#283;&#339;&#285;&#287;&#289;&#291;&#293;&#295;&#297;&#299;&#301;&#303;&#305;&#309;&#311;&#314;&#316;&#318;&#320;&#322;&#324;&#326;&#328;&#331;&#333;&#335;&#337;&#341;&#343;&#345;&#347;&#349;&#351;&#353;&#355;&#357;&#359;&#361;&#363;&#365;&#367;&#369;&#371;&#373;&#375;&#378;&#380;&#382;&#256;&#258;&#260;&#262;&#264;&#266;&#268;&#270;&#272;&#274;&#276;&#278;&#280;&#282;&#338;&#284;&#286;&#288;&#290;&#292;&#294;&#296;&#298;&#300;&#302;&#304;&#308;&#310;&#313;&#315;&#317;&#319;&#321;&#323;&#325;&#327;&#330;&#332;&#334;&#336;&#340;&#342;&#344;&#346;&#348;&#350;&#352;&#354;&#356;&#358;&#360;&#362;&#364;&#366;&#368;&#370;&#372;&#374;&#376;&#377;&#379;&#381;'"/>
-<xsl:variable name="a-asc" select=
-"'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/>
-
-
-<xsl:template match="set" mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
- <xsl:if test="book">
- <xsl:apply-templates select="book"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-<xsl:template match="book" mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
-
- <xsl:if test="part|preface|chapter|appendix">
- <xsl:apply-templates select="part|preface|chapter|appendix"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-
-<xsl:template match="part" mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
-
- <xsl:if test="chapter|appendix|preface|reference">
- <xsl:apply-templates select="chapter|appendix|preface|reference"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-<xsl:template match="preface|chapter|appendix"
- mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
-
- <xsl:if test="section|sect1">
- <xsl:apply-templates select="section|sect1"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-<xsl:template match="section|sect1|sect2|sect3|sect4|sect5"
- mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
-
- <xsl:if test="section|sect2|sect3|sect4|sect5">
- <xsl:apply-templates select="section|sect2|sect3|sect4|sect5"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-<!-- Added missing template for "article" -->
-<xsl:template match="article"
- mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
-
- <xsl:if test="section|sect1|appendix|bibliography|glossary|index">
- <xsl:apply-templates select="section|sect1|appendix|bibliography|glossary|index"
- mode="outline"/>
- </xsl:if>
- </fox:outline>
-</xsl:template>
-
-
-<xsl:template match="bibliography|glossary|index"
- mode="outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <fox:outline internal-destination="{$id}">
- <fox:label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </fox:label>
- </fox:outline>
-</xsl:template>
-
-<xsl:template match="title" mode="outline">
- <xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/formal.xsl b/lib/docbook/docbook-xsl/fo/formal.xsl
deleted file mode 100644
index 268d7f15d..000000000
--- a/lib/docbook/docbook-xsl/fo/formal.xsl
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: formal.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template name="formal.object">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}"
- xsl:use-attribute-sets="formal.object.properties">
- <xsl:call-template name="formal.object.heading"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template name="formal.object.heading">
- <xsl:param name="title"></xsl:param>
- <fo:block xsl:use-attribute-sets="formal.title.properties">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template name="informal.object">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</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 match="figure|example">
- <xsl:call-template name="formal.object"/>
-</xsl:template>
-
-<xsl:template match="table">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="prop-columns"
- select=".//colspec[contains(@colwidth, '*')]"/>
-
- <fo:table-and-caption id="{$id}"
- xsl:use-attribute-sets="formal.object.properties">
- <fo:table-caption>
- <fo:block xsl:use-attribute-sets="formal.title.properties">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
- </fo:table-caption>
- <fo:table>
- <xsl:if test="count($prop-columns) != 0">
- <xsl:attribute name="table-layout">fixed</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:table>
- </fo:table-and-caption>
-</xsl:template>
-
-<xsl:template match="equation">
- <xsl:call-template name="semiformal.object"/>
-</xsl:template>
-
-<xsl:template match="figure/title"></xsl:template>
-<xsl:template match="table/title"></xsl:template>
-<xsl:template match="example/title"></xsl:template>
-<xsl:template match="equation/title"></xsl:template>
-
-<xsl:template match="informalfigure">
- <xsl:call-template name="informal.object"/>
-</xsl:template>
-
-<xsl:template match="informalexample">
- <xsl:call-template name="informal.object"/>
-</xsl:template>
-
-<xsl:template match="informaltable">
- <xsl:variable name="prop-columns"
- select=".//colspec[contains(@colwidth, '*')]"/>
-
- <fo:table>
- <xsl:if test="count($prop-columns) != 0">
- <xsl:attribute name="table-layout">fixed</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:table>
-</xsl:template>
-
-<xsl:template match="informalequation">
- <xsl:call-template name="informal.object"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/glossary.xsl b/lib/docbook/docbook-xsl/fo/glossary.xsl
deleted file mode 100644
index 7ddbd3c19..000000000
--- a/lib/docbook/docbook-xsl/fo/glossary.xsl
+++ /dev/null
@@ -1,304 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: glossary.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:variable name="glossterm-width">2in</xsl:variable>
-<xsl:variable name="glossterm-sep">0.25in</xsl:variable>
-
-<!-- ==================================================================== -->
-
-<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:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="component.separator"/>
-
- <xsl:call-template name="glossary.titlepage"/>
-
- <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">
- <fo:list-block provisional-distance-between-starts="{$glossterm-width}"
- provisional-label-separation="{$glossterm-sep}"
- xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates select="$entries"/>
- </fo:list-block>
- </xsl:if>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="book/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:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="glossary.titlepage"/>
-
- <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">
- <fo:list-block provisional-distance-between-starts="{$glossterm-width}"
- provisional-label-separation="{$glossterm-sep}"
- xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates select="$entries"/>
- </fo:list-block>
- </xsl:if>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="glossary/glossaryinfo"></xsl:template>
-<xsl:template match="glossary/title"></xsl:template>
-<xsl:template match="glossary/subtitle"></xsl:template>
-<xsl:template match="glossary/titleabbrev"></xsl:template>
-
-<xsl:template match="glossary/title" mode="component.title.mode">
- <fo:block font-size="18pt"
- font-weight="bold"
- keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="glossary/subtitle" mode="component.title.mode">
- <fo:block font-size="16pt"
- font-weight="bold"
- font-style="italic"
- keep-with-next.within-column="always"
- hyphenate="false">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="glosslist">
- <fo:list-block provisional-distance-between-starts="{$glossterm-width}"
- provisional-label-separation="{$glossterm-sep}"
- xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates/>
- </fo:list-block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="glossdiv">
- <xsl:variable name="entries" select="glossentry"/>
- <xsl:variable name="preamble"
- select="*[not(self::title
- or self::subtitle
- or self::glossentry)]"/>
-
- <xsl:apply-templates select="title|subtitle"/>
- <xsl:apply-templates select="$preamble"/>
- <fo:list-block provisional-distance-between-starts="{$glossterm-width}"
- provisional-label-separation="{$glossterm-sep}"
- xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates select="$entries"/>
- </fo:list-block>
-</xsl:template>
-
-<xsl:template match="glossdiv/title">
- <fo:block font-size="16pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<!--
-GlossEntry ::=
- GlossTerm, Acronym?, Abbrev?,
- (IndexTerm)*,
- RevHistory?,
- (GlossSee | GlossDef+)
--->
-
-<xsl:template match="glossentry">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:list-item id="{$id}"
- xsl:use-attribute-sets="normal.para.spacing">
- <xsl:apply-templates/>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="glossentry/glossterm">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
- </fo:list-item-label>
-</xsl:template>
-
-<xsl:template match="glossentry/acronym">
-</xsl:template>
-
-<xsl:template match="glossentry/abbrev">
-</xsl:template>
-
-<xsl:template match="glossentry/revhistory">
-</xsl:template>
-
-<xsl:template match="glossentry/glosssee">
- <xsl:variable name="otherterm" select="@otherterm"/>
- <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
- <xsl:variable name="target" select="$targets[1]"/>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'glossary'"/>
- <xsl:with-param name="name" select="'see'"/>
- </xsl:call-template>
- <xsl:choose>
- <xsl:when test="@otherterm">
- <xsl:apply-templates select="$target" mode="xref"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>.</xsl:text>
- </fo:block>
- </fo:list-item-body>
-</xsl:template>
-
-<xsl:template match="glossentry/glossdef">
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates select="*[local-name(.) != 'glossseealso']"/>
- <xsl:if test="glossseealso">
- <fo:block>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'glossary'"/>
- <xsl:with-param name="name" select="'seealso'"/>
- </xsl:call-template>
- <xsl:apply-templates select="glossseealso"/>
- </fo:block>
- </xsl:if>
- </fo:list-item-body>
-</xsl:template>
-
-<xsl:template match="glossentry/glossdef/para[1]">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="glossseealso">
- <xsl:variable name="otherterm" select="@otherterm"/>
- <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
- <xsl:variable name="target" select="$targets[1]"/>
-
- <xsl:choose>
- <xsl:when test="@otherterm">
- <xsl:apply-templates select="$target" mode="xref"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="position() = last()">
- <xsl:text>.</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>, </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="glossentry" mode="xref">
- <xsl:apply-templates select="./glossterm[1]" mode="xref"/>
-</xsl:template>
-
-<xsl:template match="glossterm" mode="xref">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="parent::glossentry"/>
- </xsl:call-template>
- </xsl:variable>
-
- <fo:basic-link internal-destination="{$id}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:apply-templates/>
- <xsl:call-template name="insert.page.citation">
- <xsl:with-param name="id" select="$id"/>
- </xsl:call-template>
- </fo:basic-link>
-</xsl:template>
-
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/graphics.xsl b/lib/docbook/docbook-xsl/fo/graphics.xsl
deleted file mode 100644
index 577c12343..000000000
--- a/lib/docbook/docbook-xsl/fo/graphics.xsl
+++ /dev/null
@@ -1,341 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory"
- xmlns:xtext="com.nwalsh.xalan.Text"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="xlink stext xtext lxslt"
- extension-element-prefixes="stext xtext"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: graphics.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- Contributors:
- Colin Paul Adams, <colin@colina.demon.co.uk>
- Paul Grosso, <pgrosso@arbortext.com>
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-<!-- Graphic format tests for the FO backend -->
-
-<!--
-FIXME: make is.graphic.* work correctly depending on the backend!
-<xsl:param name="passivetex.extensions" select="0" doc:type='boolean'/>
-<xsl:param name="fop.extensions" select="0" doc:type='boolean'/>
--->
-
-<xsl:template name="is.graphic.format">
- <xsl:param name="format"></xsl:param>
- <xsl:if test="$format = 'PNG'
- or $format = 'PDF'
- or $format = 'JPG'
- or $format = 'JPEG'
- or $format = 'linespecific'
- or $format = 'GIF'
- or $format = 'GIF87a'
- or $format = 'GIF89a'
- or $format = 'BMP'">1</xsl:if>
-</xsl:template>
-
-<xsl:template name="is.graphic.extension">
- <xsl:param name="ext"></xsl:param>
- <xsl:if test="$ext = 'png'
- or $ext = 'pdf'
- or $ext = 'jpeg'
- or $ext = 'jpg'
- or $ext = 'gif'
- or $ext = 'bmp'">1</xsl:if>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="screenshot">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="screeninfo">
-</xsl:template>
-
-<!-- ==================================================================== -->
-<!-- Override these templates for FO -->
-<!-- ==================================================================== -->
-
-<xsl:template name="process.image">
- <!-- When this template is called, the current node should be -->
- <!-- a graphic, inlinegraphic, imagedata, or videodata. All -->
- <!-- those elements have the same set of attributes, so we can -->
- <!-- handle them all in one place. -->
- <xsl:variable name="filename">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'graphic'
- or local-name(.) = 'inlinegraphic'">
- <!-- handle legacy graphic and inlinegraphic by new template -->
- <xsl:call-template name="mediaobject.filename">
- <xsl:with-param name="object" select="."/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <!-- imagedata, videodata, audiodata -->
- <xsl:call-template name="mediaobject.filename">
- <xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="scale">
- <xsl:choose>
- <xsl:when test="@scale"><xsl:value-of select="@scale"/>%</xsl:when>
- <xsl:otherwise>auto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="width">
- <xsl:choose>
- <xsl:when test="@width">
- <xsl:call-template name="length-spec">
- <xsl:with-param name="length" select="@width"/>
- <xsl:with-param name="default.units" select="$default.units"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>auto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="height">
- <xsl:choose>
- <xsl:when test="@depth">
- <xsl:call-template name="length-spec">
- <xsl:with-param name="length" select="@depth"/>
- <xsl:with-param name="default.units" select="$default.units"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>auto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- DocBook has four attributes related to image size: width, depth,
- scalefit, and scale. Width and depth identify the desired dimensions
- of the image (what CALS calls the repro area dimensions). Scale
- indicates the percentage by which the image should be scaled, and
- scalefit indicates whether or not the actual image should be scaled
- to fit the specified width and/or depth. It is illogical to specify
- both scale and scalefit: scale wins. My thanks to Paul Grosso for
- analyzing this situation with me. -->
-
- <xsl:variable name="scalefit">
- <xsl:choose>
- <xsl:when test="@scalefit">
- <xsl:value-of select="@scalefit"/>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- if scalefit != 0, set both content-height and content-width to
- scale-to-fit elseif scale != auto, set both content-height and
- content-width to it else set both content-height and
- content-width to auto. -->
-
- <xsl:variable name="content-width">
- <xsl:choose>
- <xsl:when test="$scale != 'auto'">
- <xsl:value-of select="$scale"/>
- </xsl:when>
- <xsl:when test="$scalefit != '0'">scale-to-fit</xsl:when>
- <xsl:otherwise>auto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="content-height">
- <xsl:choose>
- <xsl:when test="$scale != 'auto'">
- <xsl:value-of select="$scale"/>
- </xsl:when>
- <xsl:when test="$scalefit != '0'">scale-to-fit</xsl:when>
- <xsl:otherwise>auto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != 0
- or $fop.extensions != 0
- or $arbortext.extensions != 0">
- <fo:external-graphic src="{$filename}"
- width="{$width}"
- height="{$height}"
- content-width="{$content-width}"
- content-height="{$content-height}"/>
- </xsl:when>
- <xsl:otherwise>
- <fo:external-graphic src="url({$filename})"
- width="{$width}"
- height="{$height}"
- content-width="{$content-width}"
- content-height="{$content-height}"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="graphic">
- <fo:block>
- <xsl:call-template name="process.image"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="inlinegraphic">
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
- <xsl:variable name="filename">
- <xsl:choose>
- <xsl:when test="@entityref">
- <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@fileref"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="@format='linespecific'">
- <xsl:choose>
- <xsl:when test="$use.extensions != '0'
- and $textinsert.extension != '0'">
- <xsl:choose>
- <xsl:when test="contains($vendor, 'SAXON')">
- <stext:insertfile href="{$filename}"/>
- </xsl:when>
- <xsl:when test="contains($vendor, 'Apache Software Foundation')">
- <xtext:insertfile href="{$filename}"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>Don't know how to insert files with </xsl:text>
- <xsl:value-of select="$vendor"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
- href="{$filename}"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="process.image"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="mediaobject">
- <fo:block>
- <xsl:call-template name="select.mediaobject"/>
- <xsl:apply-templates select="caption"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="inlinemediaobject">
- <xsl:call-template name="select.mediaobject"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="imageobjectco">
- <xsl:apply-templates select="imageobject"/>
- <xsl:apply-templates select="calloutlist"/>
-</xsl:template>
-
-<xsl:template match="imageobject">
- <xsl:apply-templates select="imagedata"/>
-</xsl:template>
-
-<xsl:template match="imagedata">
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
- <xsl:variable name="filename">
- <xsl:call-template name="mediaobject.filename">
- <xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="@format='linespecific'">
- <xsl:choose>
- <xsl:when test="$use.extensions != '0'
- and $textinsert.extension != '0'">
- <xsl:choose>
- <xsl:when test="contains($vendor, 'SAXON')">
- <stext:insertfile href="{$filename}"/>
- </xsl:when>
- <xsl:when test="contains($vendor, 'Apache Software Foundation')">
- <xtext:insertfile href="{$filename}"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>Don't know how to insert files with </xsl:text>
- <xsl:value-of select="$vendor"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
- href="{$filename}"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="process.image"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="videoobject">
- <xsl:apply-templates select="videodata"/>
-</xsl:template>
-
-<xsl:template match="videodata">
- <xsl:call-template name="process.image"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="audioobject">
- <xsl:apply-templates select="audiodata"/>
-</xsl:template>
-
-<xsl:template match="audiodata">
- <xsl:call-template name="process.image"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="textobject">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="caption">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/index.xsl b/lib/docbook/docbook-xsl/fo/index.xsl
deleted file mode 100644
index 05ac09ba2..000000000
--- a/lib/docbook/docbook-xsl/fo/index.xsl
+++ /dev/null
@@ -1,119 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: index.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="index">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="component.separator"/>
- <xsl:call-template name="index.titlepage"/>
- <xsl:apply-templates/>
- <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
- <xsl:call-template name="generate-index"/>
- </xsl:if>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="book/index">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="index.titlepage"/>
- <xsl:apply-templates/>
- <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
- <xsl:call-template name="generate-index"/>
- </xsl:if>
- </fo:flow>
- </fo:page-sequence>
-</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="indexdiv">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="indexdiv/title">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select=".."/>
- </xsl:call-template>
- </xsl:variable>
- <fo:block font-size="16pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="indexterm">
- <fo:wrapper>
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- <xsl:comment>
- <xsl:value-of select="primary"/>
- <xsl:if test="secondary">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="secondary"/>
- </xsl:if>
- <xsl:if test="tertiary">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="tertiary"/>
- </xsl:if>
- </xsl:comment>
- </fo:wrapper>
-</xsl:template>
-
-<xsl:template match="indexentry">
-</xsl:template>
-
-<xsl:template name="generate-index">
- <!-- nop: use autoidx.xsl to get automatic indexing -->
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/info.xsl b/lib/docbook/docbook-xsl/fo/info.xsl
deleted file mode 100644
index b47b20169..000000000
--- a/lib/docbook/docbook-xsl/fo/info.xsl
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: info.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- 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) -->
-
-<!-- ==================================================================== -->
-<!-- called from named templates in a given mode -->
-
-<xsl:template match="corpauthor">
- <fo:inline>
- <xsl:apply-templates/>
- </fo:inline>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/inline.xsl b/lib/docbook/docbook-xsl/fo/inline.xsl
deleted file mode 100644
index b110b945e..000000000
--- a/lib/docbook/docbook-xsl/fo/inline.xsl
+++ /dev/null
@@ -1,608 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: inline.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<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="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline font-family="{$monospace.font.family}">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.boldseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline font-weight="bold">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.italicseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline font-style="italic">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.boldmonoseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline font-weight="bold" font-family="{$monospace.font.family}">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.italicmonoseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline font-style="italic" font-family="{$monospace.font.family}">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.superscriptseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline baseline-shift="super">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template name="inline.subscriptseq">
- <xsl:param name="content">
- <xsl:apply-templates/>
- </xsl:param>
- <fo:inline baseline-shift="sub">
- <xsl:copy-of select="$content"/>
- </fo:inline>
-</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:template>
-
-<xsl:template match="function">
- <xsl:call-template name="inline.monoseq"/>
-</xsl:template>
-
-<xsl:template match="guibutton">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="guiicon">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="guilabel">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="guimenu">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="guimenuitem">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="guisubmenu">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="hardware">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="interface">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="interfacedefinition">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="keycap">
- <xsl:call-template name="inline.boldseq"/>
-</xsl:template>
-
-<xsl:template match="keycode">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="keysym">
- <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:call-template name="inline.boldseq"/>
-</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">
- <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">
- <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.charseq"/>
-</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="foreignphrase">
- <xsl:call-template name="inline.italicseq"/>
-</xsl:template>
-
-<xsl:template match="markup">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="phrase">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="quote">
- <xsl:variable name="depth">
- <xsl:call-template name="dot.count">
- <xsl:with-param name="string"><xsl:number level="multiple"/></xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$depth mod 2 = 0">
- <xsl:call-template name="gentext.startquote"/>
- <xsl:call-template name="inline.charseq"/>
- <xsl:call-template name="gentext.endquote"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext.nestedstartquote"/>
- <xsl:call-template name="inline.charseq"/>
- <xsl:call-template name="gentext.nestedendquote"/>
- </xsl:otherwise>
- </xsl:choose>
-</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:if test="@class">
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat" select="@class"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="firstterm">
- <xsl:call-template name="inline.italicseq"/>
-</xsl:template>
-
-<xsl:template match="glossterm">
- <xsl:choose>
- <xsl:when test="@linkend">
- <fo:basic-link internal-destination="{@linkend}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:call-template name="inline.charseq"/>
- </fo:basic-link>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="inline.charseq"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="sgmltag">
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test="@class">
- <xsl:value-of select="@class"/>
- </xsl:when>
- <xsl:otherwise>element</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$class='attribute'">
- <xsl:call-template name="inline.monoseq"/>
- </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:template match="email">
- <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: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/>
- </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>-&gt;</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="citation">
- <!-- todo: biblio-citation-check -->
- <xsl:text>[</xsl:text>
- <xsl:call-template name="inline.charseq"/>
- <xsl:text>]</xsl:text>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="comment|remark">
- <xsl:if test="$show.comments != 0">
- <fo:block font-style="italic">
- <xsl:call-template name="inline.charseq"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="productname">
- <xsl:call-template name="inline.charseq"/>
- <xsl:if test="@class">
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat" select="@class"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="productnumber">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="pob|street|city|state|postcode|country|otheraddr">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<xsl:template match="phone|fax">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<!-- in Addresses, for example -->
-<xsl:template match="honorific|firstname|surname|lineage|othername">
- <xsl:call-template name="inline.charseq"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/keywords.xsl b/lib/docbook/docbook-xsl/fo/keywords.xsl
deleted file mode 100644
index 1eb578506..000000000
--- a/lib/docbook/docbook-xsl/fo/keywords.xsl
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: keywords.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template match="keywordset"></xsl:template>
-<xsl:template match="subjectset"></xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/lists.xsl b/lib/docbook/docbook-xsl/fo/lists.xsl
deleted file mode 100644
index 7a88adcd6..000000000
--- a/lib/docbook/docbook-xsl/fo/lists.xsl
+++ /dev/null
@@ -1,589 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: lists.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="itemizedlist">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:if test="title">
- <xsl:apply-templates select="title" mode="list.title.mode"/>
- </xsl:if>
-
- <fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="1.5em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates/>
- </fo:list-block>
-</xsl:template>
-
-<xsl:template match="itemizedlist/title|orderedlist/title">
- <!--nop-->
-</xsl:template>
-
-<xsl:template match="variablelist/title" mode="vl.as.list">
- <!--nop-->
-</xsl:template>
-
-<xsl:template match="variablelist/title" mode="vl.as.blocks">
- <!--nop-->
-</xsl:template>
-
-<xsl:template match="itemizedlist/listitem">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>
- <xsl:text>&#x2022;</xsl:text>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="orderedlist">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:if test="title">
- <xsl:apply-templates select="title" mode="list.title.mode"/>
- </xsl:if>
-
- <fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="2em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates/>
- </fo:list-block>
-</xsl:template>
-
-<xsl:template match="orderedlist/listitem">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>
- <xsl:number count="listitem" format="1."/>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="listitem/para[1]
- |listitem/simpara[1]
- |listitem/formalpara[1]
- |callout/para[1]
- |callout/simpara[1]
- |callout/formalpara[1]"
- priority="2">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="variablelist">
- <xsl:choose>
- <xsl:when test="$format.variablelist.as.list = 0">
- <xsl:apply-templates select="." mode="vl.as.blocks"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="." mode="vl.as.list"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="variablelist" mode="vl.as.list">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="termlength">
- <xsl:choose>
- <!-- FIXME: handle @termlength="1in" -->
- <xsl:when test="@termlength">
- <xsl:value-of select="@termlength"/>
- <xsl:text>em</xsl:text>
- </xsl:when>
- <!-- FIXME: calculate some reasonable width -->
- <xsl:otherwise>
- <xsl:text>1in</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:if test="title">
- <xsl:apply-templates select="title" mode="list.title.mode"/>
- </xsl:if>
-
- <fo:list-block id="{$id}"
- provisional-distance-between-starts="{$termlength}"
- provisional-label-separation="0.25in"
- xsl:use-attribute-sets="list.block.spacing">
- <xsl:apply-templates mode="vl.as.list"/>
- </fo:list-block>
-</xsl:template>
-
-<xsl:template match="varlistentry" mode="vl.as.list">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>
- <xsl:apply-templates select="term"/>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates select="listitem"/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="variablelist" mode="vl.as.blocks">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <!-- termlength is irrelevant -->
-
- <xsl:if test="title">
- <xsl:apply-templates select="title" mode="list.title.mode"/>
- </xsl:if>
-
- <fo:block id="{$id}" xsl:use-attribute-sets="list.block.spacing">
- <xsl:apply-templates mode="vl.as.blocks"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="varlistentry" mode="vl.as.blocks">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing">
- <xsl:apply-templates select="term"/>
- </fo:block>
-
- <fo:block margin-start="0.25in">
- <xsl:apply-templates select="listitem"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="varlistentry/term">
- <fo:inline><xsl:apply-templates/>, </fo:inline>
-</xsl:template>
-
-<xsl:template match="varlistentry/term[position()=last()]" priority="2">
- <fo:inline><xsl:apply-templates/></fo:inline>
-</xsl:template>
-
-<xsl:template match="varlistentry/listitem">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="title" mode="list.title.mode">
- <fo:block font-size="12pt" font-weight="bold"
- xsl:use-attribute-sets="list.block.spacing">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="simplelist">
- <!-- with no type specified, the default is 'vert' -->
- <fo:table>
- <fo:table-body>
- <xsl:call-template name="simplelist.vert">
- <xsl:with-param name="cols">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </fo:table-body>
- </fo:table>
-</xsl:template>
-
-<xsl:template match="simplelist[@type='inline']">
- <fo:inline><xsl:apply-templates/></fo:inline>
-</xsl:template>
-
-<xsl:template match="simplelist[@type='horiz']">
- <fo:table>
- <fo:table-body>
- <xsl:call-template name="simplelist.horiz">
- <xsl:with-param name="cols">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </fo:table-body>
- </fo:table>
-</xsl:template>
-
-<xsl:template match="simplelist[@type='vert']">
- <fo:table>
- <fo:table-body>
- <xsl:call-template name="simplelist.vert">
- <xsl:with-param name="cols">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </fo:table-body>
- </fo:table>
-</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)">
- <fo:table-row>
- <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>
- </fo:table-row>
- <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">
- <fo:table-cell>
- <fo:block>
- <xsl:if test="$members[position()=$cell]">
- <xsl:apply-templates select="$members[position()=$cell]"/>
- </xsl:if>
- </fo:block>
- </fo:table-cell>
- <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 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">
- <fo:table-row>
- <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>
- </fo:table-row>
- <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">
- <fo:table-cell>
- <fo:block>
- <xsl:if test="$members[position()=$cell]">
- <xsl:apply-templates select="$members[position()=$cell]"/>
- </xsl:if>
- </fo:block>
- </fo:table-cell>
- <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="simplelist[@type='inline']/member">
- <xsl:apply-templates/>
- <xsl:text>, </xsl:text>
-</xsl:template>
-
-<xsl:template match="simplelist[@type='inline']/member[position()=last()]"
- priority="2">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="procedure">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <xsl:variable name="title" select="title"/>
- <xsl:variable name="preamble"
- select="*[not(self::step or self::title)]"/>
- <xsl:variable name="steps" select="step"/>
-
- <fo:block id="{$id}"
- space-before.optimum="1em"
- space-before.minimum="0.8em"
- space-before.maximum="1.2em">
- <xsl:if test="./title">
- <fo:block font-weight="bold">
- <xsl:apply-templates select="./title" mode="procedure.title.mode"/>
- </fo:block>
- </xsl:if>
-
- <xsl:apply-templates select="$preamble"/>
-
- <fo:list-block xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="2em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates select="$steps"/>
- </fo:list-block>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="procedure/title">
-</xsl:template>
-
-<xsl:template match="procedure/title" mode="procedure.title.mode">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="substeps">
- <fo:list-block xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="2em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates/>
- </fo:list-block>
-</xsl:template>
-
-<xsl:template match="step">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block id="{$id}">
- <xsl:apply-templates select="." mode="number">
- <xsl:with-param name="recursive" select="0"/>
- </xsl:apply-templates>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="segmentedlist">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="segmentedlist/title">
- <fo:block font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</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: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
- -->
-
- <fo:block>
- <fo:inline font-weight="bold">
- <xsl:apply-templates select="$segtitles[$segnum=position()]"
- mode="segtitle-in-seg"/>
- <xsl:text>: </xsl:text>
- </fo:inline>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="calloutlist">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:if test="./title">
- <fo:block font-weight="bold">
- <xsl:apply-templates select="./title" mode="calloutlist.title.mode"/>
- </fo:block>
- </xsl:if>
-
- <fo:list-block space-before.optimum="1em"
- space-before.minimum="0.8em"
- space-before.maximum="1.2em"
- provisional-distance-between-starts="2.2em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates/>
- </fo:list-block>
- </fo:block>
-</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">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <fo:list-item id="{$id}">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>
- <xsl:call-template name="callout.arearefs">
- <xsl:with-param name="arearefs" select="@arearefs"/>
- </xsl:call-template>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates/>
- </fo:list-item-body>
- </fo:list-item>
-</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="id($arearef)"/>
- <xsl:variable name="target" select="$targets[1]"/>
-
- <xsl:choose>
- <xsl:when test="count($target)=0">
- <xsl:value-of select="$arearef"/>
- <xsl:text>: ???</xsl:text>
- </xsl:when>
- <xsl:when test="local-name($target)='co'">
- <xsl:apply-templates select="$target" mode="callout-bug"/>
- </xsl:when>
- <xsl:when test="local-name($target)='areaset'">
- <xsl:call-template name="callout-bug">
- <xsl:with-param name="conum">
- <xsl:apply-templates select="$target" mode="conumber"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="local-name($target)='area'">
- <xsl:choose>
- <xsl:when test="$target/parent::areaset">
- <xsl:call-template name="callout-bug">
- <xsl:with-param name="conum">
- <xsl:apply-templates select="$target/parent::areaset"
- mode="conumber"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="callout-bug">
- <xsl:with-param name="conum">
- <xsl:apply-templates select="$target" mode="conumber"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>???</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/math.xsl b/lib/docbook/docbook-xsl/fo/math.xsl
deleted file mode 100644
index 2ea3fdc04..000000000
--- a/lib/docbook/docbook-xsl/fo/math.xsl
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:mml="http://www.w3.org/1998/Math/MathML"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: math.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template match="inlineequation">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="alt">
-</xsl:template>
-
-<!-- just send the MathML all the way through... -->
-<xsl:template match="mml:*">
- <xsl:element name="{name(.)}">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates select="node()"/>
- </xsl:element>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/pagesetup.xsl b/lib/docbook/docbook-xsl/fo/pagesetup.xsl
deleted file mode 100644
index 4aa04dd5a..000000000
--- a/lib/docbook/docbook-xsl/fo/pagesetup.xsl
+++ /dev/null
@@ -1,431 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0">
-
-<!-- ==================================================================== -->
-
-<xsl:template name="setup.pagemasters">
- <fo:layout-master-set>
- <!-- one sided, single column -->
- <fo:simple-page-master master-name="blank"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.outer}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-blank"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-blank"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- one sided, single column -->
- <fo:simple-page-master master-name="simple1"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.outer}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before extent="{$region.before.extent}"/>
- <fo:region-after extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- for left-hand/even pages in twosided mode, single column -->
- <fo:simple-page-master master-name="left1"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.outer}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-left"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-left"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- for right-hand/odd pages in twosided mode, single column -->
- <fo:simple-page-master master-name="right1"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.inner}"
- margin-right="{$page.margin.outer}">
- <fo:region-body
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-right"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-right"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- special case of first page in either mode, single column -->
- <fo:simple-page-master master-name="first1"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.inner}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-first"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-first"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- for pages in one-side mode, 2 column -->
- <fo:simple-page-master master-name="simple2"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.outer}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- column-count="{$column.count}"
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before extent="{$region.before.extent}"/>
- <fo:region-after extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- for left-hand/even pages in twosided mode, 2 column -->
- <fo:simple-page-master master-name="left2"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.outer}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- column-count="{$column.count}"
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-left"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-left"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- for right-hand/odd pages in twosided mode, 2 column -->
- <fo:simple-page-master master-name="right2"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.inner}"
- margin-right="{$page.margin.outer}">
- <fo:region-body
- column-count="{$column.count}"
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-right"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-right"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- special case of first page in either mode -->
- <fo:simple-page-master master-name="first2"
- page-width="{$page.width}"
- page-height="{$page.height}"
- margin-top="{$page.margin.top}"
- margin-bottom="{$page.margin.bottom}"
- margin-left="{$page.margin.inner}"
- margin-right="{$page.margin.inner}">
- <fo:region-body
- column-count="1"
- margin-bottom="{$body.margin.bottom}"
- margin-top="{$body.margin.top}"/>
- <fo:region-before region-name="xsl-region-before-first"
- extent="{$region.before.extent}"/>
- <fo:region-after region-name="xsl-region-after-first"
- extent="{$region.after.extent}"/>
- </fo:simple-page-master>
-
- <!-- setup for title-page, 1 column -->
- <fo:page-sequence-master master-name="titlepage1">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="first1"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <!-- setup for single-sided, 1 column -->
- <fo:page-sequence-master master-name="oneside1">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="simple1"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <!-- setup for double-sided, 1 column -->
- <fo:page-sequence-master master-name="twoside1">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="blank"
- blank-or-not-blank="blank"/>
- <fo:conditional-page-master-reference master-reference="right1"
- odd-or-even="odd"/>
- <fo:conditional-page-master-reference master-reference="left1"
- odd-or-even="even"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <!-- setup for title-page, 2 column -->
- <fo:page-sequence-master master-name="titlepage2">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="first2"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <!-- setup for single-sided, 2 column -->
- <fo:page-sequence-master master-name="oneside2">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="simple2"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <!-- setup for double-sided, 2 column -->
- <fo:page-sequence-master master-name="twoside2">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="blank"
- blank-or-not-blank="blank"/>
- <fo:conditional-page-master-reference master-reference="right2"
- odd-or-even="odd"/>
- <fo:conditional-page-master-reference master-reference="left2"
- odd-or-even="even"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- <xsl:call-template name="user.pagemasters"/>
-
- </fo:layout-master-set>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="user.pagemasters"/> <!-- intentionally empty -->
-
-<!-- ==================================================================== -->
-
-<!-- $double.sided, $column.count, and context -->
-
-<xsl:template name="select.pagemaster">
- <xsl:param name="element" select="local-name(.)"/>
- <xsl:choose>
- <xsl:when test="$double.sided != 0">
- <xsl:choose>
- <xsl:when test="$column.count &gt; 1">
- <xsl:call-template name="select.doublesided.multicolumn.pagemaster">
- <xsl:with-param name="element" select="$element"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="select.doublesided.pagemaster">
- <xsl:with-param name="element" select="$element"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$column.count &gt; 1">
- <xsl:call-template name="select.singlesided.multicolumn.pagemaster">
- <xsl:with-param name="element" select="$element"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="select.singlesided.pagemaster">
- <xsl:with-param name="element" select="$element"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="select.doublesided.multicolumn.pagemaster">
- <xsl:param name="element" select="local-name(.)"/>
- <xsl:choose>
- <xsl:when test="$element='set' or $element='book' or $element='part'">
- <xsl:text>titlepage2</xsl:text>
- </xsl:when>
- <xsl:otherwise>twoside2</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="select.doublesided.pagemaster">
- <xsl:param name="element" select="local-name(.)"/>
- <xsl:choose>
- <xsl:when test="$element='set' or $element='book' or $element='part'">
- <xsl:text>titlepage1</xsl:text>
- </xsl:when>
- <xsl:otherwise>twoside1</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="select.singlesided.multicolumn.pagemaster">
- <xsl:param name="element" select="local-name(.)"/>
- <xsl:choose>
- <xsl:when test="$element='set' or $element='book' or $element='part'">
- <xsl:text>titlepage2</xsl:text>
- </xsl:when>
- <xsl:otherwise>oneside2</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="select.singlesided.pagemaster">
- <xsl:param name="element" select="local-name(.)"/>
- <xsl:choose>
- <xsl:when test="$element='set' or $element='book' or $element='part'">
- <xsl:text>titlepage1</xsl:text>
- </xsl:when>
- <xsl:otherwise>oneside1</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*" mode="running.head.mode">
- <xsl:param name="master-name" select="'unknown'"/>
- <!-- by default, nothing -->
- <xsl:choose>
- <xsl:when test="$master-name='titlepage1'">
- </xsl:when>
- <xsl:when test="$master-name='oneside1'">
- </xsl:when>
- <xsl:when test="$master-name='twoside1'">
- </xsl:when>
- <xsl:when test="$master-name='titlepage2'">
- </xsl:when>
- <xsl:when test="$master-name='oneside2'">
- </xsl:when>
- <xsl:when test="$master-name='twoside2'">
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="chapter|appendix" mode="running.head.mode">
- <xsl:param name="master-name" select="'unknown'"/>
- <xsl:variable name="head">
- <fo:block font-size="{$body.font.size}">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </fo:block>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$master-name='titlepage1'"></xsl:when>
- <xsl:when test="$master-name='oneside1'">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block text-align="center">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='twoside1'">
- <fo:static-content flow-name="xsl-region-before-left">
- <fo:block text-align="right">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-before-right">
- <fo:block text-align="left">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='titlepage2'"></xsl:when>
- <xsl:when test="$master-name='oneside2'">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block text-align="center">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='twoside2'">
- <fo:static-content flow-name="xsl-region-before-left">
- <fo:block text-align="right">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-before-right">
- <fo:block text-align="left">
- <xsl:copy-of select="$head"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="*" mode="running.foot.mode">
- <xsl:param name="master-name" select="'unknown'"/>
- <xsl:variable name="foot">
- <fo:page-number/>
- </xsl:variable>
- <!-- by default, the page number -->
- <xsl:choose>
- <xsl:when test="$master-name='titlepage1'"></xsl:when>
- <xsl:when test="$master-name='oneside1'">
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="center" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='twoside1'">
- <fo:static-content flow-name="xsl-region-after-left">
- <fo:block text-align="left" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after-right">
- <fo:block text-align="right" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='titlepage2'"></xsl:when>
- <xsl:when test="$master-name='oneside2'">
- <fo:static-content flow-name="xsl-after-before">
- <fo:block text-align="center" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- <xsl:when test="$master-name='twoside2'">
- <fo:static-content flow-name="xsl-region-after-left">
- <fo:block text-align="left" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after-right">
- <fo:block text-align="right" font-size="{$body.font.size}">
- <xsl:copy-of select="$foot"/>
- </fo:block>
- </fo:static-content>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="set|book|part|reference" mode="running.foot.mode">
- <!-- nothing -->
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet> \ No newline at end of file
diff --git a/lib/docbook/docbook-xsl/fo/param.xsl b/lib/docbook/docbook-xsl/fo/param.xsl
deleted file mode 100644
index bdf3b485d..000000000
--- a/lib/docbook/docbook-xsl/fo/param.xsl
+++ /dev/null
@@ -1,1268 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- exclude-result-prefixes="doc"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: param.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<doc:reference xmlns="">
-<referenceinfo>
-<releaseinfo role="meta">
-$Id: param.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
-</releaseinfo>
-<author><surname>Walsh</surname>
-<firstname>Norman</firstname></author>
-<copyright><year>1999</year><year>2000</year>
-<holder>Norman Walsh</holder>
-</copyright>
-</referenceinfo>
-<title>Formatting Object Parameter Reference</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>
-
-<para>This reference describes each of the Formatting Object
-Stylesheet parameters. These are the <quote>easily
-customizable</quote> parts of the stylesheet. If you want to specify
-an alternate value for one or more of these parameters, you can do so
-in a <quote>driver</quote> stylesheet.</para>
-
-<para>For example, if you want to turn on automatic section numbering,
-you might create a driver stylesheet like this:</para>
-
-<programlisting><![CDATA[<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
-
- <xsl:import href="/path/to/fo/docbook.xsl"/>
-
- <xsl:param name="section.autolabel" select="1"/>
-
-</xsl:stylesheet>]]></programlisting>
-
-<para>Naturally, you have to change the
-<sgmltag class='attribute'>href</sgmltag> attribute on
-<literal>&lt;xsl:import&gt;</literal>
-to point to <filename>docbook.xsl</filename>
-on your system.</para>
-
-<para>This is not intended to be <quote>user</quote> documentation.
-It is provided for developers writing customization layers for the
-stylesheets, and for anyone who's interested in <quote>how it
-works</quote>.</para>
-
-<para>Although I am trying to be thorough, this documentation is known
-to be incomplete. Don't forget to read the source, too :-)</para>
-</section>
-</partintro>
-</doc:reference>
-
-<xsl:param name="author.othername.in.middle" select="1"/>
-<xsl:param name="html.stylesheet">docbook.css</xsl:param>
-<xsl:param name="html.stylesheet.type">text/css</xsl:param>
-<xsl:param name="refentry.xref.manvolnum" select="1"/>
-<xsl:param name="show.comments" select="1"/>
-<xsl:param name="funcsynopsis.style">kr</xsl:param>
-<xsl:param name="funcsynopsis.decoration" select="1"/>
-<xsl:param name="refentry.generate.name" select="1"/>
-
-<xsl:param name="admon.graphics" select="0"/>
-<xsl:param name="admon.graphics.path">../images/</xsl:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="admon.graphics.extension" select="'.png'" doc:type='string'/>
-
-<doc:param name="admon.graphics.extension" xmlns="">
-<refpurpose>Extension for admonition graphics</refpurpose>
-<refdescription>
-<para>Sets the extension to use on admonition graphics.</para>
-</refdescription>
-</doc:param>
-
-<xsl:param name="section.autolabel" select="0"/>
-<xsl:param name="section.label.includes.component.label" select="0"/>
-<xsl:param name="chapter.autolabel" select="1"/>
-<xsl:param name="appendix.autolabel" select="1"/>
-<xsl:param name="part.autolabel" select="1"/>
-<xsl:param name="preface.autolabel" select="0"/>
-
-<xsl:param name="biblioentry.item.separator">. </xsl:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="qandadiv.autolabel" select="1"/>
-
-<doc:variable name="qandadiv.autolabel" xmlns="">
-<refpurpose>Are divisions in QAndASets enumerated?</refpurpose>
-<refdescription>
-<para>If true (non-zero), unlabeled qandadivs will be enumerated.
-</para>
-</refdescription>
-</doc:variable>
-
-<!-- ==================================================================== -->
-<xsl:param name="qanda.inherit.numeration" select="0"/>
-
-<doc:variable name="qanda.inherit.numeration" xmlns="">
-<refpurpose>Does enumeration of QandASet components inherit the numeration of parent elements?</refpurpose>
-<refdescription>
-<para>If true (non-zero), numbered QandADiv elements and Questions and Answers inherit
-the numeration of the ancestors of the QandASet.
-</para>
-</refdescription>
-</doc:variable>
-
-<!-- ==================================================================== -->
-
-<xsl:param name="graphic.default.extension"></xsl:param>
-
-<doc:variable name="graphic.default.extension" xmlns="">
-<refpurpose>Default extension for graphic filenames</refpurpose>
-<refdescription>
-<para>If a <sgmltag>graphic</sgmltag> or <sgmltag>mediaobject</sgmltag>
-includes a reference to a filename that does not include an extension,
-and the <sgmltag class="attribute">format</sgmltag> attribute is
-<emphasis>unspecified</emphasis>, the default extension will be used.
-</para>
-</refdescription>
-</doc:variable>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="formal.object.properties">
- <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
- <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="formal.title.properties"
- use-attribute-sets="normal.para.spacing">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">12pt</xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="formal.title.properties" xmlns="">
-<refpurpose>Properties of formal object titles</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the properties of formal
-object titles.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="component.title.properties">
- <xsl:attribute name="space-before.optimum">2em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">1.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">2.2em</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">18pt</xsl:attribute>
- <xsl:attribute name="space-after.optimum">1.5em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">1.3em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">1.8em</xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="component.title.properties" xmlns="">
-<refpurpose>Properties of component titles</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the properties of component
-titles.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="admonition.title.properties">
- <xsl:attribute name="font-size">14pt</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="admonition.title.properties" xmlns="">
-<refpurpose>Properties of admonition titles</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the properties of admonition
-titles.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="toc.margin.properties">
- <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="verbatim.properties">
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="monospace.verbatim.properties"
- use-attribute-sets="verbatim.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$monospace.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 0.9"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="xref.properties">
-<!--
- <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
- <xsl:attribute name="padding-start">1pt</xsl:attribute>
- <xsl:attribute name="padding-end">1pt</xsl:attribute>
--->
-</xsl:attribute-set>
-
-<doc:attribute-set name="xref.properties" xmlns="">
-<refpurpose>Visual properties of hotlinks</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify properties of xrefs
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:param name="insert.xref.page.number" select="0" doc:type='boolean'/>
-<doc:param name="insert.xref.page.number" xmlns="">
-<refpurpose>Turns page numbers in xrefs on and off</refpurpose>
-<refdescription>
-<para>When equal to 1, this parameter triggers generation of page
-number citations after xrefs.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:attribute-set name="normal.para.spacing">
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="normal.para.spacing" xmlns="">
-<refpurpose>Spacing properties of normal paragraphs</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the spacing properties
-of normal paragraphs.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-
-<xsl:attribute-set name="list.block.spacing">
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="list.block.spacing" xmlns="">
-<refpurpose>Spacing properties of list blocks</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the spacing properties
-of list blocks.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-
-<xsl:attribute-set name="list.item.spacing">
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-</xsl:attribute-set>
-
-<doc:attribute-set name="list.item.spacing" xmlns="">
-<refpurpose>Spacing properties of list items</refpurpose>
-<refdescription>
-<para>This attribute set is used to specify the spacing properties
-of list items.
-</para>
-</refdescription>
-</doc:attribute-set>
-
-<!-- ==================================================================== -->
-<xsl:param name="rootid" select="''"/>
-
-<doc:param name="rootid" xmlns="">
-<refpurpose>Specify the root element to format</refpurpose>
-<refdescription>
-<para>If <parameter>rootid</parameter> is specified, it must be the
-value of an ID that occurs in the document being formatted. The entire
-document will be loaded and parsed, but formatting will begin at the
-element identified, rather than at the root. For example, this allows
-you to process only chapter 4 of a book.</para>
-<para>Because the entire document is available to the processor, automatic
-numbering, cross references, and other dependencies are correctly
-resolved.</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.graphics" select="'0'"/>
-
-<doc:param name="callout.graphics" xmlns="">
-<refpurpose>Use graphics for callouts?</refpurpose>
-<refdescription>
-<para>If non-zero, callouts are presented with graphics (e.g., reverse-video
-circled numbers instead of "(1)", "(2)", etc.).
-Default graphics are provided in the distribution.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.unicode" select="1"/>
-
-<doc:param name="callout.unicode" xmlns="">
-<refpurpose>First character to use for Unicode callouts</refpurpose>
-<refdescription>
-<para>If non-zero, callouts are presented with Unicode characters
-starting with the character specified. Zero indicates that Unicode
-callouts should not be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.unicode.font" select="'ZapfDingbats'"/>
-
-<doc:param name="callout.unicode.font" xmlns="">
-<refpurpose>Font to use for Unicode dingbats</refpurpose>
-<refdescription>
-<para>The name of the font to specify around Unicode callout glyphs.
-If set to the empty string, no font change will occur.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.unicode.start.character" select="10102"
- doc:type='integer'/>
-
-<doc:param name="callout.unicode.start.character" xmlns="">
-<refpurpose>Number of the largest callout graphic</refpurpose>
-<refdescription>
-<para>If <parameter>callout.graphics</parameter>
-is non-zero, graphics are used to represent
-callout numbers. The value of
-<parameter>callout.graphics.number.limit</parameter>
-is
-the largest number for which a graphic exists. If the callout number
-exceeds this limit, the default presentation "(nnn)" will always
-be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.unicode.number.limit" select="'10'"
- doc:type='integer'/>
-
-<doc:param name="callout.unicode.number.limit" xmlns="">
-<refpurpose>Number of the largest callout graphic</refpurpose>
-<refdescription>
-<para>If <parameter>callout.graphics</parameter>
-is non-zero, graphics are used to represent
-callout numbers. The value of
-<parameter>callout.graphics.number.limit</parameter>
-is
-the largest number for which a graphic exists. If the callout number
-exceeds this limit, the default presentation "(nnn)" will always
-be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.graphics.extension" select="'.png'"/>
-
-<doc:param name="callout.graphics.extension" xmlns="">
-<refpurpose>Extension for callout graphics</refpurpose>
-<refdescription>
-<para>Sets the extension to use on callout graphics.</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.graphics.path" select="'../images/callouts/'"/>
-
-<doc:param name="callout.graphics.path" xmlns="">
-<refpurpose>Path to callout graphics</refpurpose>
-<refdescription>
-<para>Sets the path, probably relative to the directory where the HTML
-files are created, to the callout graphics.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.graphics.number.limit" select="'10'"/>
-
-<doc:param name="callout.graphics.number.limit" xmlns="">
-<refpurpose>Number of the largest callout graphic</refpurpose>
-<refdescription>
-<para>If <parameter>callout.graphics</parameter>
-is non-zero, graphics are used to represent
-callout numbers. The value of
-<parameter>callout.graphics.number.limit</parameter>
-is
-the largest number for which a graphic exists. If the callout number
-exceeds this limit, the default presentation "(nnn)" will always
-be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="use.extensions" select="'0'"/>
-
-<doc:param name="use.extensions" xmlns="">
-<refpurpose>Enable extensions</refpurpose>
-<refdescription>
-<para>If non-zero, extensions may be used. Each extension is
-further controlled by its own parameter. But if
-<parameter>use.extensions</parameter> is zero, no extensions will
-be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="textinsert.extension" select="'1'"/>
-
-<doc:param name="textinsert.extension" xmlns="">
-<refpurpose>Enable the textinsert extension element</refpurpose>
-<refdescription>
-<para>The textinsert extension element inserts the contents of a
-a file into the result tree (as text).
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="linenumbering.extension" select="'1'"/>
-
-<doc:param name="linenumbering.extension" xmlns="">
-<refpurpose>Enable the line numbering extension</refpurpose>
-<refdescription>
-<para>If true, verbatim environments (elements that have the
-format='linespecific' notation attribute: address, literallayout,
-programlisting, screen, synopsis) that specify line numbering will
-have, surprise, line numbers.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="linenumbering.everyNth" select="'5'"/>
-
-<doc:param name="linenumbering.everyNth" xmlns="">
-<refpurpose>Indicate which lines should be numbered</refpurpose>
-<refdescription>
-<para>If line numbering is enabled, everyNth line will be numbered.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="linenumbering.width" select="'3'"/>
-
-<doc:param name="linenumbering.width" xmlns="">
-<refpurpose>Indicates the width of line numbers</refpurpose>
-<refdescription>
-<para>If line numbering is enabled, line numbers will appear right
-justified in a field "width" characters wide.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="linenumbering.separator" select="' '"/>
-
-<doc:param name="linenumbering.separator" xmlns="">
-<refpurpose>Specify a separator between line numbers and lines</refpurpose>
-<refdescription>
-<para>The separator is inserted between line numbers and lines in
-the verbatim environment.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callouts.extension" select="'1'"/>
-
-<doc:param name="callouts.extension" xmlns="">
-<refpurpose>Enable the callout extension</refpurpose>
-<refdescription>
-<para>The callouts extension processes <sgmltag>areaset</sgmltag>
-elements in <sgmltag>ProgramListingCO</sgmltag> and other text-based
-callout elements.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="callout.defaultcolumn" select="'60'"/>
-
-<doc:param name="callout.defaultcolumn" xmlns="">
-<refpurpose>Indicates what column callouts appear in by default</refpurpose>
-<refdescription>
-<para>If a callout does not identify a column (for example, if it uses
-the <literal>linerange</literal> <sgmltag class="attribute">unit</sgmltag>),
-it will appear in the default column.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="tablecolumns.extension" select="'1'" doc:type='boolean'/>
-
-<doc:param name="tablecolumns.extension" xmlns="">
-<refpurpose>Enable the table columns extension function</refpurpose>
-<refdescription>
-<para>The table columns extension function adjusts the widths of table
-columns in the HTML result to more accurately reflect the specifications
-in the CALS table.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="nominal.table.width" select="'6in'" doc:type='length'/>
-
-<doc:param name="nominal.table.width" xmlns="">
-<refpurpose>The (absolute) nominal width of tables</refpurpose>
-<refdescription>
-<para>In order to convert CALS column widths into FO column widths, it
-is sometimes necessary to have an absolute table width to use for conversion
-of mixed absolute and relative widths. This value must be an absolute
-length (not a percentage).</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="default.table.width" select="''" doc:type='length'/>
-
-<doc:param name="default.table.width" xmlns="">
-<refpurpose>The default width of tables</refpurpose>
-<refdescription>
-<para>If specified, this value will be used for the WIDTH attribute on
-tables that do not specify an alternate width (with the dbhtml processing
-instruction).</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="paper.type" select="'USletter'"/>
-<doc:param name="paper.type" xmlns="">
-<refpurpose>Select the paper type</refpurpose>
-<refdescription>
-<para>The paper type is a convenient way to specify the paper size.
-The list of known paper sizes includes USletter and most of the A,
-B, and C sizes. See <literal>page.width.portrait</literal>, for example.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.orientation" select="'portrait'"/>
-<doc:param name="page.orientation" xmlns="">
-<refpurpose>Select the page orientation</refpurpose>
-<refdescription>
-<para>In portrait orientation, the short edge is horizontal; in
-landscape orientation, it is vertical.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.width.portrait">
- <xsl:choose>
- <xsl:when test="$paper.type = 'USletter'">8.5in</xsl:when>
- <xsl:when test="$paper.type = '4A0'">1682mm</xsl:when>
- <xsl:when test="$paper.type = '2A0'">1189mm</xsl:when>
- <xsl:when test="$paper.type = 'A0'">841mm</xsl:when>
- <xsl:when test="$paper.type = 'A1'">594mm</xsl:when>
- <xsl:when test="$paper.type = 'A2'">420mm</xsl:when>
- <xsl:when test="$paper.type = 'A3'">297mm</xsl:when>
- <xsl:when test="$paper.type = 'A4'">210mm</xsl:when>
- <xsl:when test="$paper.type = 'A5'">148mm</xsl:when>
- <xsl:when test="$paper.type = 'A6'">105mm</xsl:when>
- <xsl:when test="$paper.type = 'A7'">74mm</xsl:when>
- <xsl:when test="$paper.type = 'A8'">52mm</xsl:when>
- <xsl:when test="$paper.type = 'A9'">37mm</xsl:when>
- <xsl:when test="$paper.type = 'A10'">26mm</xsl:when>
- <xsl:when test="$paper.type = 'B0'">1000mm</xsl:when>
- <xsl:when test="$paper.type = 'B1'">707mm</xsl:when>
- <xsl:when test="$paper.type = 'B2'">500mm</xsl:when>
- <xsl:when test="$paper.type = 'B3'">353mm</xsl:when>
- <xsl:when test="$paper.type = 'B4'">250mm</xsl:when>
- <xsl:when test="$paper.type = 'B5'">176mm</xsl:when>
- <xsl:when test="$paper.type = 'B6'">125mm</xsl:when>
- <xsl:when test="$paper.type = 'B7'">88mm</xsl:when>
- <xsl:when test="$paper.type = 'B8'">62mm</xsl:when>
- <xsl:when test="$paper.type = 'B9'">44mm</xsl:when>
- <xsl:when test="$paper.type = 'B10'">31mm</xsl:when>
- <xsl:when test="$paper.type = 'C0'">917mm</xsl:when>
- <xsl:when test="$paper.type = 'C1'">648mm</xsl:when>
- <xsl:when test="$paper.type = 'C2'">458mm</xsl:when>
- <xsl:when test="$paper.type = 'C3'">324mm</xsl:when>
- <xsl:when test="$paper.type = 'C4'">229mm</xsl:when>
- <xsl:when test="$paper.type = 'C5'">162mm</xsl:when>
- <xsl:when test="$paper.type = 'C6'">114mm</xsl:when>
- <xsl:when test="$paper.type = 'C7'">81mm</xsl:when>
- <xsl:when test="$paper.type = 'C8'">57mm</xsl:when>
- <xsl:when test="$paper.type = 'C9'">40mm</xsl:when>
- <xsl:when test="$paper.type = 'C10'">28mm</xsl:when>
- <xsl:otherwise>8.5in</xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.width.portrait" xmlns="">
-<refpurpose>Specify the physical size of the short edge of the page</refpurpose>
-<refdescription>
-<para>The portrait page width is the length of the short
-edge of the physical page.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.height.portrait">
- <xsl:choose>
- <xsl:when test="$paper.type = 'A4landscape'">210mm</xsl:when>
- <xsl:when test="$paper.type = 'USletter'">11in</xsl:when>
- <xsl:when test="$paper.type = 'USlandscape'">8.5in</xsl:when>
- <xsl:when test="$paper.type = '4A0'">2378mm</xsl:when>
- <xsl:when test="$paper.type = '2A0'">1682mm</xsl:when>
- <xsl:when test="$paper.type = 'A0'">1189mm</xsl:when>
- <xsl:when test="$paper.type = 'A1'">841mm</xsl:when>
- <xsl:when test="$paper.type = 'A2'">594mm</xsl:when>
- <xsl:when test="$paper.type = 'A3'">420mm</xsl:when>
- <xsl:when test="$paper.type = 'A4'">297mm</xsl:when>
- <xsl:when test="$paper.type = 'A5'">210mm</xsl:when>
- <xsl:when test="$paper.type = 'A6'">148mm</xsl:when>
- <xsl:when test="$paper.type = 'A7'">105mm</xsl:when>
- <xsl:when test="$paper.type = 'A8'">74mm</xsl:when>
- <xsl:when test="$paper.type = 'A9'">52mm</xsl:when>
- <xsl:when test="$paper.type = 'A10'">37mm</xsl:when>
- <xsl:when test="$paper.type = 'B0'">1414mm</xsl:when>
- <xsl:when test="$paper.type = 'B1'">1000mm</xsl:when>
- <xsl:when test="$paper.type = 'B2'">707mm</xsl:when>
- <xsl:when test="$paper.type = 'B3'">500mm</xsl:when>
- <xsl:when test="$paper.type = 'B4'">353mm</xsl:when>
- <xsl:when test="$paper.type = 'B5'">250mm</xsl:when>
- <xsl:when test="$paper.type = 'B6'">176mm</xsl:when>
- <xsl:when test="$paper.type = 'B7'">125mm</xsl:when>
- <xsl:when test="$paper.type = 'B8'">88mm</xsl:when>
- <xsl:when test="$paper.type = 'B9'">62mm</xsl:when>
- <xsl:when test="$paper.type = 'B10'">44mm</xsl:when>
- <xsl:when test="$paper.type = 'C0'">1297mm</xsl:when>
- <xsl:when test="$paper.type = 'C1'">917mm</xsl:when>
- <xsl:when test="$paper.type = 'C2'">648mm</xsl:when>
- <xsl:when test="$paper.type = 'C3'">458mm</xsl:when>
- <xsl:when test="$paper.type = 'C4'">324mm</xsl:when>
- <xsl:when test="$paper.type = 'C5'">229mm</xsl:when>
- <xsl:when test="$paper.type = 'C6'">162mm</xsl:when>
- <xsl:when test="$paper.type = 'C7'">114mm</xsl:when>
- <xsl:when test="$paper.type = 'C8'">81mm</xsl:when>
- <xsl:when test="$paper.type = 'C9'">57mm</xsl:when>
- <xsl:when test="$paper.type = 'C10'">40mm</xsl:when>
- <xsl:otherwise>11in</xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.height.portrait" xmlns="">
-<refpurpose>Specify the physical size of the long edge of the page</refpurpose>
-<refdescription>
-<para>The portrait page height is the length of the long
-edge of the physical page.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.width">
- <xsl:choose>
- <xsl:when test="$page.orientation = 'portrait'">
- <xsl:value-of select="$page.width.portrait"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$page.height.portrait"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.width" xmlns="">
-<refpurpose>The width of the physical page</refpurpose>
-<refdescription>
-<para>The page width is generally calculated from the
-<literal>paper.type</literal> and
-<literal>page.orientation</literal>.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.height">
- <xsl:choose>
- <xsl:when test="$page.orientation = 'portrait'">
- <xsl:value-of select="$page.height.portrait"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$page.width.portrait"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.height" xmlns="">
-<refpurpose>The height of the physical page</refpurpose>
-<refdescription>
-<para>The page height is generally calculated from the
-<literal>paper.type</literal> and
-<literal>page.orientation</literal>.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="double.sided" select="'0'"/>
-
-<doc:param name="double.sided" xmlns="">
-<refpurpose>Is the document to be printed double sided?</refpurpose>
-<refdescription>
-<para>Double-sided documents are printed with a slightly wider margin
-on the binding edge of the page.
-</para>
-<para>FIXME: The current set of parameters does not take writing direction
-into account.</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="column.count" select="'1'"/>
-
-<doc:param name="column.count" xmlns="">
-<refpurpose>Specifies the number of columns of text on the page</refpurpose>
-<refdescription>
-<para>The specified number of columns of text will appear on each page.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="region.after.extent" select="'12pt'"/>
-
-<doc:param name="region.after.extent" xmlns="">
-<refpurpose>Specifies the height of the footer.</refpurpose>
-<refdescription>
-<para>The region after extent is the height of the area where footers
-are printed.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="region.before.extent" select="'12pt'"/>
-
-<doc:param name="region.before.extent" xmlns="">
-<refpurpose>Specifies the height of the header</refpurpose>
-<refdescription>
-<para>The region before extent is the height of the area where headers
-are printed.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.margin.top">1in</xsl:param>
-
-<doc:param name="page.margin.top" xmlns="">
-<refpurpose>The top margin of the page</refpurpose>
-<refdescription>
-<para>The top page margin is the distance from the physical top of the
-page to the first line of text (body or header).
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.margin.bottom">1in</xsl:param>
-
-<doc:param name="page.margin.bottom" xmlns="">
-<refpurpose>The bottom margin of the page</refpurpose>
-<refdescription>
-<para>The bottom page margin is the distance from the physical bottom of
-the page to the last line of text (body or footer).
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.margin.inner">
- <xsl:choose>
- <xsl:when test="$double.sided != 0">1.25in</xsl:when>
- <xsl:otherwise>1in</xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.margin.inner" xmlns="">
-<refpurpose>The inner page margin</refpurpose>
-<refdescription>
-<para>The inner page margin is the distance from binding edge of the
-page to the first column of text. In the left-to-right, top-to-bottom writing
-direction, this is the left margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="page.margin.outer">
- <xsl:choose>
- <xsl:when test="$double.sided != 0">0.75in</xsl:when>
- <xsl:otherwise>10pc</xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-<doc:param name="page.margin.outer" xmlns="">
-<refpurpose>The outer page margin</refpurpose>
-<refdescription>
-<para>The outer page margin is the distance from non-binding edge of the
-page to the last column of text. In the left-to-right, top-to-bottom writing
-direction, this is the right margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="body.margin.bottom">24pt</xsl:param>
-
-<doc:param name="body.margin.bottom" xmlns="">
-<refpurpose>The bottom margin of the body text</refpurpose>
-<refdescription>
-<para>The body bottom margin is the distance from the last line of text
-in the page body to the bottom page margin. Note that the page footer, if
-any, appears in the space between the body bottom margin and the page
-bottom margin.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="body.margin.top">24pt</xsl:param>
-
-<doc:param name="body.margin.top" xmlns="">
-<refpurpose>FIXME:</refpurpose>
-<refdescription>
-<para>The body top margin is the distance from the page top margin to
-the first line of text
-in the page body. Note that the page header, if
-any, appears in the space between the page top margin and the body
-top margin.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="body.font.family">Times Roman</xsl:param>
-
-<doc:param name="body.font.family" xmlns="">
-<refpurpose>The default font family for body text</refpurpose>
-<refdescription>
-<para>The body font family is the default font used for text in the page body.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="title.font.family">Helvetica</xsl:param>
-
-<doc:param name="title.font.family" xmlns="">
-<refpurpose>The default font family for titles</refpurpose>
-<refdescription>
-<para>The title font family is used for titles (chapter, section, figure,
-etc.)
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="monospace.font.family">Courier</xsl:param>
-
-<doc:param name="monospace.font.family" xmlns="">
-<refpurpose>The default font family for monospace environments</refpurpose>
-<refdescription>
-<para>The monospace font family is used for verbatim environments
-(program listings, screens, etc.).
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="sans.font.family">Helvetica</xsl:param>
-
-<doc:param name="sans.font.family" xmlns="">
-<refpurpose>The default sans-serif font family</refpurpose>
-<refdescription>
-<para>The default sans-serif font family. At the present, this isn't
-actually used by the stylesheets.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="dingbat.font.family">Times Roman</xsl:param>
-
-<doc:param name="dingbat.font.family" xmlns="">
-<refpurpose>The font family for copyright, quotes, and other symbols</refpurpose>
-<refdescription>
-<para>The dingbat font family is used for dingbats. If it is defined
-as the empty string, no font change is effected around dingbats.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="body.font.master">10</xsl:param>
-
-<doc:param name="body.font.master" xmlns="">
-<refpurpose>Specifies the default point size for body text</refpurpose>
-<refdescription>
-<para>The body font size is specified in two parameters
-(<varname>body.font.master</varname> and <varname>body.font.size</varname>)
-so that math can be performed on the font size by XSLT.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="body.font.size">
- <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
-</xsl:param>
-
-<doc:param name="body.font.size" xmlns="">
-<refpurpose>Specifies the default font size for body text</refpurpose>
-<refdescription>
-<para>The body font size is specified in two parameters
-(<varname>body.font.master</varname> and <varname>body.font.size</varname>)
-so that math can be performed on the font size by XSLT.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="footnote.font.size">
- <xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
-</xsl:param>
-
-<doc:param name="footnote.font.size" xmlns="">
-<refpurpose>The font size for footnotes</refpurpose>
-<refdescription>
-<para>The footnote font size is used for...footnotes!
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<!-- general H&J setup -->
-<xsl:param name="hyphenate">true</xsl:param>
-
-<doc:param name="hyphenate" xmlns="">
-<refpurpose>Specify hyphenation behavior</refpurpose>
-<refdescription>
-<para>If true, words may be hyphenated. Otherwise, they may not.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="alignment">justify</xsl:param>
-
-<doc:param name="alignment" xmlns="">
-<refpurpose>Specify the default text alignment</refpurpose>
-<refdescription>
-<para>The default text alignment is used for most body text.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="stylesheet.result.type" select="'fo'"/>
-
-<doc:param name="stylesheet.result.type" xmlns="">
-<refpurpose>Identifies the output format of this stylesheet</refpurpose>
-<refdescription>
-<para>The extension functions need to know if the output format
-is HTML ('html') or XSL Formatting Objects ('fo'). This variable answers
-that question. Valid settings are 'html' or 'fo'.</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.component.toc" select="0" doc:type='boolean'/>
-
-<doc:param name="generate.component.toc" xmlns="">
-<refpurpose>Generate a table of contents for components?</refpurpose>
-<refdescription>
-<para>If non-zero, a table of contents is generated at the beginning
-of each component (chapters, appendixes, etc.)
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.division.toc" select="1" doc:type='boolean'/>
-
-<doc:param name="generate.division.toc" xmlns="">
-<refpurpose>Generate a table of contents for divisions?</refpurpose>
-<refdescription>
-<para>If non-zero, a table of contents is generated at the beginning
-of each division (sets, books, etc.)
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-
-<xsl:param name="generate.book.toc" select="'1'" doc:type='boolean'/>
-<xsl:param name="process.source.toc" select='0' doc:type='boolean'/>
-<xsl:param name="process.empty.source.toc" select='0' doc:type='boolean'/>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.division.figure.lot" select="1" doc:type='boolean'/>
-
-<doc:param name="generate.division.figure.lot" xmlns="">
-<refpurpose>Generate a list of titles for Figures?</refpurpose>
-<refdescription>
-<para>If non-zero, a list of titles is generated for Figures.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.division.example.lot" select="1" doc:type='boolean'/>
-
-<doc:param name="generate.division.example.lot" xmlns="">
-<refpurpose>Generate a list of titles for Examples?</refpurpose>
-<refdescription>
-<para>If non-zero, a list of titles is generated for Examples.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.division.equation.lot" select="1" doc:type='boolean'/>
-
-<doc:param name="generate.division.equation.lot" xmlns="">
-<refpurpose>Generate a list of titles for Equations?</refpurpose>
-<refdescription>
-<para>If non-zero, a list of titles is generated for Equations.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.division.table.lot" select="1" doc:type='boolean'/>
-
-<doc:param name="generate.division.table.lot" xmlns="">
-<refpurpose>Generate a list of titles for Tables?</refpurpose>
-<refdescription>
-<para>If non-zero, a list of titles is generated for Tables.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="generate.book.figure.lot" select="1" doc:type='boolean'/>
-<xsl:param name="generate.book.example.lot" select="1" doc:type='boolean'/>
-<xsl:param name="generate.book.equation.lot" select="1" doc:type='boolean'/>
-<xsl:param name="generate.book.table.lot" select="1" doc:type='boolean'/>
-
-<!-- ==================================================================== -->
-<xsl:param name="passivetex.extensions" select="0" doc:type='boolean'/>
-
-<doc:param name="passivetex.extensions" xmlns="">
-<refpurpose>Enable PassiveTeX extensions?</refpurpose>
-<refdescription>
-<para>If non-zero,
-<ulink url="http://users.ox.ac.uk/~rahtz/passivetex/">PassiveTeX</ulink>
-extensions will be used. At present, this consists of PDF bookmarks
-and sorted index terms.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="arbortext.extensions" select="0" doc:type='boolean'/>
-
-<doc:param name="arbortext.extensions" xmlns="">
-<refpurpose>Enable Arbortext extensions?</refpurpose>
-<refdescription>
-<para>If non-zero,
-<ulink url="http://www.arbortext.com/">Arbortext</ulink>
-extensions will be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="fop.extensions" select="0" doc:type='boolean'/>
-
-<doc:param name="fop.extensions" xmlns="">
-<refpurpose>Enable FOP extensions?</refpurpose>
-<refdescription>
-<para>If non-zero,
-<ulink url="http://xml.apache.org/fop/">FOP</ulink>
-extensions will be used. At present, this consists of PDF bookmarks.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="xep.extensions" select="0" doc:type='boolean'/>
-
-<doc:param name="xep.extensions" xmlns="">
-<refpurpose>Enable XEP extensions?</refpurpose>
-<refdescription>
-<para>If non-zero,
-<ulink url="http://www.renderx.com/">XEP</ulink>
-extensions will be used. XEP extensions consists of PDF bookmarks and document information.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="default.units" select="'pt'" doc:type='list'
- doc:list='cm mm in pt pc px em'/>
-
-<doc:param name="default.units" xmlns="">
-<refpurpose>Default units for an unqualified dimension</refpurpose>
-<refdescription>
-<para>If an unqualified dimension is encountered (for example, in a
-graphic width), the <parameter>default-units</parameter> will be used for the
-units. Unqualified dimensions are not allowed in XSL Formatting Objects.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-
-<xsl:param name="generate.index" select="1" doc:type='boolean'/>
-
-<!-- ==================================================================== -->
-<xsl:param name="label.from.part" select="'0'" doc:type='boolean'/>
-
-<doc:param name="label.from.part" xmlns="">
-<refpurpose>Renumber chapters in each part?</refpurpose>
-<refdescription>
-<para>If <parameter>label.from.part</parameter> is non-zero, components
-(<sgmltag>chapter</sgmltag>s, <sgmltag>appendixe</sgmltag>s, etc.)
-will be numbered from 1 in each <sgmltag>part</sgmltag>. Otherwise,
-they will be numbered monotonically throughout each
-<sgmltag>book</sgmltag>.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="formal.procedures" select="1" doc:type='boolean'/>
-
-<doc:param name="formal.procedures" xmlns="">
-<refpurpose>Selects formal or informal procedures</refpurpose>
-<refdescription>
-<para>Formal procedures are numbered and always hav a title.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="bibliography.collection" doc:type='string'
- select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"/>
-
-<doc:param name="bibliography.collection" xmlns="">
-<refpurpose>Name of the bibliography collection file</refpurpose>
-<refdescription>
-<para>Tired of copying bibliography entries from one document to another?
-Now you can maintain a central bibliography and let the stylesheets do
-the copying for you. This parameter identifies the file (by URI reference)
-that contains your complete bibliography collection.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="format.variablelist.as.list" select="1"
- doc:type='boolean'/>
-
-<doc:param name="format.variablelist.as.list" xmlns="">
-<refpurpose>Use an fo:list to format VariableLists?</refpurpose>
-<refdescription>
-<para>If non-zero, an fo:list will be used to format VariableLists.
-Otherwise, nested fo:blocks will be used.
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="runinhead.title.end.punct" select="'.!?:'" doc:type='string'/>
-
-<doc:param name="runinhead.title.end.punct" xmlns="">
-<refpurpose>Characters that count as punctuation on a run-in-head</refpurpose>
-<refdescription>
-<para>FIXME:
-</para>
-</refdescription>
-</doc:param>
-
-<!-- ==================================================================== -->
-<xsl:param name="runinhead.default.title.end.punct" select="'.'" doc:type='string'/>
-
-<doc:param name="runinhead.default.title.end.punct" xmlns="">
-<refpurpose>Default punctuation character on a run-in-head</refpurpose>
-<refdescription>
-<para>FIXME:
-</para>
-</refdescription>
-</doc:param>
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/pi.xsl b/lib/docbook/docbook-xsl/fo/pi.xsl
deleted file mode 100644
index 32f75608a..000000000
--- a/lib/docbook/docbook-xsl/fo/pi.xsl
+++ /dev/null
@@ -1,183 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: pi.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:template match="processing-instruction()">
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="dbfo-attribute">
- <xsl:param name="pis" select="processing-instruction('dbfo')"/>
- <xsl:param name="attribute">filename</xsl:param>
- <xsl:param name="count">1</xsl:param>
-
- <xsl:choose>
- <xsl:when test="$count>count($pis)">
- <!-- not found -->
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="pi">
- <xsl:value-of select="$pis[$count]"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($pi,concat($attribute, '='))">
- <xsl:variable name="rest" select="substring-after($pi,concat($attribute,'='))"/>
- <xsl:variable name="quote" select="substring($rest,1,1)"/>
- <xsl:value-of select="substring-before(substring($rest,2),$quote)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis" select="$pis"/>
- <xsl:with-param name="attribute" select="$attribute"/>
- <xsl:with-param name="count" select="$count + 1"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="dbfo-filename">
- <xsl:param name="pis" select="./processing-instruction('dbfo')"/>
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis" select="$pis"/>
- <xsl:with-param name="attribute">filename</xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template name="dbfo-dir">
- <xsl:param name="pis" select="./processing-instruction('dbfo')"/>
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis" select="$pis"/>
- <xsl:with-param name="attribute">dir</xsl:with-param>
- </xsl:call-template>
-</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="object.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>
- <xsl:apply-templates select="$cmdsyn" mode="xref-to">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:apply-templates>
- </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="object.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>
- <xsl:apply-templates select="$cmdsyn" mode="xref-to">
- <xsl:with-param name="target" select="$cmdsyn"/>
- </xsl:apply-templates>
- </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/lib/docbook/docbook-xsl/fo/qandaset.xsl b/lib/docbook/docbook-xsl/fo/qandaset.xsl
deleted file mode 100644
index 6208febae..000000000
--- a/lib/docbook/docbook-xsl/fo/qandaset.xsl
+++ /dev/null
@@ -1,222 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: qandaset.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<xsl:variable name="qanda.defaultlabel">number</xsl:variable>
-<xsl:variable name="generate.qandaset.toc" select="true()"/>
-<xsl:variable name="generate.qandadiv.toc" select="false()"/>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="qandaset">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:if test="title">
- <xsl:apply-templates select="title"/>
- </xsl:if>
-
- <xsl:apply-templates select="*[name(.) != 'title'
- and name(.) != 'qandadiv'
- and name(.) != 'qandaentry']"/>
- <xsl:apply-templates select="qandadiv"/>
-
- <xsl:if test="qandaentry">
- <fo:list-block xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="2.5em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates select="qandaentry"/>
- </fo:list-block>
- </xsl:if>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="qandaset/title">
- <xsl:variable name="enclsect" select="(ancestor::section
- | ancestor::simplesect
- | ancestor::sect5
- | ancestor::sect4
- | ancestor::sect3
- | ancestor::sect2
- | ancestor::sect1
- | ancestor::refsect3
- | ancestor::refsect2
- | ancestor::refsect1)[last()]"/>
- <xsl:variable name="sectlvl">
- <xsl:call-template name="section.level">
- <xsl:with-param name="node" select="$enclsect"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:call-template name="section.heading">
- <xsl:with-param name="level" select="$sectlvl"/>
- <xsl:with-param name="title">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template match="qandadiv">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:apply-templates select="title"/>
- <xsl:apply-templates select="*[name(.) != 'title'
- and name(.) != 'qandadiv'
- and name(.) != 'qandaentry']"/>
- <fo:block start-indent="{count(ancestor::qandadiv)*2}pc">
- <xsl:apply-templates select="qandadiv"/>
-
- <xsl:if test="qandaentry">
- <fo:list-block xsl:use-attribute-sets="list.block.spacing"
- provisional-distance-between-starts="2.5em"
- provisional-label-separation="0.2em">
- <xsl:apply-templates select="qandaentry"/>
- </fo:list-block>
- </xsl:if>
- </fo:block>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="qandadiv/title">
- <xsl:variable name="enclsect" select="(ancestor::section
- | ancestor::simplesect
- | ancestor::sect5
- | ancestor::sect4
- | ancestor::sect3
- | ancestor::sect2
- | ancestor::sect1
- | ancestor::refsect3
- | ancestor::refsect2
- | ancestor::refsect1)[last()]"/>
- <xsl:variable name="sectlvl">
- <xsl:call-template name="section.level">
- <xsl:with-param name="node" select="$enclsect"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:call-template name="section.heading">
- <xsl:with-param name="level"
- select="$sectlvl + count(ancestor::qandadiv)"/>
- <xsl:with-param name="title">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template match="qandaentry">
- <xsl:apply-templates/>
-<!--
- <fo:block>
- <xsl:if test="@id">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:block>
--->
-</xsl:template>
-
-<xsl:template match="question">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:variable name="entry.id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="parent::*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <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="qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:list-item id="{$entry.id}" xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label id="{$id}" end-indent="label-end()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block/>
- </xsl:when>
- <xsl:otherwise>
- <fo:block>
- <xsl:apply-templates select="." mode="label.markup"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block font-weight="bold">
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="answer">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <xsl:variable name="entry.id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="parent::*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <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="qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:list-item xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label id="{$id}" end-indent="label-end()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block/>
- </xsl:when>
- <xsl:otherwise>
- <fo:block>
- <xsl:apply-templates select="." mode="label.markup"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<xsl:template match="label">
- <xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/refentry.xsl b/lib/docbook/docbook-xsl/fo/refentry.xsl
deleted file mode 100644
index 2bec5ea59..000000000
--- a/lib/docbook/docbook-xsl/fo/refentry.xsl
+++ /dev/null
@@ -1,266 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: refentry.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="reference">
- <xsl:if test="not(partintro)">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="reference.titlepage"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
- <xsl:apply-templates select="partintro|refentry"/>
-</xsl:template>
-
-<xsl:template match="reference" mode="reference.titlepage.mode">
- <xsl:call-template name="reference.titlepage"/>
-</xsl:template>
-
-<xsl:template match="reference/partintro">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="ancestor::reference"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:apply-templates select=".." mode="reference.titlepage.mode"/>
- <xsl:if test="title">
- <xsl:call-template name="partintro.titlepage"/>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="reference/docinfo"></xsl:template>
-<xsl:template match="reference/title"></xsl:template>
-<xsl:template match="reference/subtitle"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="refentry">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <xsl:variable name="refentry.content">
-<!-- FIXME: what should this be?
- <fo:block font-size="20pt" font-weight="bold">
- <xsl:choose>
- <xsl:when test="refmeta/refentrytitle">
- <xsl:apply-templates select="refmeta/refentrytitle" mode="title"/>
- </xsl:when>
- <xsl:when test="refnamediv/refname">
- <xsl:apply-templates select="refnamediv/refname" mode="title"/>
- </xsl:when>
- </xsl:choose>
- </fo:block>
--->
- <fo:block id="{$id}">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="not(parent::*) or parent::reference">
- <!-- make a page sequence -->
- <fo:page-sequence hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:copy-of select="$refentry.content"/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:when>
- <xsl:otherwise>
- <fo:block break-before="page">
- <xsl:copy-of select="$refentry.content"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="refmeta">
-</xsl:template>
-
-<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>
-
-<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:if test="$refentry.generate.name != 0">
- <fo:block font-size="18pt" font-weight="bold">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'RefName'"/>
- </xsl:call-template>
- </fo:block>
- </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:call-template name="dingbat">
- <xsl:with-param name="dingbat">em-dash</xsl:with-param>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="refdescriptor">
- <!-- todo: finish this -->
-</xsl:template>
-
-<xsl:template match="refclass">
- <fo:block font-weight="bold">
- <xsl:if test="@role">
- <xsl:value-of select="@role"/>
- <xsl:text>: </xsl:text>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="refsynopsisdiv">
- <fo:block>
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- <fo:block font-size="18pt" font-weight="bold">
- <xsl:choose>
- <xsl:when test="refsynopsisdiv/title|title">
- <xsl:apply-templates select="(refsynopsisdiv/title|title)[1]"
- mode="titlepage.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'RefSynopsisDiv'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="refsynopsisdiv/title">
-</xsl:template>
-
-<xsl:template match="refsect1|refsect2|refsect3">
- <xsl:call-template name="block.object"/>
-</xsl:template>
-
-<xsl:template match="refsect1/title">
- <fo:block font-size="18pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="refsect2/title">
- <fo:block font-size="16pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="refsect3/title">
- <fo:block font-size="14pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/sections.xsl b/lib/docbook/docbook-xsl/fo/sections.xsl
deleted file mode 100644
index a0294b820..000000000
--- a/lib/docbook/docbook-xsl/fo/sections.xsl
+++ /dev/null
@@ -1,352 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: sections.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="section">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="section.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="/section">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="ancestor::reference"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="section.titlepage"/>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="section/title
- |simplesect/title
- |sect1/title
- |sect2/title
- |sect3/title
- |sect4/title
- |sect5/title"
- mode="titlepage.mode"
- priority="2">
- <xsl:variable name="section" select="parent::*"/>
- <fo:block keep-with-next.within-column="always">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$section"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="level">
- <xsl:call-template name="section.level">
- <xsl:with-param name="node" select="$section"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="title">
- <xsl:apply-templates select="$section" mode="object.title.markup"/>
- </xsl:variable>
-
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="{$level + 1}"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$title"/>
- </fotex:bookmark>
- </xsl:if>
-
- <xsl:call-template name="section.heading">
- <xsl:with-param name="level" select="$level"/>
- <xsl:with-param name="title" select="$title"/>
- </xsl:call-template>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sect1">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="sect1.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="/sect1">
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="ancestor::reference"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <fo:page-sequence id="{$id}"
- hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="sect1.titlepage"/>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
-</xsl:template>
-
-<xsl:template match="sect2">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="sect2.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sect3">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="sect3.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sect4">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="sect4.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sect5">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="sect5.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="simplesect">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="simplesect.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="sectioninfo"></xsl:template>
-<xsl:template match="section/title"></xsl:template>
-<xsl:template match="section/titleabbrev"></xsl:template>
-<xsl:template match="section/subtitle"></xsl:template>
-
-<xsl:template match="sect1info"></xsl:template>
-<xsl:template match="sect1/title"></xsl:template>
-<xsl:template match="sect1/titleabbrev"></xsl:template>
-<xsl:template match="sect1/subtitle"></xsl:template>
-
-<xsl:template match="sect2info"></xsl:template>
-<xsl:template match="sect2/title"></xsl:template>
-<xsl:template match="sect2/titleabbrev"></xsl:template>
-<xsl:template match="sect2/subtitle"></xsl:template>
-
-<xsl:template match="sect3info"></xsl:template>
-<xsl:template match="sect3/title"></xsl:template>
-<xsl:template match="sect3/titleabbrev"></xsl:template>
-<xsl:template match="sect3/subtitle"></xsl:template>
-
-<xsl:template match="sect4info"></xsl:template>
-<xsl:template match="sect4/title"></xsl:template>
-<xsl:template match="sect4/titleabbrev"></xsl:template>
-<xsl:template match="sect4/subtitle"></xsl:template>
-
-<xsl:template match="sect5info"></xsl:template>
-<xsl:template match="sect5/title"></xsl:template>
-<xsl:template match="sect5/titleabbrev"></xsl:template>
-<xsl:template match="sect5/subtitle"></xsl:template>
-
-<xsl:template match="simplesect/title"></xsl:template>
-<xsl:template match="simplesect/titleabbrev"></xsl:template>
-<xsl:template match="simplesect/subtitle"></xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="section.heading">
- <xsl:param name="level">1</xsl:param>
- <xsl:param name="title"></xsl:param>
- <xsl:variable name="fsize">
- <xsl:choose>
- <xsl:when test="$level=1">18</xsl:when>
- <xsl:when test="$level=2">16</xsl:when>
- <xsl:when test="$level=3">14</xsl:when>
- <xsl:when test="$level=4">12</xsl:when>
- <xsl:when test="$level=5">12</xsl:when>
- <xsl:otherwise>10</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <fo:block font-size="{$fsize}pt"
- font-weight="bold"
- font-family="{$title.font.family}"
- space-before.minimum="1em"
- space-before.optimum="1.5em"
- space-before.maximum="2em">
- <xsl:copy-of select="$title"/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="bridgehead">
- <xsl:variable name="container"
- select="(ancestor::appendix
- |ancestor::article
- |ancestor::bibliography
- |ancestor::chapter
- |ancestor::glossary
- |ancestor::glossdiv
- |ancestor::index
- |ancestor::partintro
- |ancestor::preface
- |ancestor::refsect1
- |ancestor::refsect2
- |ancestor::refsect3
- |ancestor::sect1
- |ancestor::sect2
- |ancestor::sect3
- |ancestor::sect4
- |ancestor::sect5
- |ancestor::section
- |ancestor::setindex
- |ancestor::simplesect)[last()]"/>
-
- <xsl:variable name="clevel">
- <xsl:choose>
- <xsl:when test="local-name($container) = 'appendix'
- or local-name($container) = 'chapter'
- or local-name($container) = 'article'
- or local-name($container) = 'bibliography'
- or local-name($container) = 'glossary'
- or local-name($container) = 'index'
- or local-name($container) = 'partintro'
- or local-name($container) = 'preface'
- or local-name($container) = 'setindex'">2</xsl:when>
- <xsl:when test="local-name($container) = 'glossdiv'">
- <xsl:value-of select="count(ancestor::glossdiv)+2"/>
- </xsl:when>
- <xsl:when test="local-name($container) = 'sect1'
- or local-name($container) = 'sect2'
- or local-name($container) = 'sect3'
- or local-name($container) = 'sect4'
- or local-name($container) = 'sect5'
- or local-name($container) = 'refsect1'
- or local-name($container) = 'refsect2'
- or local-name($container) = 'refsect3'
- or local-name($container) = 'section'
- or local-name($container) = 'simplesect'">
- <xsl:variable name="slevel">
- <xsl:call-template name="section.level">
- <xsl:with-param name="node" select="$container"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$slevel + 1"/>
- </xsl:when>
- <xsl:otherwise>2</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="level">
- <xsl:choose>
- <xsl:when test="@renderas = 'sect1'">2</xsl:when>
- <xsl:when test="@renderas = 'sect2'">3</xsl:when>
- <xsl:when test="@renderas = 'sect3'">4</xsl:when>
- <xsl:when test="@renderas = 'sect4'">5</xsl:when>
- <xsl:when test="@renderas = 'sect5'">6</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$clevel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <fo:block id="{$id}">
- <xsl:call-template name="section.heading">
- <xsl:with-param name="level" select="$level"/>
- <xsl:with-param name="title">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:block>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/lib/docbook/docbook-xsl/fo/synop.xsl b/lib/docbook/docbook-xsl/fo/synop.xsl
deleted file mode 100644
index 667b503ac..000000000
--- a/lib/docbook/docbook-xsl/fo/synop.xsl
+++ /dev/null
@@ -1,241 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: synop.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="synopsis">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="cmdsynopsis">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="cmdsynopsis/command">
- <xsl:call-template name="inline.monoseq"/>
- <xsl:text> </xsl:text>
-</xsl:template>
-
-<xsl:template match="cmdsynopsis/command[1]" priority="2">
- <xsl:call-template name="inline.monoseq"/>
- <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">
- <fo:inline linefeed-treatment="preserve">&#xA;</fo:inline>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="synopfragmentref">
- <xsl:variable name="target" select="id(@linkend)"/>
- <xsl:variable name="snum">
- <xsl:apply-templates select="$target" mode="synopfragment.number"/>
- </xsl:variable>
- <fo:inline font-style="italic">
- <xsl:text>(</xsl:text>
- <xsl:value-of select="$snum"/>
- <xsl:text>)</xsl:text>
- </fo:inline>
-</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>
- <fo:block>
- <xsl:text>(</xsl:text>
- <xsl:value-of select="$snum"/>
- <xsl:text>)</xsl:text>
- <xsl:text> </xsl:text>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="funcsynopsis">
- <xsl:call-template name="informal.object"/>
-</xsl:template>
-
-<xsl:template match="funcsynopsisinfo">
- <fo:block><xsl:apply-templates/></fo:block>
-</xsl:template>
-
-<xsl:template match="funcprototype">
- <fo:block font-family="{$monospace.font.family}">
- <xsl:apply-templates/>
- <xsl:if test="$funcsynopsis.style='kr'">
- <xsl:apply-templates select="./paramdef" mode="kr-funcsynopsis-mode"/>
- </xsl:if>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="funcdef">
- <fo:inline font-family="{$monospace.font.family}">
- <xsl:apply-templates/>
- </fo:inline>
-</xsl:template>
-
-<xsl:template match="funcdef/function">
- <xsl:choose>
- <xsl:when test="$funcsynopsis.decoration != 0">
- <fo:inline font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- </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">
- <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">
- <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/lib/docbook/docbook-xsl/fo/table.xsl b/lib/docbook/docbook-xsl/fo/table.xsl
deleted file mode 100644
index ca2f5314b..000000000
--- a/lib/docbook/docbook-xsl/fo/table.xsl
+++ /dev/null
@@ -1,748 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:stbl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Table"
- xmlns:xtbl="com.nwalsh.xalan.Table"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="doc stbl xtbl lxslt"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: table.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<doc:reference xmlns="">
-<referenceinfo>
-<releaseinfo role="meta">
-$Id: table.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
-</releaseinfo>
-<author><surname>Walsh</surname>
-<firstname>Norman</firstname></author>
-<copyright><year>1999</year><year>2000</year>
-<holder>Norman Walsh</holder>
-</copyright>
-</referenceinfo>
-<title>Formatting Object Table Reference</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>
-
-<para>This is not intended to be <quote>user</quote> documentation.
-It is provided for developers writing customization layers for the
-stylesheets, and for anyone who's interested in <quote>how it
-works</quote>.</para>
-
-<para>Although I am trying to be thorough, this documentation is known
-to be incomplete. Don't forget to read the source, too :-)</para>
-</section>
-</partintro>
-</doc:reference>
-
-<!-- ==================================================================== -->
-
-<lxslt:component prefix="xtbl"
- functions="adjustColumnWidths"/>
-
-<!-- ==================================================================== -->
-
-<xsl:param name="table-border-thickness" select="'0.5pt'"/>
-<xsl:param name="table-border-padding" select="'2pt'"/>
-<xsl:param name="table-border-style" select="'solid'"/>
-<xsl:param name="table-border-color" select="'black'"/>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="border">
- <xsl:param name="side" select="'left'"/>
- <xsl:param name="padding" select="0"/>
-
- <xsl:attribute name="border-{$side}">
- <xsl:value-of select="$table-border-thickness"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$table-border-style"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$table-border-color"/>
- <xsl:text> </xsl:text>
- </xsl:attribute>
- <xsl:if test="$padding != 0">
- <xsl:attribute name="padding-{$side}">
- <xsl:value-of select="$table-border-padding"/>
- </xsl:attribute>
- </xsl:if>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="tgroup">
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-
- <xsl:variable name="explicit.table.width">
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis"
- select="../processing-instruction('dbfo')"/>
- <xsl:with-param name="attribute" select="'table-width'"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="table.width">
- <xsl:choose>
- <xsl:when test="$explicit.table.width != ''">
- <xsl:value-of select="$explicit.table.width"/>
- </xsl:when>
- <xsl:when test="$default.table.width = ''">
- <xsl:text>100%</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$default.table.width"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="colspecs">
- <xsl:choose>
- <xsl:when test="$use.extensions != 0
- and $tablecolumns.extension != 0">
- <xsl:call-template name="generate.colgroup.raw">
- <xsl:with-param name="cols" select="@cols"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.colgroup">
- <xsl:with-param name="cols" select="@cols"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:if test="position() = 1">
- <xsl:attribute name="width">
- <xsl:value-of select="$table.width"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="$use.extensions != 0
- and $tablecolumns.extension != 0">
- <xsl:choose>
- <xsl:when test="contains($vendor, 'SAXON 6')">
- <xsl:copy-of select="stbl:adjustColumnWidths($colspecs)"/>
- </xsl:when>
- <xsl:when test="contains($vendor, 'SAXON 5')">
- <!-- the saxon5 extension doesn't support this (yet) -->
- <xsl:call-template name="generate.colgroup">
- <xsl:with-param name="cols" select="@cols"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="contains($vendor, 'Apache Software Foundation')">
- <xsl:copy-of select="xtbl:adjustColumnWidths($colspecs)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>Don't know how to do adjust column widths with </xsl:text>
- <xsl:value-of select="$vendor"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$colspecs"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:apply-templates select="thead"/>
- <xsl:apply-templates select="tfoot"/>
- <xsl:apply-templates select="tbody"/>
-</xsl:template>
-
-<xsl:template match="colspec"></xsl:template>
-
-<xsl:template match="spanspec"></xsl:template>
-
-<xsl:template match="thead">
- <xsl:variable name="tgroup" select="parent::*"/>
- <xsl:variable name="frame" select="$tgroup/parent::*/@frame"/>
-
- <fo:table-header>
- <xsl:choose>
- <xsl:when test="$frame='topbot' or $frame='top'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'top'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$frame='sides'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'left'"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates/>
- </fo:table-header>
-</xsl:template>
-
-<xsl:template match="tfoot">
- <xsl:variable name="tgroup" select="parent::*"/>
- <xsl:variable name="frame" select="$tgroup/parent::*/@frame"/>
-
- <fo:table-footer>
- <xsl:choose>
- <xsl:when test="$frame='topbot' or $frame='top'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'top'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$frame='sides'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'left'"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates/>
- </fo:table-footer>
-</xsl:template>
-
-<xsl:template match="tbody">
- <xsl:variable name="tgroup" select="parent::*"/>
- <xsl:variable name="frame" select="$tgroup/parent::*/@frame"/>
- <fo:table-body>
- <xsl:choose>
- <xsl:when test="$frame='top'">
- <xsl:choose>
- <xsl:when test="preceding-sibling::thead">
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'top'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$frame='bottom'">
- <xsl:choose>
- <xsl:when test="preceding-sibling::tfoot">
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$frame='topbot'">
- <xsl:choose>
- <xsl:when test="preceding-sibling::thead">
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'top'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="preceding-sibling::tfoot">
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$frame='sides'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'left'"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates/>
- </fo:table-body>
-</xsl:template>
-
-<xsl:template match="row">
- <fo:table-row>
- <xsl:if test="@rowsep='1'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates/>
- </fo:table-row>
-</xsl:template>
-
-<xsl:template match="thead/row/entry">
- <xsl:call-template name="process.cell"/>
-</xsl:template>
-
-<xsl:template match="tbody/row/entry">
- <xsl:call-template name="process.cell"/>
-</xsl:template>
-
-<xsl:template match="tfoot/row/entry">
- <xsl:call-template name="process.cell"/>
-</xsl:template>
-
-<xsl:template name="process.cell">
- <xsl:variable name="row" select="parent::row"/>
- <xsl:variable name="group" select="$row/parent::*[1]"/>
- <xsl:variable name="frame" select="ancestor::tgroup/parent::*/@frame"/>
-
- <xsl:variable name="content">
- <xsl:apply-templates/>
- </xsl:variable>
-
- <fo:table-cell>
- <xsl:choose>
- <xsl:when test="$frame='all'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'left'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'top'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="@colsep='1'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="@rowsep='1'">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- <xsl:with-param name="padding" select="1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:if test="@morerows">
- <xsl:attribute name="number-rows-spanned">
- <xsl:value-of select="@morerows+1"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@namest">
- <xsl:attribute name="column-number">
- <xsl:call-template name="colspec.colnum">
- <xsl:with-param name="colname" select="@namest"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="number-columns-spanned">
- <xsl:call-template name="calculate.colspan"/>
- </xsl:attribute>
- </xsl:if>
-
- <fo:block>
- <xsl:copy-of select="$content"/>
- </fo:block>
- </fo:table-cell>
-</xsl:template>
-
-<xsl:template name="generate.colgroup.raw">
- <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.raw">
- <xsl:with-param name="countcol" select="$count"/>
- </xsl:call-template>
- <xsl:call-template name="generate.colgroup.raw">
- <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.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.raw">
- <!-- generate the table-column for column countcol -->
- <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)">
- <fo:table-column column-number="{$countcol}"/>
- </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:variable name="colspec.colwidth">
- <xsl:choose>
- <xsl:when test="$colspec/@colwidth">
- <xsl:value-of select="$colspec/@colwidth"/>
- </xsl:when>
- <xsl:otherwise>1*</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$colspec.colnum=$countcol">
- <fo:table-column column-number="{$countcol}">
- <xsl:attribute name="column-width">
- <xsl:value-of select="$colspec.colwidth"/>
- </xsl:attribute>
- </fo:table-column>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="generate.col.raw">
- <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="generate.col">
- <!-- generate the table-column for column countcol -->
- <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)">
- <fo:table-column column-number="{$countcol}">
- <xsl:variable name="colwidth">
- <xsl:call-template name="calc.column.width"/>
- </xsl:variable>
- <xsl:if test="$colwidth != 'proportional-column-width(1)'">
- <xsl:attribute name="column-width">
- <xsl:value-of select="$colwidth"/>
- </xsl:attribute>
- </xsl:if>
- </fo:table-column>
- </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:variable name="colspec.colwidth">
- <xsl:choose>
- <xsl:when test="$colspec/@colwidth">
- <xsl:value-of select="$colspec/@colwidth"/>
- </xsl:when>
- <xsl:otherwise>1*</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$colspec.colnum=$countcol">
- <fo:table-column column-number="{$countcol}">
- <xsl:variable name="colwidth">
- <xsl:call-template name="calc.column.width">
- <xsl:with-param name="colwidth">
- <xsl:value-of select="$colspec.colwidth"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$colwidth != 'proportional-column-width(1)'">
- <xsl:attribute name="column-width">
- <xsl:value-of select="$colwidth"/>
- </xsl:attribute>
- </xsl:if>
- </fo:table-column>
- </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>
-
-<doc:template name="calc.column.width" xmlns="">
-<refpurpose>Calculate an XSL FO table column width specification from a
-CALS table column width specification.</refpurpose>
-
-<refdescription>
-<para>CALS expresses table column widths in the following basic
-forms:</para>
-
-<itemizedlist>
-<listitem>
-<para><emphasis>99.99units</emphasis>, a fixed length specifier.</para>
-</listitem>
-<listitem>
-<para><emphasis>99.99</emphasis>, a fixed length specifier without any units.</para>
-</listitem>
-<listitem>
-<para><emphasis>99.99*</emphasis>, a relative length specifier.</para>
-</listitem>
-<listitem>
-<para><emphasis>99.99*+99.99units</emphasis>, a combination of both.</para>
-</listitem>
-</itemizedlist>
-
-<para>The CALS units are points (pt), picas (pi), centimeters (cm),
-millimeters (mm), and inches (in). These are the same units as XSL,
-except that XSL abbreviates picas "pc" instead of "pi". If a length
-specifier has no units, the CALS default unit (pt) is assumed.</para>
-
-<para>Relative length specifiers are represented in XSL with the
-proportional-column-width() function.</para>
-
-<para>Here are some examples:</para>
-
-<itemizedlist>
-<listitem>
-<para>"36pt" becomes "36pt"</para>
-</listitem>
-<listitem>
-<para>"3pi" becomes "3pc"</para>
-</listitem>
-<listitem>
-<para>"36" becomes "36pt"</para>
-</listitem>
-<listitem>
-<para>"3*" becomes "proportional-column-width(3)"</para>
-</listitem>
-<listitem>
-<para>"3*+2pi" becomes "proportional-column-width(3)+2pc"</para>
-</listitem>
-<listitem>
-<para>"1*+2" becomes "proportional-column-width(1)+2pt"</para>
-</listitem>
-</itemizedlist>
-</refdescription>
-
-<refparameter>
-<variablelist>
-<varlistentry><term>colwidth</term>
-<listitem>
-<para>The CALS column width specification.</para>
-</listitem>
-</varlistentry>
-</variablelist>
-</refparameter>
-
-<refreturn>
-<para>The XSL column width specification.</para>
-</refreturn>
-</doc:template>
-
-<xsl:template name="calc.column.width">
- <xsl:param name="colwidth">1*</xsl:param>
-
- <!-- Ok, the colwidth could have any one of the following forms: -->
- <!-- 1* = proportional width -->
- <!-- 1unit = 1.0 units wide -->
- <!-- 1 = 1pt wide -->
- <!-- 1*+1unit = proportional width + some fixed width -->
- <!-- 1*+1 = proportional width + some fixed width -->
-
- <!-- If it has a proportional width, translate it to XSL -->
- <xsl:if test="contains($colwidth, '*')">
- <xsl:text>proportional-column-width(</xsl:text>
- <xsl:value-of select="substring-before($colwidth, '*')"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
-
- <!-- Now grab the non-proportional part of the specification -->
- <xsl:variable name="width-units">
- <xsl:choose>
- <xsl:when test="contains($colwidth, '*')">
- <xsl:value-of
- select="normalize-space(substring-after($colwidth, '*'))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="normalize-space($colwidth)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- Ok, now the width-units could have any one of the following forms: -->
- <!-- = <empty string> -->
- <!-- 1unit = 1.0 units wide -->
- <!-- 1 = 1pt wide -->
- <!-- with an optional leading sign -->
-
- <!-- Grab the width part by blanking out the units part and discarding -->
- <!-- whitespace. It's not pretty, but it works. -->
- <xsl:variable name="width"
- select="normalize-space(translate($width-units,
- '+-0123456789.abcdefghijklmnopqrstuvwxyz',
- '+-0123456789.'))"/>
-
- <!-- Grab the units part by blanking out the width part and discarding -->
- <!-- whitespace. It's not pretty, but it works. -->
- <xsl:variable name="units"
- select="normalize-space(translate($width-units,
- 'abcdefghijklmnopqrstuvwxyz+-0123456789.',
- 'abcdefghijklmnopqrstuvwxyz'))"/>
-
- <!-- Output the width -->
- <xsl:value-of select="$width"/>
-
- <!-- Output the units, translated appropriately -->
- <xsl:choose>
- <xsl:when test="$units = 'pi'">pc</xsl:when>
- <xsl:when test="$units = '' and $width != ''">pt</xsl:when>
- <xsl:otherwise><xsl:value-of select="$units"/></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="calculate.colspan">
- <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/lib/docbook/docbook-xsl/fo/titlepage.templates.xml b/lib/docbook/docbook-xsl/fo/titlepage.templates.xml
deleted file mode 100644
index 1655e3305..000000000
--- a/lib/docbook/docbook-xsl/fo/titlepage.templates.xml
+++ /dev/null
@@ -1,934 +0,0 @@
-<!DOCTYPE t:templates [
-<!ENTITY hsize0 "10pt">
-<!ENTITY hsize1 "12pt">
-<!ENTITY hsize2 "14.4pt">
-<!ENTITY hsize3 "17.28pt">
-<!ENTITY hsize4 "20.736pt">
-<!ENTITY hsize5 "24.8832pt">
-<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
-<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
-<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
-<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
-<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
-<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
-]>
-<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
- xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<!-- ==================================================================== -->
-
-<t:titlepage element="article" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="component.title"
- param:node="ancestor-or-self::article[1]"
- fo:text-align="center"
- fo:margin-left="-4pc"
- fo:keep-with-next="always"
- fo:font-size="&hsize5;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"
- fo:text-align="center"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
-<t:titlepage element="set" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="division.title"
- param:node="ancestor-or-self::set[1]"
- fo:text-align="center"
- fo:font-size="&hsize5;"
- fo:space-before="&hsize5space;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"
- fo:text-align="center"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="book" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="division.title"
- param:node="ancestor-or-self::book[1]"
- fo:text-align="center"
- fo:font-size="&hsize5;"
- fo:space-before="&hsize5space;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:text-align="center"
- fo:font-size="&hsize4;"
- fo:space-before="&hsize4space;"
- fo:font-family="{$title.font.family}"/>
- <corpauthor fo:font-size="&hsize3;"
- fo:keep-with-next="always"
- fo:space-before="2in"/>
- <authorgroup fo:space-before="2in"/>
- <author fo:font-size="&hsize3;"
- fo:space-before="&hsize2space;"
- fo:keep-with-next="always"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- <title
- named-template="book.verso.title"
- fo:font-size="&hsize2;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <pubdate fo:space-before="1em"/>
- <copyright/>
- <abstract/>
- <legalnotice fo:font-size="8pt"/>
- </t:titlepage-content>
-
- <t:titlepage-separator>
- <fo:block break-after="page"/>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- <fo:block break-after="page"/>
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
-<t:titlepage element="part" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="division.title"
- param:node="ancestor-or-self::part[1]"
- fo:text-align="center"
- fo:font-size="&hsize5;"
- fo:space-before="&hsize5space;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:text-align="center"
- fo:font-size="&hsize4;"
- fo:space-before="&hsize4space;"
- fo:font-weight='bold'
- fo:font-style='italic'
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="partintro" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:text-align="center"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:margin-left="-4pc"
- fo:space-before="1em"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:text-align="center"
- fo:font-size="&hsize2;"
- fo:font-weight="bold"
- fo:font-style="italic"
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
-<t:titlepage element="reference" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="division.title"
- param:node="ancestor-or-self::reference[1]"
- fo:text-align="center"
- fo:font-size="&hsize5;"
- fo:space-before="&hsize5space;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"
- fo:text-align="center"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="dedication" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::dedication[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="preface" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::preface[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="chapter" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="component.title"
- param:node="ancestor-or-self::chapter[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:space-before="0.5em"
- fo:margin-left="-4pc"
- fo:font-style="italic"
- fo:font-size="&hsize2;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="appendix" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- named-template="component.title"
- param:node="ancestor-or-self::appendix[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
-<t:titlepage element="section" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="sect1" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="sect2" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="sect3" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="sect4" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="sect5" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<t:titlepage element="simplesect" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- fo:margin-left="-4pc"
- fo:font-family="{$title.font.family}"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- <corpauthor/>
- <authorgroup/>
- <author/>
- <othercredit/>
- <releaseinfo/>
- <copyright/>
- <legalnotice/>
- <pubdate/>
- <revision/>
- <revhistory/>
- <abstract/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="bibliography" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::bibliography[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="glossary" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::glossary[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="index" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::index[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="colophon" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="component.title"
- param:node="ancestor-or-self::colophon[1]"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-family="{$title.font.family}"
- fo:font-weight="bold"/>
- <subtitle
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
-</t:titlepage>
-
-<!-- ==================================================================== -->
-
- <t:titlepage element="table.of.contents" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'TableofContents'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
- <t:titlepage element="list.of.tables" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'ListofTables'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
- <t:titlepage element="list.of.figures" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'ListofFigures'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
- <t:titlepage element="list.of.examples" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'ListofExamples'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
- <t:titlepage element="list.of.equations" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'ListofEquations'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
- <t:titlepage element="list.of.unknowns" wrapper="fo:block">
- <t:titlepage-content side="recto">
- <title
- force="1"
- named-template="gentext"
- param:key="'ListofUnknown'"
- fo:space-after="1em"
- fo:margin-left="-4pc"
- fo:font-size="&hsize3;"
- fo:font-weight="bold"
- fo:font-family="{$title.font.family}"/>
- </t:titlepage-content>
-
- <t:titlepage-content side="verso">
- </t:titlepage-content>
-
- <t:titlepage-separator>
- </t:titlepage-separator>
-
- <t:titlepage-before side="recto">
- </t:titlepage-before>
-
- <t:titlepage-before side="verso">
- </t:titlepage-before>
- </t:titlepage>
-
-<!-- ==================================================================== -->
-
-</t:templates>
diff --git a/lib/docbook/docbook-xsl/fo/titlepage.templates.xsl b/lib/docbook/docbook-xsl/fo/titlepage.templates.xsl
deleted file mode 100644
index 843b5b007..000000000
--- a/lib/docbook/docbook-xsl/fo/titlepage.templates.xsl
+++ /dev/null
@@ -1,2914 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
-
-<xsl:template name="article.titlepage.recto">
- <xsl:choose>
- <xsl:when test="articleinfo/title">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
- </xsl:when>
- <xsl:when test="artheader/title">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="articleinfo/subtitle">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="artheader/subtitle">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>
- <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>
-</xsl:template>
-
-<xsl:template name="article.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="article.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="article.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="article.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="article.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="article.titlepage.before.recto"/>
- <xsl:call-template name="article.titlepage.recto"/>
- <xsl:call-template name="article.titlepage.before.verso"/>
- <xsl:call-template name="article.titlepage.verso"/>
- <xsl:call-template name="article.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="article.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="article.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center" margin-left="-4pc" keep-with-next="always" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::article[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
-<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="set.titlepage.recto">
- <xsl:choose>
- <xsl:when test="setinfo/title">
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="setinfo/subtitle">
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
- <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="set.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="set.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="set.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="set.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="set.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="set.titlepage.before.recto"/>
- <xsl:call-template name="set.titlepage.recto"/>
- <xsl:call-template name="set.titlepage.before.verso"/>
- <xsl:call-template name="set.titlepage.verso"/>
- <xsl:call-template name="set.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="set.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="set.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="division.title">
-<xsl:with-param name="node" select="ancestor-or-self::set[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
-<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="book.titlepage.recto">
- <xsl:choose>
- <xsl:when test="bookinfo/title">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="bookinfo/subtitle">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
-</xsl:template>
-
-<xsl:template name="book.titlepage.verso">
- <xsl:choose>
- <xsl:when test="bookinfo/title">
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
-</xsl:template>
-
-<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
-</xsl:template>
-
-<xsl:template name="book.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
-</xsl:template>
-
-<xsl:template name="book.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="book.titlepage.before.recto"/>
- <xsl:call-template name="book.titlepage.recto"/>
- <xsl:call-template name="book.titlepage.before.verso"/>
- <xsl:call-template name="book.titlepage.verso"/>
- <xsl:call-template name="book.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="book.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="book.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="division.title">
-<xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="title" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="book.verso.title">
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
-<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="part.titlepage.recto">
- <xsl:choose>
- <xsl:when test="partinfo/title">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="partinfo/subtitle">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="part.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="part.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="part.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="part.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="part.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="part.titlepage.before.recto"/>
- <xsl:call-template name="part.titlepage.recto"/>
- <xsl:call-template name="part.titlepage.before.verso"/>
- <xsl:call-template name="part.titlepage.verso"/>
- <xsl:call-template name="part.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="part.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="part.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="part.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="division.title">
-<xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="partintro.titlepage.recto">
- <xsl:choose>
- <xsl:when test="partintroinfo/title">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="partintroinfo/subtitle">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>
- <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="partintro.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="partintro.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="partintro.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="partintro.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="partintro.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="partintro.titlepage.before.recto"/>
- <xsl:call-template name="partintro.titlepage.recto"/>
- <xsl:call-template name="partintro.titlepage.before.verso"/>
- <xsl:call-template name="partintro.titlepage.verso"/>
- <xsl:call-template name="partintro.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="partintro.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="partintro.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="17.28pt" font-weight="bold" margin-left="-4pc" space-before="1em" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
-<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="reference.titlepage.recto">
- <xsl:choose>
- <xsl:when test="referenceinfo/title">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="referenceinfo/subtitle">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>
- <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="reference.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="reference.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="reference.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="reference.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="reference.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="reference.titlepage.before.recto"/>
- <xsl:call-template name="reference.titlepage.recto"/>
- <xsl:call-template name="reference.titlepage.before.verso"/>
- <xsl:call-template name="reference.titlepage.verso"/>
- <xsl:call-template name="reference.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="reference.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="reference.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="division.title">
-<xsl:with-param name="node" select="ancestor-or-self::reference[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
-<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="dedication.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="dedicationinfo/subtitle">
- <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="dedication.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="dedication.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="dedication.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="dedication.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="dedication.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="dedication.titlepage.before.recto"/>
- <xsl:call-template name="dedication.titlepage.recto"/>
- <xsl:call-template name="dedication.titlepage.before.verso"/>
- <xsl:call-template name="dedication.titlepage.verso"/>
- <xsl:call-template name="dedication.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="dedication.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="dedication.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="preface.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="prefaceinfo/subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="preface.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="preface.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="preface.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="preface.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="preface.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="preface.titlepage.before.recto"/>
- <xsl:call-template name="preface.titlepage.recto"/>
- <xsl:call-template name="preface.titlepage.before.verso"/>
- <xsl:call-template name="preface.titlepage.verso"/>
- <xsl:call-template name="preface.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="preface.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="preface.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
-<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="chapter.titlepage.recto">
- <xsl:choose>
- <xsl:when test="chapterinfo/title">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="chapterinfo/subtitle">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>
- <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="chapter.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="chapter.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="chapter.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="chapter.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="chapter.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="chapter.titlepage.before.recto"/>
- <xsl:call-template name="chapter.titlepage.recto"/>
- <xsl:call-template name="chapter.titlepage.before.verso"/>
- <xsl:call-template name="chapter.titlepage.verso"/>
- <xsl:call-template name="chapter.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="chapter.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="chapter.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" margin-left="-4pc" font-style="italic" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="appendix.titlepage.recto">
- <xsl:choose>
- <xsl:when test="appendixinfo/title">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="appendixinfo/subtitle">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>
- <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="appendix.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="appendix.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="appendix.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="appendix.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="appendix.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="appendix.titlepage.before.recto"/>
- <xsl:call-template name="appendix.titlepage.recto"/>
- <xsl:call-template name="appendix.titlepage.before.verso"/>
- <xsl:call-template name="appendix.titlepage.verso"/>
- <xsl:call-template name="appendix.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="appendix.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="appendix.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
-<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="section.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sectioninfo/title">
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sectioninfo/subtitle">
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
- <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="section.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="section.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="section.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="section.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="section.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="section.titlepage.before.recto"/>
- <xsl:call-template name="section.titlepage.recto"/>
- <xsl:call-template name="section.titlepage.before.verso"/>
- <xsl:call-template name="section.titlepage.verso"/>
- <xsl:call-template name="section.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="section.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="section.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="sect1.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sect1info/title">
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sect1info/subtitle">
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
- <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
-</xsl:template>
-
-<xsl:template name="sect1.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="sect1.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="sect1.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="sect1.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="sect1.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="sect1.titlepage.before.recto"/>
- <xsl:call-template name="sect1.titlepage.recto"/>
- <xsl:call-template name="sect1.titlepage.before.verso"/>
- <xsl:call-template name="sect1.titlepage.verso"/>
- <xsl:call-template name="sect1.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="sect1.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="sect1.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="sect2.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sect2info/title">
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sect2info/subtitle">
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
- <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
-</xsl:template>
-
-<xsl:template name="sect2.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="sect2.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="sect2.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="sect2.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="sect2.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="sect2.titlepage.before.recto"/>
- <xsl:call-template name="sect2.titlepage.recto"/>
- <xsl:call-template name="sect2.titlepage.before.verso"/>
- <xsl:call-template name="sect2.titlepage.verso"/>
- <xsl:call-template name="sect2.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="sect2.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="sect2.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="sect3.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sect3info/title">
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sect3info/subtitle">
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
- <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
-</xsl:template>
-
-<xsl:template name="sect3.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="sect3.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="sect3.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="sect3.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="sect3.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="sect3.titlepage.before.recto"/>
- <xsl:call-template name="sect3.titlepage.recto"/>
- <xsl:call-template name="sect3.titlepage.before.verso"/>
- <xsl:call-template name="sect3.titlepage.verso"/>
- <xsl:call-template name="sect3.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="sect3.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="sect3.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="sect4.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sect4info/title">
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sect4info/subtitle">
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
- <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
-</xsl:template>
-
-<xsl:template name="sect4.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="sect4.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="sect4.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="sect4.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="sect4.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="sect4.titlepage.before.recto"/>
- <xsl:call-template name="sect4.titlepage.recto"/>
- <xsl:call-template name="sect4.titlepage.before.verso"/>
- <xsl:call-template name="sect4.titlepage.verso"/>
- <xsl:call-template name="sect4.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="sect4.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="sect4.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="sect5.titlepage.recto">
- <xsl:choose>
- <xsl:when test="sect5info/title">
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="sect5info/subtitle">
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
- <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
-</xsl:template>
-
-<xsl:template name="sect5.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="sect5.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="sect5.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="sect5.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="sect5.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="sect5.titlepage.before.recto"/>
- <xsl:call-template name="sect5.titlepage.recto"/>
- <xsl:call-template name="sect5.titlepage.before.verso"/>
- <xsl:call-template name="sect5.titlepage.verso"/>
- <xsl:call-template name="sect5.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="sect5.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="sect5.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage.recto">
- <xsl:choose>
- <xsl:when test="simplesectinfo/title">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
- </xsl:when>
- <xsl:when test="docinfo/title">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="simplesectinfo/subtitle">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>
- <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="simplesect.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="simplesect.titlepage.before.recto"/>
- <xsl:call-template name="simplesect.titlepage.recto"/>
- <xsl:call-template name="simplesect.titlepage.before.verso"/>
- <xsl:call-template name="simplesect.titlepage.verso"/>
- <xsl:call-template name="simplesect.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="bibliographyinfo/subtitle">
- <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="bibliography.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="bibliography.titlepage.before.recto"/>
- <xsl:call-template name="bibliography.titlepage.recto"/>
- <xsl:call-template name="bibliography.titlepage.before.verso"/>
- <xsl:call-template name="bibliography.titlepage.verso"/>
- <xsl:call-template name="bibliography.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="glossary.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="glossaryinfo/subtitle">
- <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="glossary.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="glossary.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="glossary.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="glossary.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="glossary.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="glossary.titlepage.before.recto"/>
- <xsl:call-template name="glossary.titlepage.recto"/>
- <xsl:call-template name="glossary.titlepage.before.verso"/>
- <xsl:call-template name="glossary.titlepage.verso"/>
- <xsl:call-template name="glossary.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="glossary.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="glossary.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="index.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="indexinfo/subtitle">
- <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="index.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="index.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="index.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="index.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="index.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="index.titlepage.before.recto"/>
- <xsl:call-template name="index.titlepage.recto"/>
- <xsl:call-template name="index.titlepage.before.verso"/>
- <xsl:call-template name="index.titlepage.verso"/>
- <xsl:call-template name="index.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="index.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="index.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="colophon.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
-<xsl:call-template name="component.title">
-<xsl:with-param name="node" select="ancestor-or-self::colophon[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="colophoninfo/subtitle">
- <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="colophoninfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="colophon.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="colophon.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="colophon.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="colophon.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="colophon.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="colophon.titlepage.before.recto"/>
- <xsl:call-template name="colophon.titlepage.recto"/>
- <xsl:call-template name="colophon.titlepage.before.verso"/>
- <xsl:call-template name="colophon.titlepage.verso"/>
- <xsl:call-template name="colophon.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="colophon.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="colophon.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="colophon.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.font.family}">
-<xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="table.of.contents.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'TableofContents'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="table.of.contents.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="table.of.contents.titlepage.before.recto"/>
- <xsl:call-template name="table.of.contents.titlepage.recto"/>
- <xsl:call-template name="table.of.contents.titlepage.before.verso"/>
- <xsl:call-template name="table.of.contents.titlepage.verso"/>
- <xsl:call-template name="table.of.contents.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.tables.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'ListofTables'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="list.of.tables.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="list.of.tables.titlepage.before.recto"/>
- <xsl:call-template name="list.of.tables.titlepage.recto"/>
- <xsl:call-template name="list.of.tables.titlepage.before.verso"/>
- <xsl:call-template name="list.of.tables.titlepage.verso"/>
- <xsl:call-template name="list.of.tables.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.figures.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'ListofFigures'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="list.of.figures.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="list.of.figures.titlepage.before.recto"/>
- <xsl:call-template name="list.of.figures.titlepage.recto"/>
- <xsl:call-template name="list.of.figures.titlepage.before.verso"/>
- <xsl:call-template name="list.of.figures.titlepage.verso"/>
- <xsl:call-template name="list.of.figures.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.examples.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'ListofExamples'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="list.of.examples.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="list.of.examples.titlepage.before.recto"/>
- <xsl:call-template name="list.of.examples.titlepage.recto"/>
- <xsl:call-template name="list.of.examples.titlepage.before.verso"/>
- <xsl:call-template name="list.of.examples.titlepage.verso"/>
- <xsl:call-template name="list.of.examples.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.equations.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'ListofEquations'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="list.of.equations.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="list.of.equations.titlepage.before.recto"/>
- <xsl:call-template name="list.of.equations.titlepage.recto"/>
- <xsl:call-template name="list.of.equations.titlepage.before.verso"/>
- <xsl:call-template name="list.of.equations.titlepage.verso"/>
- <xsl:call-template name="list.of.equations.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.unknowns.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
-<xsl:call-template name="gentext">
-<xsl:with-param name="key" select="'ListofUnknown'"/>
-</xsl:call-template></fo:block>
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage.verso">
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage.separator">
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage.before.recto">
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage.before.verso">
-</xsl:template>
-
-<xsl:template name="list.of.unknowns.titlepage">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
- <xsl:call-template name="list.of.unknowns.titlepage.recto"/>
- <xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
- <xsl:call-template name="list.of.unknowns.titlepage.verso"/>
- <xsl:call-template name="list.of.unknowns.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
- <!-- if an element isn't found in this mode, -->
- <!-- try the generic titlepage.mode -->
- <xsl:apply-templates select="." mode="titlepage.mode"/>
-</xsl:template>
-
-</xsl:stylesheet> \ No newline at end of file
diff --git a/lib/docbook/docbook-xsl/fo/titlepage.xsl b/lib/docbook/docbook-xsl/fo/titlepage.xsl
deleted file mode 100644
index 870fee5b1..000000000
--- a/lib/docbook/docbook-xsl/fo/titlepage.xsl
+++ /dev/null
@@ -1,637 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: titlepage.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:attribute-set name="book.titlepage.recto.style">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$title.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">12pt</xsl:attribute>
- <xsl:attribute name="text-align">center</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="book.titlepage.verso.style">
- <xsl:attribute name="font-size">10pt</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="article.titlepage.recto.style"/>
-<xsl:attribute-set name="article.titlepage.verso.style"/>
-
-<xsl:attribute-set name="set.titlepage.recto.style"/>
-<xsl:attribute-set name="set.titlepage.verso.style"/>
-
-<xsl:attribute-set name="part.titlepage.recto.style">
- <xsl:attribute name="text-align">center</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="part.titlepage.verso.style"/>
-
-<xsl:attribute-set name="partintro.titlepage.recto.style"/>
-<xsl:attribute-set name="partintro.titlepage.verso.style"/>
-
-<xsl:attribute-set name="reference.titlepage.recto.style"/>
-<xsl:attribute-set name="reference.titlepage.verso.style"/>
-
-<xsl:attribute-set name="dedication.titlepage.recto.style"/>
-<xsl:attribute-set name="dedication.titlepage.verso.style"/>
-
-<xsl:attribute-set name="preface.titlepage.recto.style"/>
-<xsl:attribute-set name="preface.titlepage.verso.style"/>
-
-<xsl:attribute-set name="chapter.titlepage.recto.style"/>
-<xsl:attribute-set name="chapter.titlepage.verso.style"/>
-
-<xsl:attribute-set name="appendix.titlepage.recto.style"/>
-<xsl:attribute-set name="appendix.titlepage.verso.style"/>
-
-<xsl:attribute-set name="bibliography.titlepage.recto.style"/>
-<xsl:attribute-set name="bibliography.titlepage.verso.style"/>
-
-<xsl:attribute-set name="glossary.titlepage.recto.style"/>
-<xsl:attribute-set name="glossary.titlepage.verso.style"/>
-
-<xsl:attribute-set name="index.titlepage.recto.style"/>
-<xsl:attribute-set name="index.titlepage.verso.style"/>
-
-<xsl:attribute-set name="colophon.titlepage.recto.style"/>
-<xsl:attribute-set name="colophon.titlepage.verso.style"/>
-
-<xsl:attribute-set name="section.titlepage.recto.style"/>
-<xsl:attribute-set name="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="sect1.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="sect1.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="sect2.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="sect2.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="sect3.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="sect3.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="sect4.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="sect4.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="sect5.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="sect5.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="simplesect.titlepage.recto.style"
- use-attribute-sets="section.titlepage.recto.style"/>
-<xsl:attribute-set name="simplesect.titlepage.verso.style"
- use-attribute-sets="section.titlepage.verso.style"/>
-
-<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
-<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
-
-<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
-<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
-
-<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
-<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
-
-<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
-<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
-
-<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
-<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
-
-<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
-<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*" mode="titlepage.mode">
- <!-- if an element isn't found in this mode, try the default mode -->
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<xsl:template match="abbrev" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="abstract" mode="titlepage.mode">
- <fo:block>
- <xsl:if test="title"> <!-- FIXME: add param for using default title? -->
- <xsl:call-template name="formal.object.heading">
- <xsl:with-param name="title">
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="abstract/title" mode="titlepage.mode"/>
-
-<xsl:template match="abstract/title" mode="titlepage.abstract.title.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="address" mode="titlepage.mode">
- <!-- use the normal address handling code -->
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<xsl:template match="affiliation" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="artpagenums" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="author" mode="titlepage.mode">
- <fo:wrapper>
- <xsl:if test="@id">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:if>
- <xsl:call-template name="person.name"/>
- <xsl:apply-templates select="affiliation" mode="titlepage.mode"/>
- </fo:wrapper>
-</xsl:template>
-
-<xsl:template match="authorblurb" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="titlepage.mode">
- <fo:wrapper>
- <xsl:if test="@id">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:if>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:wrapper>
-</xsl:template>
-
-<xsl:template match="authorinitials" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="bibliomisc" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="bibliomset" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="collab" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="confgroup" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="confdates" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="conftitle" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="confnum" mode="titlepage.mode">
- <!-- suppress -->
-</xsl:template>
-
-<xsl:template match="contractnum" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="contractsponsor" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="contrib" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="copyright" mode="titlepage.mode">
- <xsl:variable name="years" select="year"/>
- <xsl:variable name="holders" select="holder"/>
-
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Copyright'"/>
- </xsl:call-template>
- <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="$years" mode="titlepage.mode"/>
- <xsl:if test="holder">
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="year" mode="titlepage.mode">
- <xsl:apply-templates/><xsl:text>, </xsl:text>
-</xsl:template>
-
-<xsl:template match="year[position()=last()]" mode="titlepage.mode">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="holder" mode="titlepage.mode">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="corpauthor" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="corpname" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="date" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="edition" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Edition'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template match="editor" mode="titlepage.mode">
- <xsl:call-template name="person.name"/>
-</xsl:template>
-
-<xsl:template match="editor[position()=1]" priority="2" mode="titlepage.mode">
- <xsl:call-template name="gentext.edited.by"/>
- <xsl:call-template name="person.name"/>
-</xsl:template>
-
-<xsl:template match="firstname" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="graphic" mode="titlepage.mode">
- <!-- use the normal graphic handling code -->
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<xsl:template match="honorific" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="isbn" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="issn" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="itermset" mode="titlepage.mode">
- <!-- discard -->
-</xsl:template>
-
-<xsl:template match="invpartnumber" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="issuenum" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="jobtitle" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="keywordset" mode="titlepage.mode">
-</xsl:template>
-
-<xsl:template match="legalnotice" mode="titlepage.mode">
- <fo:block>
- <xsl:if test="title"> <!-- FIXME: add param for using default title? -->
- <xsl:call-template name="formal.object.heading">
- <xsl:with-param name="title">
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="legalnotice/title" mode="titlepage.mode">
-</xsl:template>
-
-<xsl:template match="legalnotice/title" mode="titlepage.legalnotice.title.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="lineage" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="modespec" mode="titlepage.mode">
- <!-- discard -->
-</xsl:template>
-
-<xsl:template match="orgdiv" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="orgname" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="titlepage.mode">
- <xsl:variable name="contrib" select="string(contrib)"/>
- <xsl:choose>
- <xsl:when test="contrib">
- <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
- <xsl:text>: </xsl:text>
- <xsl:call-template name="person.name"/>
- <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
- <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
- </fo:block>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <fo:block><xsl:call-template name="person.name"/></fo:block>
- <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="titlepage.othercredits">
- <xsl:text>, </xsl:text>
- <xsl:call-template name="person.name"/>
-</xsl:template>
-
-<xsl:template match="othername" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="pagenums" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="printhistory" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="productname" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="productnumber" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="pubdate" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="publisher" mode="titlepage.mode">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="publishername" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="pubsnumber" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="releaseinfo" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="titlepage.mode">
- <fo:table table-layout="fixed">
- <fo:table-column column-number="1" column-width="33%"/>
- <fo:table-column column-number="2" column-width="33%"/>
- <fo:table-column column-number="3" column-width="33%"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="3">
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'RevHistory'"/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:table-body>
- </fo:table>
-</xsl:template>
-
-<xsl:template match="revhistory/revision" mode="titlepage.mode">
- <xsl:variable name="revnumber" select=".//revnumber"/>
- <xsl:variable name="revdate" select=".//date"/>
- <xsl:variable name="revauthor" select=".//authorinitials"/>
- <xsl:variable name="revremark" select=".//revremark"/>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <xsl:if test="$revnumber">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Revision'"/>
- </xsl:call-template>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
- </xsl:if>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="$revauthor[1]" mode="titlepage.mode"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <xsl:if test="$revremark">
- <fo:table-row>
- <fo:table-cell number-columns-spanned="3">
- <fo:block>
- <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="revision/revnumber" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="revision/date" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="revision/authorinitials" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="revision/revremark" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="seriesvolnums" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="shortaffil" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="subjectset" mode="titlepage.mode">
- <!-- discard -->
-</xsl:template>
-
-<xsl:template match="subtitle" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="surname" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="title" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="titleabbrev" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<xsl:template match="volumenum" mode="titlepage.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-<!-- Book templates -->
-
-<!-- Note: these templates cannot use *.titlepage.recto.mode or
- *.titlepage.verso.mode. If they do then subsequent use of a custom
- titlepage.templates.xml file will not work correctly. -->
-
-<!-- book recto -->
-
-<xsl:template match="bookinfo/authorgroup" mode="titlepage.mode" priority="2">
- <fo:block>
- <xsl:if test="@id">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:if>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'by'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:call-template name="person.name.list"/>
- </fo:block>
-</xsl:template>
-
-<!-- book verso -->
-
-<xsl:template name="book.verso.title">
- <fo:block>
- <xsl:apply-templates mode="titlepage.mode"/>
-
- <xsl:if test="following-sibling::subtitle
- |following-sibling::bookinfo/subtitle">
- <xsl:text>: </xsl:text>
-
- <xsl:apply-templates select="(following-sibling::subtitle
- |following-sibling::bookinfo/subtitle)[1]"
- mode="book.verso.subtitle.mode"/>
- </xsl:if>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="book.verso.subtitle.mode">
- <xsl:apply-templates mode="titlepage.mode"/>
- <xsl:if test="following-sibling::subtitle">
- <xsl:text>: </xsl:text>
- <xsl:apply-templates select="following-sibling::subtitle[1]"
- mode="book.verso.subtitle.mode"/>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="bookinfo/author" mode="titlepage.mode" priority="2">
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'by'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:call-template name="person.name"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="bookinfo/corpauthor" mode="titlepage.mode" priority="2">
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'by'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="bookinfo/pubdate" mode="titlepage.mode" priority="2">
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'published'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="titlepage.mode"/>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/toc.xsl b/lib/docbook/docbook-xsl/fo/toc.xsl
deleted file mode 100644
index bc2313f8c..000000000
--- a/lib/docbook/docbook-xsl/fo/toc.xsl
+++ /dev/null
@@ -1,211 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: toc.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<!-- FIXME: in the contexts where <toc> can occur, I think it's always
- the case that a page-sequence is required. Is that true? -->
-
-<xsl:template match="toc">
- <xsl:variable name="master-name">
- <xsl:call-template name="select.pagemaster"/>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="*">
- <xsl:if test="$process.source.toc != 0">
- <!-- if the toc isn't empty, process it -->
- <fo:page-sequence hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <fo:block xsl:use-attribute-sets="toc.margin.properties">
- <xsl:call-template name="table.of.contents.titlepage"/>
- <xsl:apply-templates/>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$process.empty.source.toc != 0">
- <fo:page-sequence hyphenate="{$hyphenate}"
- master-reference="{$master-name}">
- <xsl:attribute name="language">
- <xsl:call-template name="l10n.language"/>
- </xsl:attribute>
- <xsl:if test="$double.sided != 0">
- <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
- </xsl:if>
-
- <xsl:apply-templates select="." mode="running.head.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="." mode="running.foot.mode">
- <xsl:with-param name="master-reference" select="$master-name"/>
- </xsl:apply-templates>
-
- <fo:flow flow-name="xsl-region-body">
- <xsl:choose>
- <xsl:when test="parent::section
- or parent::sect1
- or parent::sect2
- or parent::sect3
- or parent::sect4
- or parent::sect5">
- <xsl:apply-templates select="parent::*"
- mode="toc.for.section"/>
- </xsl:when>
- <xsl:when test="parent::article">
- <xsl:apply-templates select="parent::*"
- mode="toc.for.component"/>
- </xsl:when>
- <xsl:when test="parent::book
- or parent::part">
- <xsl:apply-templates select="parent::*"
- mode="toc.for.division"/>
- </xsl:when>
- <xsl:when test="parent::set">
- <xsl:apply-templates select="parent::*"
- mode="toc.for.set"/>
- </xsl:when>
- <!-- there aren't any other contexts that allow toc -->
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>I don't know how to make a TOC in this context!</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="tocpart|tocchap
- |toclevel1|toclevel2|toclevel3|toclevel4|toclevel5">
- <xsl:apply-templates select="tocentry"/>
- <xsl:if test="tocchap|toclevel1|toclevel2|toclevel3|toclevel4|toclevel5">
- <fo:block start-indent="{count(ancestor::*)*2}pc">
- <xsl:apply-templates select="tocchap|toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"/>
- </fo:block>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="tocentry|tocfront|tocback">
- <fo:block text-align-last="justify"
- end-indent="2pc"
- last-line-end-indent="-2pc">
- <fo:inline keep-with-next.within-line="always">
- <xsl:choose>
- <xsl:when test="@linkend">
- <fo:basic-link internal-destination="{@linkend}">
- <xsl:apply-templates/>
- </fo:basic-link>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:inline>
-
- <xsl:choose>
- <xsl:when test="@linkend">
- <fo:inline keep-together.within-line="always">
- <xsl:text> </xsl:text>
- <fo:leader leader-pattern="dots"
- keep-with-next.within-line="always"/>
- <xsl:text> </xsl:text>
- <fo:basic-link internal-destination="{@linkend}">
- <xsl:choose>
- <xsl:when test="@pagenum">
- <xsl:value-of select="@pagenum"/>
- </xsl:when>
- <xsl:otherwise>
- <fo:page-number-citation ref-id="{@linkend}"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:basic-link>
- </fo:inline>
- </xsl:when>
- <xsl:when test="@pagenum">
- <fo:inline keep-together.within-line="always">
- <xsl:text> </xsl:text>
- <fo:leader leader-pattern="dots"
- keep-with-next.within-line="always"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="@pagenum"/>
- </fo:inline>
- </xsl:when>
- <xsl:otherwise>
- <!-- just the leaders, what else can I do? -->
- <fo:inline keep-together.within-line="always">
- <xsl:text> </xsl:text>
- <fo:leader leader-pattern="space"
- keep-with-next.within-line="always"/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="*" mode="toc.for.section">
-<!--
- <xsl:call-template name="section.toc"/>
--->
-</xsl:template>
-
-<xsl:template match="*" mode="toc.for.component">
- <xsl:call-template name="component.toc"/>
-</xsl:template>
-
-<xsl:template match="*" mode="toc.for.section">
-<!--
- <xsl:call-template name="section.toc"/>
--->
-</xsl:template>
-
-<xsl:template match="*" mode="toc.for.division">
- <xsl:call-template name="division.toc"/>
-</xsl:template>
-
-<xsl:template match="*" mode="toc.for.set">
-<!--
- <xsl:call-template name="set.toc"/>
--->
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="lot|lotentry">
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/verbatim.xsl b/lib/docbook/docbook-xsl/fo/verbatim.xsl
deleted file mode 100644
index b8ffeca17..000000000
--- a/lib/docbook/docbook-xsl/fo/verbatim.xsl
+++ /dev/null
@@ -1,246 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
- xmlns:xverb="com.nwalsh.xalan.Verbatim"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="sverb xverb lxslt"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: verbatim.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<lxslt:component prefix="xverb"
- functions="numberLines"/>
-
-<xsl:template match="programlisting|screen">
- <xsl:param name="suppress-numbers" select="'0'"/>
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and @linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <xsl:variable name="rtf">
- <xsl:apply-templates/>
- </xsl:variable>
- <fo:block wrap-option='no-wrap'
- text-align='start'
- white-space-collapse='false'
- linefeed-treatment="preserve"
- xsl:use-attribute-sets="monospace.verbatim.properties">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf" select="$rtf"/>
- </xsl:call-template>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block wrap-option='no-wrap'
- text-align='start'
- white-space-collapse='false'
- linefeed-treatment="preserve"
- xsl:use-attribute-sets="monospace.verbatim.properties">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="literallayout">
- <xsl:param name="suppress-numbers" select="'0'"/>
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-
- <xsl:variable name="rtf">
- <xsl:apply-templates/>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and @linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <xsl:choose>
- <xsl:when test="@class='monospaced'">
- <fo:block wrap-option='no-wrap'
- text-align='start'
- linefeed-treatment="preserve"
- white-space-collapse='false'
- xsl:use-attribute-sets="monospace.verbatim.properties">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf" select="$rtf"/>
- </xsl:call-template>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block wrap-option='no-wrap'
- text-align='start'
- linefeed-treatment="preserve"
- white-space-collapse='false'
- xsl:use-attribute-sets="verbatim.properties">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf" select="$rtf"/>
- </xsl:call-template>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@class='monospaced'">
- <fo:block wrap-option='no-wrap'
- text-align='start'
- linefeed-treatment="preserve"
- white-space-collapse='false'
- xsl:use-attribute-sets="monospace.verbatim.properties">
- <xsl:copy-of select="$rtf"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block wrap-option='no-wrap'
- text-align='start'
- linefeed-treatment="preserve"
- white-space-collapse='false'
- xsl:use-attribute-sets="verbatim.properties">
- <xsl:copy-of select="$rtf"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="address">
- <xsl:param name="suppress-numbers" select="'0'"/>
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-
- <xsl:variable name="rtf">
- <xsl:apply-templates/>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and @linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <fo:block wrap-option='no-wrap'
- white-space-collapse='false'
- linefeed-treatment="preserve"
- xsl:use-attribute-sets="verbatim.properties">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf" select="$rtf"/>
- </xsl:call-template>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block wrap-option='no-wrap'
- text-align='start'
- linefeed-treatment="preserve"
- white-space-collapse='false'
- xsl:use-attribute-sets="verbatim.properties">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="number.rtf.lines">
- <xsl:param name="rtf" select="''"/>
- <xsl:param name="pi.context" select="."/>
-
- <!-- Save the global values -->
- <xsl:variable name="global.linenumbering.everyNth"
- select="$linenumbering.everyNth"/>
-
- <xsl:variable name="global.linenumbering.separator"
- select="$linenumbering.separator"/>
-
- <xsl:variable name="global.linenumbering.width"
- select="$linenumbering.width"/>
-
- <!-- Extract the <?dbfo linenumbering.*?> PI values -->
- <xsl:variable name="pi.linenumbering.everyNth">
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis"
- select="$pi.context/processing-instruction('dbfo')"/>
- <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="pi.linenumbering.separator">
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis"
- select="$pi.context/processing-instruction('dbfo')"/>
- <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="pi.linenumbering.width">
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis"
- select="$pi.context/processing-instruction('dbfo')"/>
- <xsl:with-param name="attribute" select="'linenumbering.width'"/>
- </xsl:call-template>
- </xsl:variable>
-
- <!-- Construct the 'in-context' values -->
- <xsl:variable name="linenumbering.everyNth">
- <xsl:choose>
- <xsl:when test="$pi.linenumbering.everyNth != ''">
- <xsl:value-of select="$pi.linenumbering.everyNth"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$global.linenumbering.everyNth"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="linenumbering.separator">
- <xsl:choose>
- <xsl:when test="$pi.linenumbering.separator != ''">
- <xsl:value-of select="$pi.linenumbering.separator"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$global.linenumbering.separator"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="linenumbering.width">
- <xsl:choose>
- <xsl:when test="$pi.linenumbering.width != ''">
- <xsl:value-of select="$pi.linenumbering.width"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$global.linenumbering.width"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-
- <xsl:choose>
- <xsl:when test="contains($vendor, 'SAXON ')">
- <xsl:copy-of select="sverb:numberLines($rtf)"/>
- </xsl:when>
- <xsl:when test="contains($vendor, 'Apache Software Foundation')">
- <xsl:copy-of select="xverb:numberLines($rtf)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>Don't know how to do line numbering with </xsl:text>
- <xsl:value-of select="$vendor"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/xep.xsl b/lib/docbook/docbook-xsl/fo/xep.xsl
deleted file mode 100644
index 8f9a86763..000000000
--- a/lib/docbook/docbook-xsl/fo/xep.xsl
+++ /dev/null
@@ -1,207 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:rx="http://www.renderx.com/XSL/Extensions"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: xep.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
- (c) Stephane Bline Peregrine Systems 2001
- Implementation of xep extensions:
- * Pdf bookmarks (based on the XEP 2.5 implementation)
- * Document information (XEP 2.5 meta information extensions)
- ******************************************************************** -->
-
-<!-- ********************************************************************
- Document information
- In PDF bookmarks can't be used characters with code>255. This version of file
- translates characters with code>255 back to ASCII.
-
- Pavel Zampach (zampach@volny.cz)
-
- ********************************************************************-->
-
-<xsl:template name="xep-document-information">
- <rx:meta-info>
- <xsl:if test="//author[1]">
- <xsl:element name="rx:meta-field">
- <xsl:attribute name="name">author</xsl:attribute>
- <xsl:attribute name="value">
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="//author[1]"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:element>
- </xsl:if>
-
- <xsl:variable name="title">
- <xsl:apply-templates select="/*[1]" mode="label.markup"/>
- <xsl:apply-templates select="/*[1]" mode="title.markup"/>
- </xsl:variable>
-
- <xsl:element name="rx:meta-field">
- <xsl:attribute name="name">title</xsl:attribute>
- <xsl:attribute name="value">
- <xsl:value-of select="$title"/>
- </xsl:attribute>
- </xsl:element>
- </rx:meta-info>
-</xsl:template>
-
-<!-- ********************************************************************
- Pdf bookmarks
- ******************************************************************** -->
-<xsl:template match="set" mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.content"/>
- <xsl:apply-templates select="." mode="title.content"/>
- </xsl:variable>
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="book">
- <xsl:apply-templates select="book"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-<xsl:template match="book" mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="part|preface|chapter|appendix">
- <xsl:apply-templates select="part|preface|chapter|appendix"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-
-<xsl:template match="part" mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="chapter|appendix|preface|reference">
- <xsl:apply-templates select="chapter|appendix|preface|reference"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-<xsl:template match="preface|chapter|appendix"
- mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="section|sect1">
- <xsl:apply-templates select="section|sect1"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-<xsl:template match="section|sect1|sect2|sect3|sect4|sect5"
- mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="section|sect2|sect3|sect4|sect5">
- <xsl:apply-templates select="section|sect2|sect3|sect4|sect5"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-<xsl:template match="bibliography|glossary|index"
- mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
- </rx:bookmark>
-</xsl:template>
-<!-- Added missing template for "article" -->
-<xsl:template match="article"
- mode="xep.outline">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <rx:bookmark internal-destination="{$id}">
- <rx:bookmark-label>
- <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
- </rx:bookmark-label>
-
- <xsl:if test="section|sect1|appendix|bibliography|glossary|index">
- <xsl:apply-templates select="section|sect1|appendix|bibliography|glossary|index"
- mode="xep.outline"/>
- </xsl:if>
- </rx:bookmark>
-</xsl:template>
-
-
-
-<xsl:template match="title" mode="xep.outline">
- <xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/lib/docbook/docbook-xsl/fo/xref.xsl b/lib/docbook/docbook-xsl/fo/xref.xsl
deleted file mode 100644
index 82885c5f7..000000000
--- a/lib/docbook/docbook-xsl/fo/xref.xsl
+++ /dev/null
@@ -1,415 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: xref.xsl,v 1.1 2002/05/15 17:22:29 isberg Exp $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="anchor">
- <fo:wrapper id="{@id}"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="xref">
- <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>???</xsl:text>
- </xsl:when>
-
- <xsl:when test="$target/@xreflabel">
- <fo:basic-link internal-destination="{@linkend}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:call-template name="xref.xreflabel">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </fo:basic-link>
- </xsl:when>
-
- <xsl:otherwise>
- <fo:basic-link internal-destination="{@linkend}"
- xsl:use-attribute-sets="xref.properties">
- <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>???</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$etarget" mode="endterm"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:apply-templates select="$target" mode="xref-to"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:basic-link>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="*" mode="endterm">
- <!-- Process the children of the endterm element -->
- <xsl:apply-templates select="child::node()"/>
-</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>???</xsl:text>
-</xsl:template>
-
-<xsl:template match="author" mode="xref-to">
- <xsl:call-template name="person.name"/>
-</xsl:template>
-
-<xsl:template match="authorgroup" mode="xref-to">
- <xsl:call-template name="person.name.list"/>
-</xsl:template>
-
-<xsl:template match="figure" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="example" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="table" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="equation" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="procedure" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="cmdsynopsis" mode="xref-to">
- <xsl:apply-templates select="(.//command)[1]" mode="xref"/>
-</xsl:template>
-
-<xsl:template match="funcsynopsis" mode="xref-to">
- <xsl:apply-templates select="(.//function)[1]" mode="xref"/>
-</xsl:template>
-
-<xsl:template match="dedication" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="preface" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="chapter" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="appendix" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="bibliography" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="biblioentry|bibliomixed" mode="xref-to">
- <!-- handles both biblioentry and bibliomixed -->
- <xsl:text>[</xsl:text>
- <xsl:choose>
- <xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
- <xsl:variable name="id" select="@id"/>
- <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
- <xsl:choose>
- <xsl:when test="$entry">
- <xsl:choose>
- <xsl:when test="local-name($entry/*[1]) = 'abbrev'">
- <xsl:apply-templates select="$entry/*[1]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No bibliography entry: </xsl:text>
- <xsl:value-of select="$id"/>
- <xsl:text> found in </xsl:text>
- <xsl:value-of select="$bibliography.collection"/>
- </xsl:message>
- <xsl:value-of select="@id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="local-name(*[1]) = 'abbrev'">
- <xsl:apply-templates select="*[1]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>]</xsl:text>
-</xsl:template>
-
-<xsl:template match="glossary" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="index" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="section|simplesect
- |sect1|sect2|sect3|sect4|sect5
- |refsect1|refsect2|refsect3" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
- <!-- What about "in Chapter X"? -->
-</xsl:template>
-
-<xsl:template match="bridgehead" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
- <!-- What about "in Chapter X"? -->
-</xsl:template>
-
-<xsl:template match="qandaset" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="qandadiv" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="qandaentry" mode="xref-to">
- <xsl:apply-templates select="question[1]" mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="question" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="answer" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="part" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="reference" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<xsl:template match="step" mode="xref-to">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Step'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="." mode="number"/>
-</xsl:template>
-
-<xsl:template match="co" mode="xref-to">
- <xsl:apply-templates select="." mode="callout-bug"/>
-</xsl:template>
-
-<xsl:template match="book" mode="xref-to">
- <xsl:apply-templates select="." mode="object.xref.markup"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="link">
- <xsl:variable name="targets" select="id(@linkend)"/>
- <xsl:variable name="target" select="$targets[1]"/>
-
- <xsl:call-template name="check.id.unique">
- <xsl:with-param name="linkend" select="@linkend"/>
- </xsl:call-template>
-
- <fo:basic-link internal-destination="{@linkend}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:choose>
- <xsl:when test="count(child::node()) &gt; 0">
- <!-- If it has content, use it -->
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <!-- else look for an endterm -->
- <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>???</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$etarget" mode="endterm"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>Link element has no content and no Endterm. </xsl:text>
- <xsl:text>Nothing to show in the link to </xsl:text>
- <xsl:value-of select="$target"/>
- </xsl:message>
- <xsl:text>???</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </fo:basic-link>
-</xsl:template>
-
-<xsl:template match="ulink">
- <fo:basic-link external-destination="{@url}"
- xsl:use-attribute-sets="xref.properties">
- <xsl:choose>
- <xsl:when test="count(child::node())=0">
- <xsl:value-of select="@url"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:basic-link>
- <xsl:if test="count(child::node()) != 0">
- <fo:inline hyphenate="false">
- <xsl:text> [</xsl:text>
- <xsl:value-of select="@url"/>
- <xsl:text>]</xsl:text>
- </fo:inline>
- </xsl:if>
-</xsl: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="local-name($target) = 'figure'
- or local-name($target) = 'example'
- or local-name($target) = 'equation'
- or local-name($target) = 'table'
- or local-name($target) = 'dedication'
- or local-name($target) = 'preface'
- or local-name($target) = 'bibliography'
- or local-name($target) = 'glossary'
- or local-name($target) = 'index'
- or local-name($target) = 'setindex'
- or local-name($target) = 'colophon'">
- <xsl:call-template name="gentext.startquote"/>
- <xsl:apply-templates select="$target" mode="title.markup"/>
- <xsl:call-template name="gentext.endquote"/>
- </xsl:when>
- <xsl:otherwise>
- <fo:inline font-style="italic">
- <xsl:apply-templates select="$target" mode="title.markup"/>
- </fo:inline>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="number.xref">
- <xsl:param name="target" select="."/>
- <xsl:apply-templates select="$target" mode="label.markup"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template name="xref.xreflabel">
- <!-- called to process an xreflabel...you might use this to make -->
- <!-- xreflabels come out in the right font for different targets, -->
- <!-- for example. -->
- <xsl:param name="target" select="."/>
- <xsl:value-of select="$target/@xreflabel"/>
-</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="insert.page.citation">
- <xsl:param name="id" select="'???'"/>
- <xsl:if test="$insert.xref.page.number">
- <xsl:text> </xsl:text>
- <fo:inline keep-together.within-line="always">
- <xsl:text>[</xsl:text>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'page.citation'"/>
- </xsl:call-template>
- <xsl:text> </xsl:text>
- <fo:page-number-citation ref-id="{$id}"/>
- <xsl:text>]</xsl:text>
- </fo:inline>
- </xsl:if>
-</xsl:template>
-
-</xsl:stylesheet>