[jboss-cvs] jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo ...
Clebert Suconic
csuconic at jboss.com
Fri Nov 10 12:40:17 EST 2006
User: csuconic
Date: 06/11/10 12:40:17
Added: docbook/docbook-support/support/docbook-xsl/fo
info.xsl refentry.xsl formal.xsl
titlepage.templates.xml biblio.xsl autoidx.xsl
verbatim.xsl pdf2index profile-docbook.xsl
fo-patch-for-fop.xsl param.xml passivetex.xsl
sections.xsl qandaset.xsl fop.xsl htmltbl.xsl
pi.xsl glossary.xsl footnote.xsl component.xsl
param.xweb task.xsl param.ent ebnf.xsl toc.xsl
autotoc.xsl docbook.xsl index.xsl ChangeLog
titlepage.xsl division.xsl table.xsl block.xsl
autoidx-ng.xsl pagesetup.xsl axf.xsl math.xsl
inline.xsl callout.xsl admon.xsl fo.xsl
docbookng.xsl synop.xsl param.xsl
titlepage.templates.xsl lists.xsl fo-rtf.xsl
xref.xsl xep.xsl graphics.xsl keywords.xsl
Log:
Adding docbook under jboss-profiler tree
Revision Changes Path
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/info.xsl
Index: info.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/refentry.xsl
Index: refentry.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: refentry.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="reference.titlepage"/>
</fo:block>
</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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select=".." mode="reference.titlepage.mode"/>
<xsl:if test="title">
<fo:block id="{$id}">
<xsl:call-template name="partintro.titlepage"/>
</fo:block>
</xsl:if>
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match="reference/docinfo|refentry/refentryinfo"></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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<xsl:variable name="refentry.content">
<fo:block id="{$id}">
<xsl:apply-templates/>
</fo:block>
</xsl:variable>
<xsl:choose>
<xsl:when test="not(parent::*) or
parent::reference or
parent::part">
<!-- make a page sequence -->
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:copy-of select="$refentry.content"/>
</fo:flow>
</fo:page-sequence>
</xsl:when>
<xsl:otherwise>
<fo:block>
<xsl:if test="$refentry.pagebreak != 0">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:if>
<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:variable name="section.level">
<xsl:call-template name="refentry.level">
<xsl:with-param name="node" select="ancestor::refentry"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="reftitle">
<xsl:choose>
<xsl:when test="$refentry.generate.name != 0">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'RefName'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$refentry.generate.title != 0">
<xsl:choose>
<xsl:when test="../refmeta/refentrytitle">
<xsl:apply-templates select="../refmeta/refentrytitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refname[1]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<!-- xsl:use-attribute-sets takes only a Qname, not a variable -->
<fo:block>
<xsl:choose>
<xsl:when test="$section.level = 1">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level1.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 2">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level2.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 3">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level3.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 4">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level4.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 5">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level5.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level6.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:otherwise>
</xsl:choose>
<fo:block space-after="1em">
<xsl:choose>
<xsl:when test="../refmeta/refentrytitle">
<xsl:apply-templates select="../refmeta/refentrytitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refname[1]"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="refpurpose"/>
</fo:block>
<fo:block>
<xsl:for-each select="refname">
<xsl:apply-templates select="."/>
<xsl:if test="following-sibling::refname">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
</fo:block>
</fo:block>
</xsl:template>
<xsl:template match="refname">
<xsl:apply-templates/>
</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">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="refsynopsisdiv.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="refsection">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="refsection.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="refsect1">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="refsect1.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="refsect2">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="refsect2.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="refsect3">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="refsect3.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="refsynopsisdiv/title
|refsection/title
|refsect1/title
|refsect2/title
|refsect3/title">
<!-- nop; titlepage.mode instead -->
</xsl:template>
<xsl:template match="refsynopsisdiv/title
|refsection/title
|refsect1/title
|refsect2/title
|refsect3/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:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:if test="$passivetex.extensions != 0">
<fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
fotex-bookmark-level="{$level + 2}"
fotex-bookmark-label="{$id}">
<xsl:value-of select="$title"/>
</fotex:bookmark>
</xsl:if>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count(ancestor::*)-1"/>
</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</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:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/formal.xsl
Index: formal.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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:param name="placement" select="'before'"/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="content">
<xsl:if test="$placement = 'before'">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:if>
<xsl:apply-templates/>
<xsl:if test="$placement != 'before'">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="self::figure">
<fo:block id="{$id}"
xsl:use-attribute-sets="figure.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:when test="self::example">
<fo:block id="{$id}"
xsl:use-attribute-sets="example.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:when test="self::equation">
<fo:block id="{$id}"
xsl:use-attribute-sets="equation.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:when test="self::table">
<fo:block id="{$id}"
xsl:use-attribute-sets="table.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:when test="self::procedure">
<fo:block id="{$id}"
xsl:use-attribute-sets="procedure.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}"
xsl:use-attribute-sets="formal.object.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="formal.object.heading">
<xsl:param name="object" select="."/>
<xsl:param name="placement" select="'before'"/>
<fo:block xsl:use-attribute-sets="formal.title.properties">
<xsl:choose>
<xsl:when test="$placement = 'before'">
<xsl:attribute
name="keep-with-next.within-column">always</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="keep-with-previous.within-column">always</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="$object" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</fo:block>
</xsl:template>
<xsl:template name="informal.object">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="local-name(.) = 'equation' or
local-name(.) = 'informalequation'">
<fo:block id="{$id}"
xsl:use-attribute-sets="equation.properties">
<xsl:apply-templates/>
</fo:block>
</xsl:when>
<xsl:when test="local-name(.) = 'procedure'">
<fo:block id="{$id}"
xsl:use-attribute-sets="procedure.properties">
<xsl:apply-templates/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}">
<xsl:apply-templates/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="semiformal.object">
<xsl:param name="placement" select="'before'"/>
<xsl:choose>
<xsl:when test="./title">
<xsl:call-template name="formal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="informal.object"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="figure">
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Get align value from internal mediaobject -->
<xsl:variable name="align">
<xsl:if test="mediaobject|mediaobjectco|screenshot|graphic|graphicco">
<xsl:variable name="olist" select="mediaobject/imageobject
|mediaobject/imageobjectco
|mediaobject/videoobject
|mediaobject/audioobject
|mediaobject/textobject
|mediaobjectco/imageobject
|mediaobjectco/imageobjectco
|mediaobjectco/videoobject
|mediaobjectco/audioobject
|mediaobjectco/textobject
|screenshot/mediaobject/imageobject
|screenshot/mediaobject/imageobjectco
|screenshot/mediaobject/videoobject
|screenshot/mediaobject/audioobject
|screenshot/mediaobject/textobject
|screenshot/mediaobjectco/imageobject
|screenshot/mediaobjectco/imageobjectco
|screenshot/mediaobjectco/videoobject
|screenshot/mediaobjectco/audioobject
|screenshot/mediaobjectco/textobject
|graphic
|graphicco/graphic
|screenshot/graphic
|screenshot/graphicco/graphic"/>
<xsl:variable name="object.index">
<xsl:call-template name="select.mediaobject.index">
<xsl:with-param name="olist" select="$olist"/>
<xsl:with-param name="count" select="1"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="object" select="$olist[position() = $object.index]"/>
<xsl:value-of select="$object/imagedata[@align][1]/@align"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="figure">
<xsl:choose>
<xsl:when test="$align != ''">
<fo:block>
<xsl:attribute name="text-align">
<xsl:value-of select="$align"/>
</xsl:attribute>
<xsl:call-template name="formal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</fo:block>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="formal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="@float and @float != '0'">
<fo:float>
<xsl:attribute name="float">
<xsl:choose>
<xsl:when test="@float = '1'">
<xsl:value-of select="$default.float.class"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@float"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$figure"/>
</fo:float>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$figure"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="example">
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Get align value from internal mediaobject -->
<xsl:variable name="align">
<xsl:if test="mediaobject">
<xsl:variable name="olist" select="mediaobject/imageobject
|mediaobject/imageobjectco
|mediaobject/videoobject
|mediaobject/audioobject
|mediaobject/textobject"/>
<xsl:variable name="object.index">
<xsl:call-template name="select.mediaobject.index">
<xsl:with-param name="olist" select="$olist"/>
<xsl:with-param name="count" select="1"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="object" select="$olist[position() = $object.index]"/>
<xsl:value-of select="$object/imagedata[@align][1]/@align"/>
</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="$align != ''">
<fo:block>
<xsl:attribute name="text-align">
<xsl:value-of select="$align"/>
</xsl:attribute>
<xsl:call-template name="formal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</fo:block>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="formal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="table.frame">
<xsl:variable name="frame">
<xsl:choose>
<xsl:when test="../@frame">
<xsl:value-of select="../@frame"/>
</xsl:when>
<xsl:otherwise>all</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$frame='all'">
<xsl:attribute name="border-left-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-right-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-top-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-left-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-right-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-top-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-left-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
<xsl:attribute name="border-right-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
<xsl:attribute name="border-top-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$frame='bottom'">
<xsl:attribute name="border-left-style">none</xsl:attribute>
<xsl:attribute name="border-right-style">none</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$frame='sides'">
<xsl:attribute name="border-left-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-right-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="border-left-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-right-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-left-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
<xsl:attribute name="border-right-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$frame='top'">
<xsl:attribute name="border-left-style">none</xsl:attribute>
<xsl:attribute name="border-right-style">none</xsl:attribute>
<xsl:attribute name="border-top-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="border-top-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-top-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$frame='topbot'">
<xsl:attribute name="border-left-style">none</xsl:attribute>
<xsl:attribute name="border-right-style">none</xsl:attribute>
<xsl:attribute name="border-top-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-style">
<xsl:value-of select="$table.frame.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-top-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-width">
<xsl:value-of select="$table.frame.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-top-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
<xsl:attribute name="border-bottom-color">
<xsl:value-of select="$table.frame.border.color"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$frame='none'">
<xsl:attribute name="border-left-style">none</xsl:attribute>
<xsl:attribute name="border-right-style">none</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>Impossible frame on table: </xsl:text>
<xsl:value-of select="$frame"/>
</xsl:message>
<xsl:attribute name="border-left-style">none</xsl:attribute>
<xsl:attribute name="border-right-style">none</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="table">
<xsl:choose>
<xsl:when test="tgroup|mediaobject|graphic">
<xsl:call-template name="calsTable"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="htmlTable"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="calsTable">
<xsl:if test="tgroup/tbody/tr
|tgroup/thead/tr
|tgroup/tfoot/tr">
<xsl:message terminate="yes">Broken table: tr descendent of CALS Table.</xsl:message>
</xsl:if>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="table.content">
<fo:block id="{$id}"
xsl:use-attribute-sets="table.properties">
<xsl:if test="$placement = 'before'">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:if>
<xsl:for-each select="tgroup">
<xsl:variable name="prop-columns"
select=".//colspec[contains(@colwidth, '*')]"/>
<fo:table xsl:use-attribute-sets="table.table.properties">
<xsl:call-template name="table.frame"/>
<xsl:if test="following-sibling::tgroup">
<xsl:attribute name="border-bottom-width">0pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="padding-bottom">0pt</xsl:attribute>
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
<xsl:attribute name="space-after">0pt</xsl:attribute>
<xsl:attribute name="space-after.minimum">0pt</xsl:attribute>
<xsl:attribute name="space-after.optimum">0pt</xsl:attribute>
<xsl:attribute name="space-after.maximum">0pt</xsl:attribute>
</xsl:if>
<xsl:if test="preceding-sibling::tgroup">
<xsl:attribute name="border-top-width">0pt</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="padding-top">0pt</xsl:attribute>
<xsl:attribute name="margin-top">0pt</xsl:attribute>
<xsl:attribute name="space-before">0pt</xsl:attribute>
<xsl:attribute name="space-before.minimum">0pt</xsl:attribute>
<xsl:attribute name="space-before.optimum">0pt</xsl:attribute>
<xsl:attribute name="space-before.maximum">0pt</xsl:attribute>
</xsl:if>
<xsl:if test="count($prop-columns) != 0">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="."/>
</fo:table>
</xsl:for-each>
<xsl:if test="$placement != 'before'">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:if>
</fo:block>
</xsl:variable>
<xsl:variable name="footnotes">
<xsl:if test="tgroup//footnote">
<fo:block font-family="{$body.fontset}"
font-size="{$footnote.font.size}"
keep-with-previous="always">
<xsl:apply-templates select="tgroup//footnote" mode="table.footnote.mode"/>
</fo:block>
</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="@orient='land'">
<fo:block-container reference-orientation="90">
<fo:block>
<!-- Such spans won't work in most FO processors since it does
not follow the XSL spec, which says it must appear on
an element that is a direct child of fo:flow.
Some processors relax that requirement, however. -->
<xsl:attribute name="span">
<xsl:choose>
<xsl:when test="@pgwide=1">all</xsl:when>
<xsl:otherwise>none</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$table.content"/>
<xsl:copy-of select="$footnotes"/>
</fo:block>
</fo:block-container>
</xsl:when>
<xsl:otherwise>
<fo:block>
<xsl:attribute name="span">
<xsl:choose>
<xsl:when test="@pgwide=1">all</xsl:when>
<xsl:otherwise>none</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$table.content"/>
<xsl:copy-of select="$footnotes"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="equation">
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="semiformal.object">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="figure/title"></xsl:template>
<xsl:template match="figure/titleabbrev"></xsl:template>
<xsl:template match="table/title"></xsl:template>
<xsl:template match="table/titleabbrev"></xsl:template>
<xsl:template match="table/textobject"></xsl:template>
<xsl:template match="example/title"></xsl:template>
<xsl:template match="example/titleabbrev"></xsl:template>
<xsl:template match="equation/title"></xsl:template>
<xsl:template match="equation/titleabbrev"></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:choose>
<xsl:when test="tgroup|mediaobject|graphic">
<xsl:call-template name="informalCalsTable"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="htmlTable"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="informalCalsTable">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="table.content">
<xsl:for-each select="tgroup">
<xsl:variable name="prop-columns"
select=".//colspec[contains(@colwidth, '*')]"/>
<fo:block xsl:use-attribute-sets="informal.object.properties">
<fo:table xsl:use-attribute-sets="table.table.properties">
<xsl:call-template name="table.frame"/>
<xsl:if test="following-sibling::tgroup">
<xsl:attribute name="border-bottom-width">0pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="padding-bottom">0pt</xsl:attribute>
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
<xsl:attribute name="space-after">0pt</xsl:attribute>
<xsl:attribute name="space-after.minimum">0pt</xsl:attribute>
<xsl:attribute name="space-after.optimum">0pt</xsl:attribute>
<xsl:attribute name="space-after.maximum">0pt</xsl:attribute>
</xsl:if>
<xsl:if test="preceding-sibling::tgroup">
<xsl:attribute name="border-top-width">0pt</xsl:attribute>
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="padding-top">0pt</xsl:attribute>
<xsl:attribute name="margin-top">0pt</xsl:attribute>
<xsl:attribute name="space-before">0pt</xsl:attribute>
<xsl:attribute name="space-before.minimum">0pt</xsl:attribute>
<xsl:attribute name="space-before.optimum">0pt</xsl:attribute>
<xsl:attribute name="space-before.maximum">0pt</xsl:attribute>
</xsl:if>
<xsl:if test="count($prop-columns) != 0">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="."/>
</fo:table>
</fo:block>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="footnotes">
<xsl:if test="tgroup//footnote">
<fo:block font-family="{$body.fontset}"
font-size="{$footnote.font.size}"
keep-with-previous="always">
<xsl:apply-templates select="tgroup//footnote" mode="table.footnote.mode"/>
</fo:block>
</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="@orient='land'">
<fo:block-container reference-orientation="90">
<fo:block id="{$id}">
<xsl:attribute name="span">
<xsl:choose>
<xsl:when test="@pgwide=1">all</xsl:when>
<xsl:otherwise>none</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$table.content"/>
<xsl:copy-of select="$footnotes"/>
</fo:block>
</fo:block-container>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}">
<xsl:attribute name="span">
<xsl:choose>
<xsl:when test="@pgwide=1">all</xsl:when>
<xsl:otherwise>none</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$table.content"/>
<xsl:copy-of select="$footnotes"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="informaltable/textobject"></xsl:template>
<xsl:template match="informalequation">
<xsl:call-template name="informal.object"/>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/titlepage.templates.xml
Index: titlepage.templates.xml
===================================================================
<!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">
<!-- ********************************************************************
$Id: titlepage.templates.xml,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<!-- ==================================================================== -->
<t:titlepage t:element="article" t:wrapper="fo:block"
font-family="{$title.fontset}">
<t:titlepage-content t:side="recto"
text-align="center">
<title t:named-template="component.title"
param:node="ancestor-or-self::article[1]"
keep-with-next="always"
font-size="&hsize5;"
font-weight="bold"/>
<subtitle/>
<corpauthor space-before="0.5em"
font-size="&hsize2;"/>
<authorgroup space-before="0.5em"
font-size="&hsize2;"/>
<author space-before="0.5em"
font-size="&hsize2;"/>
<othercredit space-before="0.5em"/>
<releaseinfo space-before="0.5em"/>
<copyright space-before="0.5em"/>
<legalnotice text-align="start"
margin-left="0.5in"
margin-right="0.5in"
font-family="{$body.fontset}"/>
<pubdate space-before="0.5em"/>
<revision space-before="0.5em"/>
<revhistory space-before="0.5em"/>
<abstract space-before="0.5em"
text-align="start"
margin-left="0.5in"
margin-right="0.5in"
font-family="{$body.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="set" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
param:node="ancestor-or-self::set[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"
text-align="center"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="book" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
param:node="ancestor-or-self::book[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
text-align="center"
font-size="&hsize4;"
space-before="&hsize4space;"
font-family="{$title.fontset}"/>
<corpauthor font-size="&hsize3;"
keep-with-next="always"
space-before="2in"/>
<authorgroup space-before="2in"/>
<author font-size="&hsize3;"
space-before="&hsize2space;"
keep-with-next="always"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
<title
t:named-template="book.verso.title"
font-size="&hsize2;"
font-weight="bold"
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup t:named-template="verso.authorgroup"/>
<author/>
<othercredit/>
<pubdate space-before="1em"/>
<copyright/>
<abstract/>
<legalnotice font-size="8pt"/>
</t:titlepage-content>
<t:titlepage-separator>
<fo:block break-after="page"/>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
<fo:block break-after="page"/>
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="part" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
param:node="ancestor-or-self::part[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
text-align="center"
font-size="&hsize4;"
space-before="&hsize4space;"
font-weight='bold'
font-style='italic'
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="partintro" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
text-align="center"
font-size="&hsize5;"
font-weight="bold"
space-before="1em"
font-family="{$title.fontset}"/>
<subtitle
text-align="center"
font-size="&hsize2;"
font-weight="bold"
font-style="italic"
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="reference" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
param:node="ancestor-or-self::reference[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"
text-align="center"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="refsection" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="refsect1" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="refsect2" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="refsect3" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="dedication" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::dedication[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="preface" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::preface[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="chapter" t:wrapper="fo:block"
font-family="{$title.fontset}">
<t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">
<title t:named-template="component.title"
param:node="ancestor-or-self::chapter[1]"
font-size="&hsize5;"
font-weight="bold"/>
<subtitle space-before="0.5em"
font-style="italic"
font-size="&hsize2;"
font-weight="bold"/>
<corpauthor space-before="0.5em"
space-after="0.5em"
font-size="&hsize2;"/>
<authorgroup space-before="0.5em"
space-after="0.5em"
font-size="&hsize2;"/>
<author space-before="0.5em"
space-after="0.5em"
font-size="&hsize2;"/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="appendix" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="component.title"
param:node="ancestor-or-self::appendix[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="section" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="sect1" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="sect2" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="sect3" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="sect4" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="sect5" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="simplesect" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup/>
<author/>
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="bibliography" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::bibliography[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="bibliodiv" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title t:named-template="component.title"
param:node="ancestor-or-self::bibliodiv[1]"
margin-left="{$title.margin.left}"
font-size="&hsize4;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="glossary" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::glossary[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="glossdiv" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title t:named-template="component.title"
param:node="ancestor-or-self::glossdiv[1]"
margin-left="{$title.margin.left}"
font-size="&hsize4;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="index" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::index[1]"
param:pagewide="1"
margin-left="0pt"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<!-- The indexdiv.title template is used so that manual and -->
<!-- automatically generated indexdiv titles get the same -->
<!-- formatting. -->
<t:titlepage t:element="indexdiv" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title t:force="1"
t:named-template="indexdiv.title"
param:title="title"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="setindex" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::setindex[1]"
param:pagewide="1"
margin-left="0pt"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="colophon" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="component.title"
param:node="ancestor-or-self::colophon[1]"
margin-left="{$title.margin.left}"
font-size="&hsize5;"
font-family="{$title.fontset}"
font-weight="bold"/>
<subtitle
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
<t:titlepage t:element="table.of.contents" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'TableofContents'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.tables" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofTables'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.figures" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofFigures'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.examples" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofExamples'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.equations" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofEquations'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.procedures" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofProcedures'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<t:titlepage t:element="list.of.unknowns" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:force="1"
t:named-template="gentext"
param:key="'ListofUnknown'"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em"
space-after="0.5em"
margin-left="{$title.margin.left}"
font-size="&hsize3;"
font-weight="bold"
font-family="{$title.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
</t:templates>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/biblio.xsl
Index: biblio.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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>
<xsl:choose>
<xsl:when test="not(parent::*) or parent::part or parent::book">
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="bibliography.titlepage"/>
</fo:block>
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em">
<xsl:call-template name="bibliography.titlepage"/>
</fo:block>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</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="bibliodiv">
<fo:block>
<xsl:attribute name="id">
<xsl:call-template name="object.id"/>
</xsl:attribute>
<xsl:call-template name="bibliodiv.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="bibliodiv/title"/>
<xsl:template match="bibliodiv/subtitle"/>
<xsl:template match="bibliodiv/titleabbrev"/>
<!-- ==================================================================== -->
<xsl:template match="bibliolist">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}"
space-before.minimum="1em"
space-before.optimum="1.5em"
space-before.maximum="2em">
<xsl:if test="blockinfo/title|info/title|title">
<xsl:call-template name="formal.object.heading"/>
</xsl:if>
<xsl:apply-templates select="*[not(self::blockinfo)
and not(self::title)
and not(self::titleabbrev)]"/>
</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"
start-indent="0.5in" text-indent="-0.5in">
<xsl:call-template name="biblioentry.label"/>
<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"
start-indent="0.5in" text-indent="-0.5in">
<xsl:call-template name="biblioentry.label"/>
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="biblioentry.label">
<xsl:param name="node" select="."/>
<xsl:choose>
<xsl:when test="$bibliography.numbered != 0">
<xsl:text>[</xsl:text>
<xsl:number from="bibliography" count="biblioentry|bibliomixed"
level="any" format="1"/>
<xsl:text>] </xsl:text>
</xsl:when>
<xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
<xsl:text>[</xsl:text>
<xsl:apply-templates select="$node/abbrev[1]"/>
<xsl:text>] </xsl:text>
</xsl:when>
<xsl:when test="$node/@xreflabel">
<xsl:text>[</xsl:text>
<xsl:value-of select="$node/@xreflabel"/>
<xsl:text>] </xsl:text>
</xsl:when>
<xsl:when test="$node/@id">
<xsl:text>[</xsl:text>
<xsl:value-of select="$node/@id"/>
<xsl:text>] </xsl:text>
</xsl:when>
<xsl:otherwise><!-- nop --></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">
<xsl:if test="preceding-sibling::*">
<fo:inline>
<xsl:apply-templates mode="bibliography.mode"/>
</fo:inline>
</xsl:if>
</xsl:template>
<xsl:template match="abstract" mode="bibliography.mode">
<!-- suppressed -->
</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|personblurb" 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' or @pubwork='article'">
<xsl:call-template name="gentext.startquote"/>
<xsl:apply-templates mode="bibliography.mode"/>
<xsl:call-template name="gentext.endquote"/>
</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>
<xsl:choose>
<xsl:when test="@pubwork = 'article'">
<xsl:call-template name="gentext.startquote"/>
<xsl:apply-templates mode="bibliography.mode"/>
<xsl:call-template name="gentext.endquote"/>
</xsl:when>
<xsl:otherwise>
<fo:inline font-style="italic">
<xsl:apply-templates mode="bibliography.mode"/>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
<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:block>
<xsl:apply-templates select="."/> <!-- use normal mode -->
</fo:block>
</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="bibliocoverage|biblioid|bibliorelation|bibliosource"
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">
<xsl:if test="preceding-sibling::*">
<fo:inline>
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:inline>
</xsl:if>
</xsl:template>
<xsl:template match="abstract" mode="bibliomixed.mode">
<fo:block start-indent="1in">
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:block>
</xsl:template>
<xsl:template match="para" mode="bibliomixed.mode">
<fo:block>
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:block>
</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|personblurb" 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' or @pubwork='article'">
<xsl:call-template name="gentext.startquote"/>
<xsl:apply-templates mode="bibliomixed.mode"/>
<xsl:call-template name="gentext.endquote"/>
</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">
<xsl:choose>
<xsl:when test="@pubwork = 'article'">
<xsl:call-template name="gentext.startquote"/>
<xsl:apply-templates mode="bibliomixed.mode"/>
<xsl:call-template name="gentext.endquote"/>
</xsl:when>
<xsl:otherwise>
<fo:inline font-style="italic">
<xsl:apply-templates mode="bibliography.mode"/>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</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:template match="bibliocoverage|biblioid|bibliorelation|bibliosource"
mode="bibliomixed.mode">
<fo:inline>
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:inline>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/autoidx.xsl
Index: autoidx.xsl
===================================================================
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
<!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
<!ENTITY secondary 'normalize-space(concat(secondary/@sortas, secondary[not(@sortas)]))'>
<!ENTITY tertiary 'normalize-space(concat(tertiary/@sortas, tertiary[not(@sortas)]))'>
<!ENTITY sep '" "'>
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())'>
]>
<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"
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
version="1.0">
<!-- ********************************************************************
$Id: autoidx.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<!-- ==================================================================== -->
<!-- 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="endofrange"
match="indexterm[@class='endofrange']"
use="@startref"/>
<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:template name="generate-index">
<xsl:param name="scope" select="(ancestor::book|/)[last()]"/>
<xsl:variable name="terms"
select="//indexterm[count(.|key('letter',
translate(substring(&primary;, 1, 1),
&lowercase;,
&uppercase;))[&scope;][1]) = 1
and not(@class = 'endofrange')]"/>
<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">
<xsl:call-template name="indexdiv.title">
<xsl:with-param name="titlecontent">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'index symbols'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
<fo:block>
<xsl:apply-templates select="$others[count(.|key('primary',
&primary;)[&scope;][1]) = 1]"
mode="index-symbol-div">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
<xsl:apply-templates select="$alphabetical[count(.|key('letter',
translate(substring(&primary;, 1, 1),
&lowercase;,&uppercase;))[&scope;][1]) = 1]"
mode="index-div">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:template>
<xsl:template match="indexterm" mode="index-div">
<xsl:param name="scope" select="."/>
<xsl:variable name="key"
select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
<xsl:if test="key('letter', $key)[&scope;]
[count(.|key('primary', &primary;)[&scope;][1]) = 1]">
<fo:block>
<xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
<xsl:call-template name="indexdiv.title">
<xsl:with-param name="titlecontent">
<xsl:value-of select="translate($key, &lowercase;, &uppercase;)"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<fo:block>
<xsl:apply-templates select="key('letter', $key)[&scope;]
[count(.|key('primary', &primary;)[&scope;][1])=1]"
mode="index-primary">
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</fo:block>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="index-symbol-div">
<xsl:param name="scope" select="."/>
<xsl:variable name="key"
select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
<fo:block>
<xsl:apply-templates select="key('letter', $key)[&scope;][count(.|key('primary', &primary;)[&scope;][1]) = 1]"
mode="index-primary">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:template>
<xsl:template match="indexterm" mode="index-primary">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="&primary;"/>
<xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
<fo:block>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="primary"/>
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<xsl:if test="$refs[not(see) and not(seealso) and not(secondary)]">
<xsl:text>, </xsl:text>
<xsl:variable name="primary" select="primary"/>
<xsl:variable name="primary.significant" select="concat(primary, $significant.flag)"/>
<rx:page-index>
<xsl:if test="$refs[@significance='preferred'][not(see) and not(seealso) and not(secondary)]">
<rx:index-item xsl:use-attribute-sets="index.preferred.page.properties xep.index.item.properties"
ref-key="{$primary.significant}"/>
</xsl:if>
<xsl:if test="$refs[not(@significance) or @significance!='preferred'][not(see) and not(seealso) and not(secondary)]">
<rx:index-item xsl:use-attribute-sets="xep.index.item.properties"
ref-key="{$primary}"/>
</xsl:if>
</rx:page-index>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="page-number-citations">
<xsl:for-each select="$refs[not(see) and not(seealso)
and not(secondary)]">
<xsl:apply-templates select="." mode="reference">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</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>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$refs[not(secondary)]/*[self::see]">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &sep;, &sep;, see))[&scope;][1])]"
mode="index-see">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
</fo:block>
<xsl:if test="$refs/secondary or $refs[not(secondary)]/*[self::seealso]">
<fo:block start-indent="1pc">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &sep;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]"
mode="index-secondary">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="index-secondary">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
<xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
<fo:block>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="secondary"/>
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<xsl:if test="$refs[not(see) and not(seealso) and not(tertiary)]">
<xsl:text>, </xsl:text>
<xsl:variable name="primary" select="primary"/>
<xsl:variable name="secondary" select="secondary"/>
<xsl:variable name="primary.significant" select="concat(primary, $significant.flag)"/>
<rx:page-index>
<xsl:if test="$refs[@significance='preferred'][not(see) and not(seealso) and not(tertiary)]">
<rx:index-item xsl:use-attribute-sets="index.preferred.page.properties xep.index.item.properties">
<xsl:attribute name="ref-key">
<xsl:value-of select="$primary.significant"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$secondary"/>
</xsl:attribute>
</rx:index-item>
</xsl:if>
<xsl:if test="$refs[not(@significance) or @significance!='preferred'][not(see) and not(seealso) and not(tertiary)]">
<rx:index-item xsl:use-attribute-sets="xep.index.item.properties">
<xsl:attribute name="ref-key">
<xsl:value-of select="$primary"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$secondary"/>
</xsl:attribute>
</rx:index-item>
</xsl:if>
</rx:page-index>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="page-number-citations">
<xsl:for-each select="$refs[not(see) and not(seealso)
and not(tertiary)]">
<xsl:apply-templates select="." mode="reference">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</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>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$refs[not(tertiary)]/*[self::see]">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, see))[&scope;][1])]"
mode="index-see">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
</fo:block>
<xsl:if test="$refs/tertiary or $refs[not(tertiary)]/*[self::seealso]">
<fo:block start-indent="2pc">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]"
mode="index-tertiary">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&tertiary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="index-tertiary">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
<xsl:variable name="refs" select="key('tertiary', $key)[&scope;]"/>
<fo:block>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="tertiary"/>
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<xsl:if test="$refs[not(see) and not(seealso)]">
<xsl:text>, </xsl:text>
<xsl:variable name="primary" select="primary"/>
<xsl:variable name="secondary" select="secondary"/>
<xsl:variable name="tertiary" select="tertiary"/>
<xsl:variable name="primary.significant" select="concat(primary, $significant.flag)"/>
<rx:page-index>
<xsl:if test="$refs[@significance='preferred'][not(see) and not(seealso)]">
<rx:index-item xsl:use-attribute-sets="index.preferred.page.properties xep.index.item.properties">
<xsl:attribute name="ref-key">
<xsl:value-of select="$primary.significant"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$secondary"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$tertiary"/>
</xsl:attribute>
</rx:index-item>
</xsl:if>
<xsl:if test="$refs[not(@significance) or @significance!='preferred'][not(see) and not(seealso)]">
<rx:index-item xsl:use-attribute-sets="xep.index.item.properties">
<xsl:attribute name="ref-key">
<xsl:value-of select="$primary"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$secondary"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$tertiary"/>
</xsl:attribute>
</rx:index-item>
</xsl:if>
</rx:page-index>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="page-number-citations">
<xsl:for-each select="$refs[not(see) and not(seealso)]">
<xsl:apply-templates select="." mode="reference">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</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>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$refs/see">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see))[&scope;][1])]"
mode="index-see">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
</fo:block>
<xsl:if test="$refs/seealso">
<fo:block>
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="reference">
<xsl:param name="scope" select="."/>
<xsl:param name="separator" select="', '"/>
<xsl:if test="$passivetex.extensions = '0'">
<xsl:value-of select="$separator"/>
</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:with-param name="scope" select="$scope"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<xsl:if test="key('endofrange', @id)[&scope;]">
<xsl:apply-templates select="key('endofrange', @id)[&scope;][last()]"
mode="reference">
<xsl:with-param name="scope" select="$scope"/>
<xsl:with-param name="separator" select="'-'"/>
</xsl:apply-templates>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="reference">
<xsl:param name="scope" select="."/>
<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('id', $zone)[&scope;]"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$target[1]"/>
</xsl:call-template>
</xsl:variable>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<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:with-param name="scope" select="$scope"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="zone" select="$zones"/>
<xsl:variable name="target" select="key('id', $zone)[&scope;]"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$target[1]"/>
</xsl:call-template>
</xsl:variable>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="indexterm" mode="index-see">
<xsl:param name="scope" select="."/>
<fo:inline>
<xsl:text> (</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'see'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="see"/>
<xsl:text>)</xsl:text>
</fo:inline>
</xsl:template>
<xsl:template match="indexterm" mode="index-seealso">
<xsl:param name="scope" select="."/>
<fo:block>
<xsl:text>(</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'seealso'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="seealso"/>
<xsl:text>)</xsl:text>
</fo:block>
</xsl:template>
<!-- ====================================================================== -->
<xsl:template name="generate-index-markup">
<xsl:param name="scope" select="(ancestor::book|/)[last()]"/>
<xsl:variable name="terms" select="$scope//indexterm[count(.|key('letter',
translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;))[&scope;][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)))]"/>
<xsl:text><index> </xsl:text>
<xsl:if test="$others">
<xsl:text> <indexdiv> </xsl:text>
<xsl:text><title></xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'index symbols'"/>
</xsl:call-template>
<xsl:text></title> </xsl:text>
<xsl:apply-templates select="$others[count(.|key('primary',
&primary;)[&scope;][1]) = 1]"
mode="index-symbol-div-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:text></indexdiv> </xsl:text>
</xsl:if>
<xsl:apply-templates select="$alphabetical[count(.|key('letter',
translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;))[&scope;][1]) = 1]"
mode="index-div-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:text></index> </xsl:text>
</xsl:template>
<xsl:template match="*" mode="index-markup">
<xsl:param name="scope" select="."/>
<xsl:text><</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>> </xsl:text>
<xsl:apply-templates mode="index-markup">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="indexterm" mode="index-div-markup">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
<xsl:text> <indexdiv> </xsl:text>
<xsl:text><title></xsl:text>
<xsl:value-of select="translate($key, &lowercase;, &uppercase;)"/>
<xsl:text></title> </xsl:text>
<xsl:apply-templates select="key('letter', $key)[&scope;][count(.|key('primary', &primary;)[&scope;][1]) = 1]"
mode="index-primary-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:text></indexdiv> </xsl:text>
</xsl:template>
<xsl:template match="indexterm" mode="index-symbol-div-markup">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
<xsl:apply-templates select="key('letter', $key)[&scope;][count(.|key('primary', &primary;)[&scope;][1]) = 1]"
mode="index-primary-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="indexterm" mode="index-primary-markup">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="&primary;"/>
<xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
<xsl:variable name="pages" select="$refs[not(see) and not(seealso)]"/>
<xsl:text> <indexentry> </xsl:text>
<xsl:text><primaryie></xsl:text>
<xsl:text><phrase></xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="string(primary)"/>
</xsl:call-template>
<xsl:text></phrase></xsl:text>
<xsl:if test="$pages">,</xsl:if>
<xsl:text> </xsl:text>
<xsl:for-each select="$pages">
<xsl:apply-templates select="." mode="reference-markup">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</xsl:for-each>
<xsl:text></primaryie> </xsl:text>
<xsl:if test="$refs/secondary or $refs[not(secondary)]/*[self::see or self::seealso]">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &sep;, &sep;, see))[&scope;][1])]"
mode="index-see-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &sep;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]"
mode="index-secondary-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
<xsl:text></indexentry> </xsl:text>
</xsl:template>
<xsl:template match="indexterm" mode="index-secondary-markup">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
<xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
<xsl:variable name="pages" select="$refs[not(see) and not(seealso)]"/>
<xsl:text><secondaryie></xsl:text>
<xsl:text><phrase></xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="string(secondary)"/>
</xsl:call-template>
<xsl:text></phrase></xsl:text>
<xsl:if test="$pages">,</xsl:if>
<xsl:text> </xsl:text>
<xsl:for-each select="$pages">
<xsl:apply-templates select="." mode="reference-markup">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</xsl:for-each>
<xsl:text></secondaryie> </xsl:text>
<xsl:if test="$refs/tertiary or $refs[not(tertiary)]/*[self::see or self::seealso]">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, see))[&scope;][1])]"
mode="index-see-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]"
mode="index-tertiary-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(&tertiary;, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="index-tertiary-markup">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
<xsl:variable name="refs" select="key('tertiary', $key)[&scope;]"/>
<xsl:variable name="pages" select="$refs[not(see) and not(seealso)]"/>
<xsl:text><tertiaryie></xsl:text>
<xsl:text><phrase></xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="string(tertiary)"/>
</xsl:call-template>
<xsl:text></phrase></xsl:text>
<xsl:if test="$pages">,</xsl:if>
<xsl:text> </xsl:text>
<xsl:for-each select="$pages">
<xsl:apply-templates select="." mode="reference-markup">
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</xsl:for-each>
<xsl:text></tertiaryie> </xsl:text>
<xsl:variable name="see" select="$refs/see | $refs/seealso"/>
<xsl:if test="$see">
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see))[&scope;][1])]"
mode="index-see-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
<xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso))[&scope;][1])]"
mode="index-seealso-markup">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
<xsl:template match="indexterm" mode="reference-markup">
<xsl:param name="scope" select="."/>
<xsl:choose>
<xsl:when test="@zone and string(@zone)">
<xsl:call-template name="reference-markup">
<xsl:with-param name="zones" select="normalize-space(@zone)"/>
<xsl:with-param name="scope" select="$scope"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="@startref and @class='endofrange'">
<xsl:text><phrase role="pageno"></xsl:text>
<xsl:text><link linkend="</xsl:text>
<xsl:value-of select="@startref"/>
<xsl:text>"></xsl:text>
<fo:basic-link internal-destination="{@startref}">
<fo:page-number-citation ref-id="{@startref}"/>
<xsl:text>-</xsl:text>
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<xsl:text></link></xsl:text>
<xsl:text></phrase> </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text><phrase role="pageno"></xsl:text>
<xsl:if test="@id">
<xsl:text><link linkend="</xsl:text>
<xsl:value-of select="$id"/>
<xsl:text>"></xsl:text>
</xsl:if>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<xsl:if test="@id">
<xsl:text></link></xsl:text>
</xsl:if>
<xsl:text></phrase> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="reference-markup">
<xsl:param name="scope" select="."/>
<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('id', $zone)[&scope;]"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$target[1]"/>
</xsl:call-template>
</xsl:variable>
<xsl:text><phrase fole="pageno"></xsl:text>
<xsl:if test="$target[1]/@id">
<xsl:text><link linkend="</xsl:text>
<xsl:value-of select="$id"/>
<xsl:text>"></xsl:text>
</xsl:if>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<xsl:if test="$target[1]/@id">
<xsl:text></link></xsl:text>
</xsl:if>
<xsl:text></phrase> </xsl:text>
<xsl:call-template name="reference">
<xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
<xsl:with-param name="scope" select="$scope"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="zone" select="$zones"/>
<xsl:variable name="target" select="key('id', $zone)[&scope;]"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$target[1]"/>
</xsl:call-template>
</xsl:variable>
<xsl:text><phrase role="pageno"></xsl:text>
<xsl:if test="$target[1]/@id">
<xsl:text><link linkend="</xsl:text>
<xsl:value-of select="$id"/>
<xsl:text>"></xsl:text>
</xsl:if>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
<xsl:if test="$target[1]/@id">
<xsl:text></link></xsl:text>
</xsl:if>
<xsl:text></phrase> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="indexterm" mode="index-see-markup">
<xsl:param name="scope" select="."/>
<fo:block>
<xsl:text><seeie></xsl:text>
<xsl:text><phrase></xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="string(see)"/>
</xsl:call-template>
<xsl:text></phrase></xsl:text>
<xsl:text></seeie> </xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="indexterm" mode="index-seealso-markup">
<xsl:param name="scope" select="."/>
<fo:block>
<xsl:text><seealsoie></xsl:text>
<xsl:text><phrase></xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="string(seealso)"/>
</xsl:call-template>
<xsl:text></phrase></xsl:text>
<xsl:text></seealsoie> </xsl:text>
</fo:block>
</xsl:template>
<xsl:template name="escape-text">
<xsl:param name="text" select="''"/>
<xsl:variable name="ltpos" select="substring-before($text, '<')"/>
<xsl:variable name="amppos" select="substring-before($text, '&')"/>
<xsl:choose>
<xsl:when test="contains($text,'<') and contains($text, '&')
and string-length($ltpos) < string-length($amppos)">
<xsl:value-of select="$ltpos"/>
<xsl:text>&lt;</xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="substring-after($text, '<')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($text,'<') and contains($text, '&')
and string-length($amppos) < string-length($ltpos)">
<xsl:value-of select="$amppos"/>
<xsl:text>&amp;</xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="substring-after($text, '&')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($text, '<')">
<xsl:value-of select="$ltpos"/>
<xsl:text>&lt;</xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="substring-after($text, '<')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($text, '&')">
<xsl:value-of select="$amppos"/>
<xsl:text>&amp;</xsl:text>
<xsl:call-template name="escape-text">
<xsl:with-param name="text" select="substring-after($text, '&')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/verbatim.xsl
Index: verbatim.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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|synopsis">
<xsl:param name="suppress-numbers" select="'0'"/>
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="content">
<xsl:choose>
<xsl:when test="$suppress-numbers = '0'
and @linenumbering = 'numbered'
and $use.extensions != '0'
and $linenumbering.extension != '0'">
<xsl:call-template name="number.rtf.lines">
<xsl:with-param name="rtf">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$shade.verbatim != 0">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
linefeed-treatment='preserve'
xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="literallayout">
<xsl:param name="suppress-numbers" select="'0'"/>
<xsl:variable name="content">
<xsl:choose>
<xsl:when test="$suppress-numbers = '0'
and @linenumbering = 'numbered'
and $use.extensions != '0'
and $linenumbering.extension != '0'">
<xsl:call-template name="number.rtf.lines">
<xsl:with-param name="rtf">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="@class='monospaced'">
<xsl:choose>
<xsl:when test="$shade.verbatim != 0">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$shade.verbatim != 0">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
text-align='start'
linefeed-treatment="preserve"
xsl:use-attribute-sets="verbatim.properties shade.verbatim.style">
<xsl:copy-of select="$content"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
text-align='start'
linefeed-treatment="preserve"
xsl:use-attribute-sets="verbatim.properties">
<xsl:copy-of select="$content"/>
</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="content">
<xsl:choose>
<xsl:when test="$suppress-numbers = '0'
and @linenumbering = 'numbered'
and $use.extensions != '0'
and $linenumbering.extension != '0'">
<xsl:call-template name="number.rtf.lines">
<xsl:with-param name="rtf">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
white-space-treatment='preserve'
linefeed-treatment="preserve"
xsl:use-attribute-sets="verbatim.properties">
<xsl:copy-of select="$content"/>
</fo:block>
</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="linenumbering.startinglinenumber">
<xsl:choose>
<xsl:when test="@startinglinenumber">
<xsl:value-of select="@startinglinenumber"/>
</xsl:when>
<xsl:when test="@continuation='continues'">
<xsl:variable name="lastLine">
<xsl:choose>
<xsl:when test="self::programlisting">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings"
select="preceding::programlisting[@linenumbering='numbered']"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="self::screen">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings"
select="preceding::screen[@linenumbering='numbered']"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="self::literallayout">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings"
select="preceding::literallayout[@linenumbering='numbered']"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="self::address">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings"
select="preceding::address[@linenumbering='numbered']"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="self::synopsis">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings"
select="preceding::synopsis[@linenumbering='numbered']"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>Unexpected verbatim environment: </xsl:text>
<xsl:value-of select="local-name(.)"/>
</xsl:message>
<xsl:value-of select="0"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$lastLine + 1"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="function-available('sverb:numberLines')">
<xsl:copy-of select="sverb:numberLines($rtf)"/>
</xsl:when>
<xsl:when test="function-available('xverb:numberLines')">
<xsl:copy-of select="xverb:numberLines($rtf)"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
<xsl:text>No numberLines function available.</xsl:text>
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ======================================================================== -->
<xsl:template name="lastLineNumber">
<xsl:param name="listings"/>
<xsl:param name="number" select="0"/>
<xsl:variable name="lines">
<xsl:call-template name="countLines">
<xsl:with-param name="listing" select="string($listings[1])"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="not($listings)">
<xsl:value-of select="$number"/>
</xsl:when>
<xsl:when test="$listings[1]/@startinglinenumber">
<xsl:value-of select="$number + $listings[1]/@startinglinenumber + $lines - 1"/>
</xsl:when>
<xsl:when test="$listings[1]/@continuation='continues'">
<xsl:call-template name="lastLineNumber">
<xsl:with-param name="listings" select="listings[position() > 1]"/>
<xsl:with-param name="number" select="$number + $lines"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$lines"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="countLines">
<xsl:param name="listing"/>
<xsl:param name="count" select="1"/>
<xsl:choose>
<xsl:when test="contains($listing, ' ')">
<xsl:call-template name="countLines">
<xsl:with-param name="listing" select="substring-after($listing, ' ')"/>
<xsl:with-param name="count" select="$count + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$count"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/pdf2index
Index: pdf2index
===================================================================
#!/usr/bin/perl -- # -*- Perl -*-
# this needs some cleanup...
my $PSTOTEXT = "pstotext";
my $pdf = shift @ARGV;
my $index = "";
my $inindex = 0;
open (F, "$PSTOTEXT $pdf |");
while (<F>) {
if (/^<\/index/) {
$index .= $_;
$inindex = 0;
}
$inindex = 1 if /^<index/;
if ($inindex) {
$index .= $_ if /^\s*</;
}
}
my $cindex = "";
while ($index =~ /^(.*?)((<phrase role=\"pageno\">.*?<\/phrase>\s*)+)/s) {
$cindex .= $1;
$_ = $2;
$index = $'; # '
my @pages = m/<phrase role=\"pageno\">.*?<\/phrase>\s*/sg;
# Expand ranges
if ($#pages >= 0) {
my @mpages = ();
foreach my $page (@pages) {
my $pageno = &pageno($page);
if ($pageno =~ /^([0-9]+)[^0-9]([0-9]+)$/) { # funky -
for (my $count = $1; $count <= $2; $count++) {
push (@mpages, "<phrase role=\"$pageno\">$count</phrase>");
}
} else {
push (@mpages, $page);
}
}
@pages = sort rangesort @mpages;
}
# Remove duplicates...
if ($#pages > 0) {
my @mpages = ();
my $current = "";
foreach my $page (@pages) {
my $pageno = &pageno($page);
if ($pageno ne $current) {
push (@mpages, $page);
$current = $pageno;
}
}
@pages = @mpages;
}
# Collapse ranges...
if ($#pages > 1) {
my @cpages = ();
while (@pages) {
my $count = 0;
my $len = &rangelen($count, @pages);
if ($len <= 2) {
my $page = shift @pages;
push (@cpages, $page);
} else {
my $fpage = shift @pages;
my $lpage = "";
while ($len > 1) {
$lpage = shift @pages;
$len--;
}
my $fpno = &pageno($fpage);
my $lpno = &pageno($lpage);
$fpage =~ s/>$fpno</>${fpno}-$lpno</s;
push (@cpages, $fpage);
}
}
@pages = @cpages;
}
my $page = shift @pages;
$page =~ s/\s*$//s;
$cindex .= $page;
while (@pages) {
$page = shift @pages;
$page =~ s/\s*$//s;
$cindex .= ", $page";
}
}
$cindex .= $index;
print "$cindex\n";
sub pageno {
my $page = shift;
$page =~ s/^<phrase.*?>//;
$page =~ s/^<link.*?>//;
return $1 if $page =~ /^([^<>]+)/;
return "?";
}
sub rangesort {
my $apno = &pageno($a);
my $bpno = &pageno($b);
# Make sure roman pages come before arabic ones, otherwise sort them in order
return -1 if ($apno !~ /^\d+/ && $bpno =~ /^\d+/);
return 1 if ($apno =~ /^\d+/ && $bpno !~ /^\d+/);
return $apno cmp $bpno;
}
sub rangelen {
my $count = shift;
my @pages = @_;
my $len = 1;
my $inrange = 1;
my $current = &pageno($pages[$count]);
while ($count < $#pages && $inrange) {
$count++;
my $next = &pageno($pages[$count]);
if ($current + 1 eq $next) {
$current = $next;
$inrange = 1;
$len++;
} else {
$inrange = 0;
}
}
return $len;
}
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/profile-docbook.xsl
Index: profile-docbook.xsl
===================================================================
<?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by xsl2profile-->
<!--from the DocBook XSL stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:exslt="http://exslt.org/common" exslt:dummy="dummy" extension-element-prefixes="exslt" exclude-result-prefixes="exsl exslt" 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: profile-docbook.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="../common/pi.xsl"/>
<xsl:include href="autotoc.xsl"/>
<xsl:include href="autoidx.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="htmltbl.xsl"/>
<xsl:include href="sections.xsl"/>
<xsl:include href="inline.xsl"/>
<xsl:include href="footnote.xsl"/>
<xsl:include href="fo.xsl"/>
<xsl:include href="fo-rtf.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="task.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="docbookng.xsl"/>
<xsl:include href="fop.xsl"/>
<xsl:include href="passivetex.xsl"/>
<xsl:include href="xep.xsl"/>
<xsl:include href="axf.xsl"/>
<xsl:param name="stylesheet.result.type" select="'fo'"/>
<!-- ==================================================================== -->
<xsl:key name="id" match="*" use="@id"/>
<!-- ==================================================================== -->
<xsl:template match="*">
<xsl:message>
<xsl:value-of select="name(.)"/>
<xsl:text> encountered</xsl:text>
<xsl:if test="parent::*">
<xsl:text> in </xsl:text>
<xsl:value-of select="name(parent::*)"/>
</xsl:if>
<xsl:text>, but no template matches.</xsl:text>
</xsl:message>
<fo:block color="red">
<xsl:text><</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>></xsl:text>
<xsl:apply-templates/>
<xsl:text></</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>></xsl:text>
</fo:block>
</xsl:template>
<!-- Update this list if new root elements supported -->
<xsl:variable name="root.elements" select="' appendix article bibliography book chapter colophon dedication glossary index part preface refentry reference sect1 section set setindex '"/>
<xslo:include xmlns:xslo="http://www.w3.org/1999/XSL/Transform" href="../profiling/profile-mode.xsl"/><xsl:template match="/"><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-content"><xslo:apply-templates select="." mode="profile"/></xslo:variable><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-nodes" select="exslt:node-set($profiled-content)"/>
<xsl:choose>
<xsl:when test="function-available('exsl:node-set') and namespace-uri(*[1]) = 'http://docbook.org/docbook-ng'">
<!-- Hack! If someone hands us a DocBook NG document, toss the namespace -->
<!-- and continue. Someday we may reverse this logic and add the namespace -->
<!-- to documents that don't have one. But not before the whole stylesheet -->
<!-- has been converted to use namespaces. i.e., don't hold your breath -->
<xsl:variable name="nons">
<xsl:apply-templates mode="stripNS"/>
</xsl:variable>
<xsl:apply-templates select="exsl:node-set($nons)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="document.element" select="*[1]"/>
<xsl:if test="not(contains($root.elements, concat(' ', local-name($document.element), ' ')))">
<xsl:message terminate="yes">
<xsl:text>ERROR: Document root element for FO output </xsl:text>
<xsl:text>must be one of the following elements:</xsl:text>
<xsl:value-of select="$root.elements"/>
</xsl:message>
</xsl:if>
<xsl:call-template name="root.messages"/>
<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 xsl:use-attribute-sets="root.properties">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language">
<xsl:with-param name="target" select="/*[1]"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$xep.extensions != 0">
<xsl:call-template name="xep-document-information"/>
</xsl:if>
<xsl:if test="$axf.extensions != 0">
<xsl:call-template name="axf-document-information"/>
</xsl:if>
<xsl:call-template name="setup.pagemasters"/>
<xsl:choose>
<xsl:when test="$rootid != ''">
<xsl:choose>
<xsl:when test="count($profiled-nodes//*[@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="$profiled-nodes//*[@id=$rootid]" mode="fop.outline"/>
</xsl:if>
<xsl:if test="$xep.extensions != 0">
<xsl:variable name="bookmarks">
<xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="xep.outline"/>
</xsl:variable>
<xsl:if test="string($bookmarks) != ''">
<rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
<xsl:copy-of select="$bookmarks"/>
</rx:outline>
</xsl:if>
</xsl:if>
<xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$fop.extensions != 0">
<xsl:apply-templates mode="fop.outline" select="$profiled-nodes/node()"/>
</xsl:if>
<xsl:if test="$xep.extensions != 0">
<xsl:variable name="bookmarks">
<xsl:apply-templates mode="xep.outline" select="$profiled-nodes/node()"/>
</xsl:variable>
<xsl:if test="string($bookmarks) != ''">
<rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
<xsl:copy-of select="$bookmarks"/>
</rx:outline>
</xsl:if>
</xsl:if>
<xsl:apply-templates select="$profiled-nodes/node()"/>
</xsl:otherwise>
</xsl:choose>
</fo:root>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="root.messages">
<!-- redefine this any way you'd like to output messages -->
<!-- DO NOT OUTPUT ANYTHING FROM THIS TEMPLATE -->
<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:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="stripNS">
<xsl:choose>
<xsl:when test="namespace-uri(.) = 'http://docbook.org/docbook-ng'">
<xsl:element name="{local-name(.)}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="stripNS"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="stripNS"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="comment()|processing-instruction()|text()" mode="stripNS">
<xsl:copy/>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/fo-patch-for-fop.xsl
Index: fo-patch-for-fop.xsl
===================================================================
<?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:fox="http://xml.apache.org/fop/extensions"
version="1.0">
<!-- ********************************************************************
$Id: fo-patch-for-fop.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<xsl:output method="xml"/>
<xsl:template match="*">
<xsl:element name="{name(.)}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="fo:page-sequence
|fo:single-page-master-reference
|fo:repeatable-page-master-reference
|fo:conditional-page-master-reference">
<xsl:element name="{name(.)}">
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name(.) = 'master-reference'">
<xsl:attribute name="master-name">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<!-- a clever idea that doesn't quite work. fop 0.20.1 doesn't understand % -->
<!-- and fop 0.20.2 doesn't work for me at all... -->
<xsl:template match="fo:table-column">
<xsl:element name="{name(.)}">
<xsl:if test="not(@column-width)">
<xsl:attribute name="column-width">
<xsl:value-of select="100 div count(../fo:table-column)"/>
<xsl:text>%</xsl:text>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/param.xml
Index: param.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book>
<bookinfo>
<title>FO Parameter Reference</title>
<releaseinfo role="meta">
$Id: param.xml,v 1.1 2006/11/10 17:40:17 csuconic 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>
</bookinfo>
<preface><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 XSL FO 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 change the <literal moreinfo="none">html.stylesheet</literal>
to <filename moreinfo="none">reference.css</filename>, you might create a driver
stylesheet like this:</para>
<programlisting format="linespecific"><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<xsl:param name="html.stylesheet">reference.css</xsl:param>
</xsl:stylesheet></programlisting>
<para>Naturally, you have to change the
<sgmltag class="attribute">href</sgmltag> attribute on
<literal moreinfo="none"><xsl:import></literal> to point to
<filename moreinfo="none">docbook.xsl</filename> on your system. (Or
<filename moreinfo="none">chunk.xsl</filename>, if you're using chunking.)</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>
</preface>
<reference><title>Admonitions</title>
<refentry id="admon.graphics">
<refmeta>
<refentrytitle>admon.graphics</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>admon.graphics</refname>
<refpurpose>Use graphics in admonitions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admon.graphics.frag">
<xsl:param name="admon.graphics" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), admonitions are presented in an alternate style that uses
a graphic. Default graphics are provided in the distribution.
</para>
</refsect1>
</refentry>
<refentry id="admon.graphics.extension">
<refmeta>
<refentrytitle>admon.graphics.extension</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>admon.graphics.extension</refname>
<refpurpose>Extension for admonition graphics</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admon.graphics.extension.frag"><xsl:param name="admon.graphics.extension" select="'.png'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Sets the extension to use on admonition graphics.</para>
</refsect1>
</refentry>
<refentry id="admon.graphics.path">
<refmeta>
<refentrytitle>admon.graphics.path</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>admon.graphics.path</refname>
<refpurpose>Path to admonition graphics</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admon.graphics.path.frag"><xsl:param name="admon.graphics.path">images/</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Sets the path, probably relative to the directory where the HTML
files are created, to the admonition graphics.
</para>
</refsect1>
</refentry>
<refentry id="admon.textlabel">
<refmeta>
<refentrytitle>admon.textlabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>admon.textlabel</refname>
<refpurpose>Use text label in admonitions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admon.textlabel.frag">
<xsl:param name="admon.textlabel" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), admonitions are presented with a generated
text label such as Note or Warning in the appropriate language.
If zero, such labels are turned off, but any title child
of the admonition element are still output.
The default value is 1.
</para>
</refsect1>
</refentry>
<refentry id="admonition.title.properties">
<refnamediv>
<refname>admonition.title.properties</refname>
<refpurpose>To set the style for admonitions titles.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admonition.title.properties.frag">
<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>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>How do you want admonitions titles styled? </para>
<para>Set the font-size, weight etc to the style required.</para>
</refsect1>
</refentry>
<refentry id="admonition.properties">
<refnamediv>
<refname>admonition.properties</refname>
<refpurpose>To set the style for admonitions.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="admonition.properties.frag"><xsl:attribute-set name="admonition.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>How do you want admonitions styled? </para>
<para>Set the font-size, weight, etc. to the style required</para>
</refsect1>
</refentry>
</reference>
<reference><title>Callouts</title>
<refentry id="callout.defaultcolumn">
<refmeta>
<refentrytitle>callout.defaultcolumn</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.defaultcolumn</refname>
<refpurpose>Indicates what column callouts appear in by default</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.defaultcolumn.frag"><xsl:param name="callout.defaultcolumn" select="'60'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If a callout does not identify a column (for example, if it uses
the <literal moreinfo="none">linerange</literal> <sgmltag class="attribute">unit</sgmltag>),
it will appear in the default column.
</para>
</refsect1>
</refentry>
<refentry id="callout.graphics">
<refmeta>
<refentrytitle>callout.graphics</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.graphics</refname>
<refpurpose>Use graphics for callouts?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.graphics.frag">
<xsl:param name="callout.graphics" select="'1'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="callout.graphics.extension">
<refmeta>
<refentrytitle>callout.graphics.extension</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.graphics.extension</refname>
<refpurpose>Extension for callout graphics</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.graphics.extension.frag"><xsl:param name="callout.graphics.extension" select="'.png'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Sets the extension to use on callout graphics.</para>
</refsect1>
</refentry>
<refentry id="callout.graphics.number.limit">
<refmeta>
<refentrytitle>callout.graphics.number.limit</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.graphics.number.limit</refname>
<refpurpose>Number of the largest callout graphic</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.graphics.number.limit.frag"><xsl:param name="callout.graphics.number.limit" select="'10'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">callout.graphics</parameter>
is non-zero, graphics are used to represent
callout numbers. The value of
<parameter moreinfo="none">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>
</refsect1>
</refentry>
<refentry id="callout.graphics.path">
<refmeta>
<refentrytitle>callout.graphics.path</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.graphics.path</refname>
<refpurpose>Path to callout graphics</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.graphics.path.frag">
<xsl:param name="callout.graphics.path" select="'images/callouts/'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Sets the path, probably relative to the directory where the HTML
files are created, to the callout graphics.
</para>
</refsect1>
</refentry>
<refentry id="callout.unicode">
<refmeta>
<refentrytitle>callout.unicode</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.unicode</refname>
<refpurpose>Use Unicode characters rather than images for callouts.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.unicode.frag"><xsl:param name="callout.unicode" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The stylesheets can use either an image of the numbers one to ten, or the single Unicode character which represents the numeral, in white on a black background. Use this to select the Unicode character option.
</para>
</refsect1>
</refentry>
<refentry id="callout.unicode.font">
<refmeta>
<refentrytitle>callout.unicode.font</refentrytitle>
</refmeta>
<refnamediv>
<refname>callout.unicode.font</refname>
<refpurpose>Specify a font for Unicode glyphs</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.unicode.font.frag"><xsl:param name="callout.unicode.font" select="'ZapfDingbats'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The name of the font to specify around Unicode callout glyphs.
If set to the empty string, no font change will occur.
</para>
</refsect1>
</refentry>
<refentry id="callout.unicode.number.limit">
<refmeta>
<refentrytitle>callout.unicode.number.limit</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.unicode.number.limit</refname>
<refpurpose>Number of the largest callout graphic</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.unicode.number.limit.frag"><xsl:param name="callout.unicode.number.limit" select="'10'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">callout.unicode</parameter>
is non-zero, unicode characters are used to represent
callout numbers. The value of
<parameter moreinfo="none">callout.unicode.number.limit</parameter>
is
the largest number for which a unicode character exists. If the callout number
exceeds this limit, the default presentation "(nnn)" will always
be used.
</para>
</refsect1>
</refentry>
<refentry id="callout.unicode.start.character">
<refmeta>
<refentrytitle>callout.unicode.start.character</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.unicode.start.character</refname>
<refpurpose>First Unicode character to use, decimal value.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callout.unicode.start.character.frag"><xsl:param name="callout.unicode.start.character" select="10102"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">callout.graphics</parameter> is zero and <parameter moreinfo="none">callout.unicode</parameter>
is non-zero, unicode characters are used to represent
callout numbers. The value of
<parameter moreinfo="none">callout.unicode.start.character</parameter>
is the decimal unicode value used for callout number one. Currently,
only 10102 is supported in the stylesheets for this parameter.
</para>
</refsect1>
</refentry>
<refentry id="callouts.extension">
<refmeta>
<refentrytitle>callouts.extension</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callouts.extension</refname>
<refpurpose>Enable the callout extension</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="callouts.extension.frag"><xsl:param name="callouts.extension" select="'1'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The callouts extension processes <sgmltag>areaset</sgmltag>
elements in <sgmltag>ProgramListingCO</sgmltag> and other text-based
callout elements.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>ToC/LoT/Index Generation</title>
<refentry id="autotoc.label.separator">
<refmeta>
<refentrytitle>autotoc.label.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>autotoc.label.separator</refname>
<refpurpose>Separator between labels and titles in the ToC</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="autotoc.label.separator.frag"><xsl:param name="autotoc.label.separator" select="'. '"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>String to use to seperate labels and title in a table of contents.</para>
</refsect1>
</refentry>
<refentry id="process.empty.source.toc">
<refmeta>
<refentrytitle>process.empty.source.toc</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>process.empty.source.toc</refname>
<refpurpose>FIXME:</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="process.empty.source.toc.frag"><xsl:param name="process.empty.source.toc" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:
</para>
</refsect1>
</refentry>
<refentry id="process.source.toc">
<refmeta>
<refentrytitle>process.source.toc</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>process.source.toc</refname>
<refpurpose>FIXME:</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="process.source.toc.frag"><xsl:param name="process.source.toc" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:
</para>
</refsect1>
</refentry>
<refentry id="generate.toc">
<refmeta>
<refentrytitle>generate.toc</refentrytitle>
<refmiscinfo role="type">table</refmiscinfo>
</refmeta>
<refnamediv>
<refname>generate.toc</refname>
<refpurpose>Control generation of ToCs and LoTs</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="generate.toc.frag">
<xsl:param name="generate.toc">
/appendix toc,title
article/appendix nop
/article toc,title
book toc,title,figure,table,example,equation
/chapter toc,title
part toc,title
/preface toc,title
qandadiv toc
qandaset toc
reference toc,title
/sect1 toc
/sect2 toc
/sect3 toc
/sect4 toc
/sect5 toc
/section toc
set toc,title
</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter has a structured value. It is a table of space-delimited
path/value pairs. Each path identifies some element in the source document
using a restricted subset of XPath (only the implicit child axis, no wildcards,
no predicates). Paths can be either relative or absolute.</para>
<para>When processing a particular element, the stylesheets consult this table to
determine if a ToC (or LoT(s)) should be generated.</para>
<para>For example, consider the entry:</para>
<screen format="linespecific">book toc,figure</screen>
<para>This indicates that whenever a <sgmltag>book</sgmltag> is formatted, a
Table Of Contents and a List of Figures should be generated. Similarly,</para>
<screen format="linespecific">/chapter toc</screen>
<para>indicates that whenever a document <emphasis>that has a root
of</emphasis> <sgmltag>chapter</sgmltag> is formatted, a Table of
Contents should be generated. The entry <literal moreinfo="none">chapter</literal> would match
all chapters, but <literal moreinfo="none">/chapter</literal> matches only <sgmltag>chapter</sgmltag>
document elements.</para>
<para>Generally, the longest match wins. So, for example, if you want to distinguish
articles in books from articles in parts, you could use these two entries:</para>
<screen format="linespecific">book/article toc,figure
part/article toc</screen>
<para>Note that an article in a part can never match a <literal moreinfo="none">book/article</literal>,
so if you want nothing to be generated for articles in parts, you can simply leave
that rule out.</para>
<para>If you want to leave the rule in, to make it explicit that you're turning
something off, use the value <quote>nop</quote>. For example, the following
entry disables ToCs and LoTs for articles:</para>
<screen format="linespecific">article nop</screen>
<para>Do not simply leave the word <quote>article</quote> in the file
without a matching value. That'd be just begging the silly little
path/value parser to get confused.</para>
<para>Section ToCs are further controlled by the
<parameter moreinfo="none">generate.section.toc.level</parameter> parameter.
For a given section level to have a ToC, it must have both an entry in
<parameter moreinfo="none">generate.toc</parameter> and be within the range enabled by
<parameter moreinfo="none">generate.section.toc.level</parameter>.</para>
</refsect1>
</refentry>
<refentry id="generate.index">
<refmeta>
<refentrytitle>generate.index</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>generate.index</refname>
<refpurpose>Do you want an index?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="generate.index.frag"><xsl:param name="generate.index" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify if an index should be generated. </para>
</refsect1>
</refentry>
<refentry id="make.index.markup">
<refmeta>
<refentrytitle>make.index.markup</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>make.index.markup</refname>
<refpurpose>Generate XML index markup in the index?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="make.index.markup.frag">
<xsl:param name="make.index.markup" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter enables a very neat trick for getting properly
merged, collated back-of-the-book indexes. G. Ken Holman suggested
this trick at Extreme Markup Languages 2002 and I'm indebted to him
for it.</para>
<para>Jeni Tennison's excellent code in
<filename moreinfo="none">autoidx.xsl</filename> does a great job of merging and
sorting <sgmltag>indexterm</sgmltag>s in the document and building a
back-of-the-book index. However, there's one thing that it cannot
reasonably be expected to do: merge page numbers into ranges. (I would
not have thought that it could collate and suppress duplicate page
numbers, but in fact it appears to manage that task somehow.)</para>
<para>Ken's trick is to produce a document in which the index at the
back of the book is <quote>displayed</quote> in XML. Because the index
is generated by the FO processor, all of the page numbers have been resolved.
It's a bit hard to explain, but what it boils down to is that instead of having
an index at the back of the book that looks like this:</para>
<blockquote>
<formalpara><title>A</title>
<para>ap1, 1, 2, 3</para>
</formalpara>
</blockquote>
<para>you get one that looks like this:</para>
<blockquote>
<programlisting format="linespecific"><indexdiv>A</indexdiv>
<indexentry>
<primaryie>ap1</primaryie>,
<phrase role="pageno">1</phrase>,
<phrase role="pageno">2</phrase>,
<phrase role="pageno">3</phrase>
</indexentry></programlisting>
</blockquote>
<para>After building a PDF file with this sort of odd-looking index, you can
extract the text from the PDF file and the result is a proper index expressed in
XML.</para>
<para>Now you have data that's amenable to processing and a simple Perl script
(such as <filename moreinfo="none">fo/pdf2index</filename>) can
merge page ranges and generate a proper index.</para>
<para>Finally, reformat your original document using this literal index instead of
an automatically generated one and <quote>bingo</quote>!</para>
</refsect1>
</refentry>
<refentry id="index.preferred.page.properties">
<refnamediv>
<refname>index.preferred.page.properties</refname>
<refpurpose>Properties used to emphasize page number references for
significant index terms</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="index.preferred.page.properties.frag">
<xsl:attribute-set name="index.preferred.page.properties">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Properties used to emphasize page number references for
significant index terms (<sgmltag class="attribute">significance</sgmltag>=<sgmltag class="attvalue">preffered</sgmltag>). Currently works only with
XEP.</para>
</refsect1>
</refentry>
<refentry id="xep.index.item.properties">
<refnamediv>
<refname>xep.index.item.properties</refname>
<refpurpose>Properties associated with XEP index-items</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xep.index.item.properties.frag">
<xsl:attribute-set name="xep.index.item.properties">
<xsl:attribute name="merge-subsequent-page-numbers">true</xsl:attribute>
<xsl:attribute name="link-back">true</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Properties associated with XEP index-items. For more info see
the section "Indexes" in
<ulink url="http://xep.xattic.com/xep/doc/spec.html"/>.</para>
</refsect1>
</refentry>
<refentry id="toc.section.depth">
<refmeta>
<refentrytitle>toc.section.depth</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>toc.section.depth</refname>
<refpurpose>How deep should recursive <sgmltag>section</sgmltag>s appear
in the TOC?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="toc.section.depth.frag"><xsl:param name="toc.section.depth">2</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the depth to which recursive sections should appear in the
TOC.
</para>
</refsect1>
</refentry>
<refentry id="toc.indent.width">
<refmeta>
<refentrytitle>toc.indent.width</refentrytitle>
<refmiscinfo role="type">float</refmiscinfo>
</refmeta>
<refnamediv>
<refname>toc.indent.width</refname>
<refpurpose>Amount of indentation for TOC entries</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="toc.indent.width.frag">
<xsl:param name="toc.indent.width" select="24"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies, in points, the distance by which each level of the
TOC is indented from its parent.</para>
<para>This value is expressed in points, without
a unit (in other words, it is a bare number). Using a bare number allows the stylesheet
to perform calculations that would otherwise have to be performed by the FO processor
because not all processors support expressions.</para>
</refsect1>
</refentry>
<refentry id="toc.margin.properties">
<refnamediv>
<refname>toc.margin.properties</refname>
<refpurpose>Margin properties used on Tables of Contents</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="toc.margin.properties.frag">
<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>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This attribute set is used on Tables of Contents. These attributes are set
on the wrapper that surrounds the ToC block, not on each individual lines.</para>
</refsect1>
</refentry>
<refentry id="bridgehead.in.toc">
<refmeta>
<refentrytitle>bridgehead.in.toc</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>bridgehead.in.toc</refname>
<refpurpose>Should bridgehead elements appear in the TOC?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="bridgehead.in.toc.frag"><xsl:param name="bridgehead.in.toc" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, bridgeheads appear in the TOC. Note that this option
is not fully supported and may be removed in a future version of the
stylesheets.
</para>
</refsect1>
</refentry>
<refentry id="generate.section.toc.level">
<refmeta>
<refentrytitle>generate.section.toc.level</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>generate.section.toc.level</refname>
<refpurpose>Control depth of TOC generation in sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="generate.section.toc.level.frag">
<xsl:param name="generate.section.toc.level" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">generate.section.toc.level</parameter> parameter
controls the depth of section in which TOCs will be generated. Note
that this is related to, but not the same as
<parameter moreinfo="none">toc.section.depth</parameter>, which controls the depth to
which TOC entries will be generated in a given TOC.</para>
<para>If, for example, <parameter moreinfo="none">generate.section.toc.level</parameter>
is <literal moreinfo="none">3</literal>, TOCs will be generated in first, second, and third
level sections, but not in fourth level sections.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Processor Extensions</title>
<refentry id="arbortext.extensions">
<refmeta>
<refentrytitle>arbortext.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>arbortext.extensions</refname>
<refpurpose>Enable Arbortext extensions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="arbortext.extensions.frag"><xsl:param name="arbortext.extensions" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero,
<ulink url="http://www.arbortext.com/">Arbortext</ulink>
extensions will be used.
</para>
</refsect1>
</refentry>
<refentry id="axf.extensions">
<refmeta>
<refentrytitle>axf.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>axf.extensions</refname>
<refpurpose>Enable XSL Formatter extensions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="axf.extensions.frag">
<xsl:param name="axf.extensions" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero,
<ulink url="http://www.antennahouse.com/">XSL Formatter</ulink>
extensions will be used. XSL Formatter extensions consists of PDF bookmarks,
document information and better index processing.</para>
</refsect1>
</refentry>
<refentry id="fop.extensions">
<refmeta>
<refentrytitle>fop.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>fop.extensions</refname>
<refpurpose>Enable FOP extensions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="fop.extensions.frag"><xsl:param name="fop.extensions" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="passivetex.extensions">
<refmeta>
<refentrytitle>passivetex.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>passivetex.extensions</refname>
<refpurpose>Enable PassiveTeX extensions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="passivetex.extensions.frag"><xsl:param name="passivetex.extensions" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="tex.math.in.alt">
<refmeta>
<refentrytitle>tex.math.in.alt</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>tex.math.in.alt</refname>
<refpurpose>TeX notation used for equations</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="tex.math.in.alt.frag">
<xsl:param name="tex.math.in.alt" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If you want type math directly in TeX notation in equations,
this parameter specifies notation used. Currently are supported two
values -- <literal moreinfo="none">plain</literal> and <literal moreinfo="none">latex</literal>. Empty
value means that you are not using TeX math at all.</para>
<para>Preferred way for including TeX alternative of math is inside of
<sgmltag>textobject</sgmltag> element. Eg.:</para>
<programlisting format="linespecific"><inlineequation>
<inlinemediaobject>
<imageobject>
<imagedata fileref="eq1.gif"/>
</imageobject>
<textobject><phrase>E=mc squared</phrase></textobject>
<textobject role="tex"><phrase>E=mc^2</phrase></textobject>
</inlinemediaobject>
</inlineequation></programlisting>
<para>If you are using <sgmltag>graphic</sgmltag> element, you can
store TeX inside <sgmltag>alt</sgmltag> element:</para>
<programlisting format="linespecific"><inlineequation>
<alt role="tex">a^2+b^2=c^2</alt>
<graphic fileref="a2b2c2.gif"/>
</inlineequation></programlisting>
<para>If you want use this feature, you should process your FO with
PassiveTeX, which only supports TeX math notation. When calling
stylsheet, don't forget to specify also
passivetex.extensions=1.</para>
<para>If you want equations in HTML, just process generated file
<filename moreinfo="none">tex-math-equations.tex</filename> by TeX or LaTeX. Then run
dvi2bitmap program on result DVI file. You will get images for
equations in your document.</para>
</refsect1>
</refentry>
<refentry id="tex.math.delims">
<refmeta>
<refentrytitle>tex.math.delims</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>tex.math.delims</refname>
<refpurpose>Should be equations outputed for processing by TeX
automatically surrounded by math mode delimiters</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="tex.math.delims.frag">
<xsl:param name="tex.math.delims" select="'1'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>For compatibility with DSSSL based DBTeXMath from Allin Cottrell
you should set this parameter to 0.</para>
</refsect1>
</refentry>
<refentry id="xep.extensions">
<refmeta>
<refentrytitle>xep.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>xep.extensions</refname>
<refpurpose>Enable XEP extensions?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xep.extensions.frag"><xsl:param name="xep.extensions" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero,
<ulink url="http://www.renderx.com/">XEP</ulink>
extensions will be used. XEP extensions consists of PDF bookmarks,
document information and better index processing.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Stylesheet Extensions</title>
<refentry id="linenumbering.everyNth">
<refmeta>
<refentrytitle>linenumbering.everyNth</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>linenumbering.everyNth</refname>
<refpurpose>Indicate which lines should be numbered</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="linenumbering.everyNth.frag"><xsl:param name="linenumbering.everyNth" select="'5'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If line numbering is enabled, everyNth line will be numbered.
</para>
</refsect1>
</refentry>
<refentry id="linenumbering.extension">
<refmeta>
<refentrytitle>linenumbering.extension</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>linenumbering.extension</refname>
<refpurpose>Enable the line numbering extension</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="linenumbering.extension.frag"><xsl:param name="linenumbering.extension" select="'1'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="linenumbering.separator">
<refmeta>
<refentrytitle>linenumbering.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>linenumbering.separator</refname>
<refpurpose>Specify a separator between line numbers and lines</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="linenumbering.separator.frag"><xsl:param name="linenumbering.separator" select="' '"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The separator is inserted between line numbers and lines in
the verbatim environment.
</para>
</refsect1>
</refentry>
<refentry id="linenumbering.width">
<refmeta>
<refentrytitle>linenumbering.width</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>linenumbering.width</refname>
<refpurpose>Indicates the width of line numbers</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="linenumbering.width.frag"><xsl:param name="linenumbering.width" select="'3'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If line numbering is enabled, line numbers will appear right
justified in a field "width" characters wide.
</para>
</refsect1>
</refentry>
<refentry id="tablecolumns.extension">
<refmeta>
<refentrytitle>tablecolumns.extension</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>tablecolumns.extension</refname>
<refpurpose>Enable the table columns extension function</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="tablecolumns.extension.frag"><xsl:param name="tablecolumns.extension" select="'1'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="textinsert.extension">
<refmeta>
<refentrytitle>textinsert.extension</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>textinsert.extension</refname>
<refpurpose>Enable the textinsert extension element</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="textinsert.extension.frag"><xsl:param name="textinsert.extension" select="'1'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The textinsert extension element inserts the contents of a
a file into the result tree (as text).
</para>
</refsect1>
</refentry>
<refentry id="use.extensions">
<refmeta>
<refentrytitle>use.extensions</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.extensions</refname>
<refpurpose>Enable extensions</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="use.extensions.frag"><xsl:param name="use.extensions" select="'0'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, extensions may be used. Each extension is
further controlled by its own parameter. But if
<parameter moreinfo="none">use.extensions</parameter> is zero, no extensions will
be used.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Automatic labelling</title>
<refentry id="appendix.autolabel">
<refmeta>
<refentrytitle>appendix.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>appendix.autolabel</refname>
<refpurpose>Are Appendixes automatically enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="appendix.autolabel.frag"><xsl:param name="appendix.autolabel" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled appendixes will be
enumerated.
</para>
</refsect1>
</refentry>
<refentry id="chapter.autolabel">
<refmeta>
<refentrytitle>chapter.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>chapter.autolabel</refname>
<refpurpose>Are chapters automatically enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="chapter.autolabel.frag"><xsl:param name="chapter.autolabel" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled chapters will be enumerated.
</para>
</refsect1>
</refentry>
<refentry id="part.autolabel">
<refmeta>
<refentrytitle>part.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>part.autolabel</refname>
<refpurpose>Are parts and references enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="part.autolabel.frag"><xsl:param name="part.autolabel" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled parts and references will be enumerated.
</para>
</refsect1>
</refentry>
<refentry id="preface.autolabel">
<refmeta>
<refentrytitle>preface.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>preface.autolabel</refname>
<refpurpose>Are prefaces enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="preface.autolabel.frag"><xsl:param name="preface.autolabel" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled prefaces will be enumerated.
</para>
</refsect1>
</refentry>
<refentry id="section.autolabel">
<refmeta>
<refentrytitle>section.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.autolabel</refname>
<refpurpose>Are sections enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.autolabel.frag"><xsl:param name="section.autolabel" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled sections will be enumerated.
</para>
</refsect1>
</refentry>
<refentry id="section.label.includes.component.label">
<refmeta>
<refentrytitle>section.label.includes.component.label</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.label.includes.component.label</refname>
<refpurpose>Do section labels include the component label?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.label.includes.component.label.frag"><xsl:param name="section.label.includes.component.label" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), section labels are prefixed with the label of the
component that contains them.
</para>
</refsect1>
</refentry>
<refentry id="label.from.part">
<refmeta>
<refentrytitle>label.from.part</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>label.from.part</refname>
<refpurpose>Renumber chapters in each part?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="label.from.part.frag"><xsl:param name="label.from.part" select="'0'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">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>
</refsect1>
</refentry>
</reference>
<reference><title>XSLT Processing</title>
<refentry id="rootid">
<refmeta>
<refentrytitle>rootid</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>rootid</refname>
<refpurpose>Specify the root element to format</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="rootid.frag"><xsl:param name="rootid" select="''"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">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>
</refsect1>
</refentry>
</reference>
<reference><title>Meta/*Info</title>
<refentry id="make.single.year.ranges">
<refmeta>
<refentrytitle>make.single.year.ranges</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>make.single.year.ranges</refname>
<refpurpose>Print single-year ranges (e.g., 1998-1999)</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="make.single.year.ranges.frag"><xsl:param name="make.single.year.ranges" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, year ranges that span a single year will be printed
in range notation (1998-1999) instead of discrete notation
(1998, 1999).</para>
</refsect1>
</refentry>
<refentry id="make.year.ranges">
<refmeta>
<refentrytitle>make.year.ranges</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>make.year.ranges</refname>
<refpurpose>Collate copyright years into ranges?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="make.year.ranges.frag"><xsl:param name="make.year.ranges" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, copyright years will be collated into ranges.</para>
</refsect1>
</refentry>
<refentry id="author.othername.in.middle">
<refmeta>
<refentrytitle>author.othername.in.middle</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>author.othername.in.middle</refname>
<refpurpose>Is <sgmltag>othername</sgmltag> in <sgmltag>author</sgmltag> a
middle name?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="author.othername.in.middle.frag"><xsl:param name="author.othername.in.middle" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), the <sgmltag>othername</sgmltag> of an <sgmltag>author</sgmltag>
appears between the <sgmltag>firstname</sgmltag> and
<sgmltag>surname</sgmltag>. Otherwise, <sgmltag>othername</sgmltag>
is suppressed.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Reference Pages</title>
<refentry id="funcsynopsis.decoration">
<refmeta>
<refentrytitle>funcsynopsis.decoration</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>funcsynopsis.decoration</refname>
<refpurpose>Decorate elements of a FuncSynopsis?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="funcsynopsis.decoration.frag"><xsl:param name="funcsynopsis.decoration" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), elements of the FuncSynopsis will be decorated (e.g. bold or
italic). The decoration is controlled by functions that can be redefined
in a customization layer.
</para>
</refsect1>
</refentry>
<refentry id="funcsynopsis.style">
<refmeta>
<refentrytitle>funcsynopsis.style</refentrytitle>
<refmiscinfo role="type">list</refmiscinfo>
<refmiscinfo role="value">ansi</refmiscinfo>
<refmiscinfo role="value">kr</refmiscinfo>
</refmeta>
<refnamediv>
<refname>funcsynopsis.style</refname>
<refpurpose>What style of 'FuncSynopsis' should be generated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="funcsynopsis.style.frag"><xsl:param name="funcsynopsis.style">kr</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <varname>funcsynopsis.style</varname> is <literal moreinfo="none">ansi</literal>,
ANSI-style function synopses are generated for a
<sgmltag>funcsynopsis</sgmltag>, otherwise K&R-style
function synopses are generated.
</para>
</refsect1>
</refentry>
<refentry id="function.parens">
<refmeta>
<refentrytitle>function.parens</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>function.parens</refname>
<refpurpose>Generate parens after a function?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="function.parens.frag"><xsl:param name="function.parens">0</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If not 0, the formatting of
a <sgmltag class="starttag">function</sgmltag> element will include
generated parenthesis.
</para>
</refsect1>
</refentry>
<refentry id="refentry.generate.name">
<refmeta>
<refentrytitle>refentry.generate.name</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>refentry.generate.name</refname>
<refpurpose>Output NAME header before 'RefName'(s)?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="refentry.generate.name.frag"><xsl:param name="refentry.generate.name" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), a "NAME" section title is output before the list
of 'RefName's. This parameter and
<parameter moreinfo="none">refentry.generate.title</parameter> are mutually
exclusive. This means that if you change this parameter to zero, you
should set <parameter moreinfo="none">refentry.generate.title</parameter> to 1 unless
you want get quite strange output.
</para>
</refsect1>
</refentry>
<refentry id="refentry.generate.title">
<refmeta>
<refentrytitle>refentry.generate.title</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>refentry.generate.title</refname>
<refpurpose>Output title before 'RefName'(s)?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="refentry.generate.title.frag">
<xsl:param name="refentry.generate.title" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), the reference page title or first name is
output before the list of 'RefName's. This parameter and
<parameter moreinfo="none">refentry.generate.name</parameter> are mutually exclusive.
This means that if you change this parameter to 1, you
should set <parameter moreinfo="none">refentry.generate.name</parameter> to 0 unless
you want get quite strange output.</para>
</refsect1>
</refentry>
<refentry id="refentry.pagebreak">
<refmeta>
<refentrytitle>refentry.pagebreak</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>refentry.pagebreak</refname>
<refpurpose>Start each refentry on a new page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="refentry.pagebreak.frag"><xsl:param name="refentry.pagebreak" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero (the default), each <sgmltag>refentry</sgmltag>
element will start on a new page. If zero, a page
break will not be generated.
</para>
</refsect1>
</refentry>
<refentry id="refentry.title.properties">
<refmeta>
<refentrytitle>refentry.title.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>refentry.title.properties</refname>
<refpurpose>Title properties for a refentry title</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="refentry.title.properties.frag">
<xsl:attribute-set name="refentry.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="font-size">18pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="space-after">1em</xsl:attribute>
<xsl:attribute name="hyphenate">false</xsl:attribute>
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
<xsl:attribute name="space-after.optimum">0.5em</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.6em</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Formatting properties applied to refentry titles,
including refnamediv, refsect1 through 3, and refsection.
The font size is supplied by the appropriate
<parameter moreinfo="none">section.level<replaceable>X</replaceable>.title.properties</parameter>
attribute-set,
computed from its location in the section hierarchy.
</para>
</refsect1>
</refentry>
<refentry id="refentry.xref.manvolnum">
<refmeta>
<refentrytitle>refentry.xref.manvolnum</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>refentry.xref.manvolnum</refname>
<refpurpose>Output <sgmltag>manvolnum</sgmltag> as part of
<sgmltag>refentry</sgmltag> cross-reference?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="refentry.xref.manvolnum.frag"><xsl:param name="refentry.xref.manvolnum" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>if true (non-zero), the <sgmltag>manvolnum</sgmltag> is used when cross-referencing
<sgmltag>refentry</sgmltag>s, either with <sgmltag>xref</sgmltag>
or <sgmltag>citerefentry</sgmltag>.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Tables</title>
<refentry id="default.table.width">
<refmeta>
<refentrytitle>default.table.width</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>default.table.width</refname>
<refpurpose>The default width of tables</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="default.table.width.frag"><xsl:param name="default.table.width" select="''"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="nominal.table.width">
<refmeta>
<refentrytitle>nominal.table.width</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>nominal.table.width</refname>
<refpurpose>The (absolute) nominal width of tables</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="nominal.table.width.frag"><xsl:param name="nominal.table.width" select="'6in'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>In order to convert CALS column widths into HTML 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 percentag).</para>
</refsect1>
</refentry>
<refentry id="table.cell.padding">
<refmeta>
<refentrytitle>table.cell.padding</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.cell.padding</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.cell.padding.frag">
<xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">2pt</xsl:attribute>
<xsl:attribute name="padding-right">2pt</xsl:attribute>
<xsl:attribute name="padding-top">2pt</xsl:attribute>
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.frame.border.thickness">
<refmeta>
<refentrytitle>table.frame.border.thickness</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.frame.border.thickness</refname>
<refpurpose>Specifies the thickness of the frame border</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.frame.border.thickness.frag">
<xsl:param name="table.frame.border.thickness" select="'0.5pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the thickness of the border on the table's frame.</para>
</refsect1>
</refentry>
<refentry id="table.frame.border.style">
<refmeta>
<refentrytitle>table.frame.border.style</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.frame.border.style</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.frame.border.style.frag">
<xsl:param name="table.frame.border.style" select="'solid'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.frame.border.color">
<refmeta>
<refentrytitle>table.frame.border.color</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.frame.border.color</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.frame.border.color.frag">
<xsl:param name="table.frame.border.color" select="'black'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.cell.border.thickness">
<refmeta>
<refentrytitle>table.cell.border.thickness</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.cell.border.thickness</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.cell.border.thickness.frag">
<xsl:param name="table.cell.border.thickness" select="'0.5pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.cell.border.style">
<refmeta>
<refentrytitle>table.cell.border.style</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.cell.border.style</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.cell.border.style.frag">
<xsl:param name="table.cell.border.style" select="'solid'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.cell.border.color">
<refmeta>
<refentrytitle>table.cell.border.color</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.cell.border.color</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.cell.border.color.frag">
<xsl:param name="table.cell.border.color" select="'black'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="table.table.properties">
<refnamediv>
<refname>table.table.properties</refname>
<refpurpose>Properties associated with a table</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.table.properties.frag">
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="border-before-width.conditionality">retain</xsl:attribute>
<xsl:attribute name="border-collapse">collapse</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for tables. This parameter should really
have been called <literal moreinfo="none">table.properties</literal>, but that parameter
name was inadvertantly established for the block-level properties
of the table as a whole.
</para>
<para>See also <parameter moreinfo="none">table.properties</parameter>.</para>
</refsect1>
</refentry>
</reference>
<reference><title>Linking</title>
<refentry id="target.database.document">
<refmeta>
<refentrytitle>target.database.document</refentrytitle>
<refmiscinfo role="type">uri</refmiscinfo>
</refmeta>
<refnamediv>
<refname>target.database.document</refname>
<refpurpose>Name of master database file for resolving
olinks</refpurpose>
</refnamediv>
<refsynopsisdiv> <programlisting id="target.database.document.frag">
<xsl:param name="target.database.document" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
To resolve olinks between documents, the stylesheets use
a master database document that identifies the target datafiles for all the documents within the scope
of the olinks. This parameter value is the URI of
the master document to be read during processing to resolve olinks.
The default value is <filename moreinfo="none">olinkdb.xml</filename>.</para>
<para>The data structure of the file is defined in the <filename moreinfo="none">targetdatabase.dtd</filename> DTD. The database file provides the high level elements to record the identifiers, locations, and relationships of documents. The cross reference data for individual documents is generally pulled into the database using system entity references or XIncludes. See also <parameter moreinfo="none">targets.filename</parameter>.
</para>
</refsect1>
</refentry>
<refentry id="use.local.olink.style">
<refmeta>
<refentrytitle>use.local.olink.style</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.local.olink.style</refname>
<refpurpose>Process olinks using xref style of current
document</refpurpose>
</refnamediv>
<refsynopsisdiv> <programlisting id="use.local.olink.style.frag">
<xsl:param name="use.local.olink.style" select="0"></xsl:param> </programlisting>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>When cross reference data is collected for use by olinks, the data for each potential target includes one field containing a completely assembled cross reference string, as if it were an xref generated in that document. Other fields record the separate title, number, and element name of each target. When an olink is formed to a target from another document, the olink resolves to that preassembled string by default. If the <parameter moreinfo="none">use.local.olink.style</parameter> parameter is set to non-zero, then instead the cross
reference string is formed again from the target title, number, and
element name, using the stylesheet processing the targeting document.
Then olinks will match the xref style in the targeting document
rather than in the target document. If both documents are processed
with the same stylesheet, then the results will be the same.</para>
</refsect1>
</refentry>
<refentry id="current.docid">
<refmeta>
<refentrytitle>current.docid</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>current.docid</refname>
<refpurpose>targetdoc identifier for the document being
processed</refpurpose>
</refnamediv>
<refsynopsisdiv> <programlisting id="current.docid.frag">
<xsl:param name="current.docid" select="''"></xsl:param> </programlisting>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>When olinks between documents are resolved for HTML output, the stylesheet can compute the relative path between the current document and the target document. The stylesheet needs to know the <literal moreinfo="none">targetdoc</literal> identifiers for both documents, as they appear in the <parameter moreinfo="none">target.database.document</parameter> database file. This parameter passes to the stylesheet
the targetdoc identifier of the current document, since that
identifier does not appear in the document itself. </para>
<para>This parameter can also be used for print output. If an olink's <literal moreinfo="none">targetdoc</literal> id differs from the <literal moreinfo="none">current.docid</literal>, then the stylesheet can append the target document's title to the generated olink text. That identifies to the reader that the link is to a different document, not the current document. See also <parameter moreinfo="none">olink.doctitle</parameter> to enable that feature.</para>
</refsect1>
</refentry>
<refentry id="olink.doctitle">
<refmeta>
<refentrytitle>olink.doctitle</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>olink.doctitle</refname>
<refpurpose>show the document title for external olinks?</refpurpose>
</refnamediv>
<refsynopsisdiv> <programlisting id="olink.doctitle.frag">
<xsl:param name="olink.doctitle" select="0"></xsl:param> </programlisting>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>When olinks between documents are resolved for print output, the generated text may not make it clear that the reference is to another document. It is possible for the stylesheets to append the other document's title to external olinks. For this to happen, two parameters must be set. The <parameter moreinfo="none">olink.doctitle</parameter> parameter should be set to nonzero to enable this
feature. And you should set the <parameter moreinfo="none">current.docid</parameter> parameter to the document id for the document currently
being processed for output. If an olink's <literal moreinfo="none">targetdoc</literal> id differs from the <literal moreinfo="none">current.docid</literal>, then the stylesheet can append the target document's
title to the generated olink text. </para>
</refsect1>
</refentry>
</reference>
<reference><title>QAndASet</title>
<refentry id="qandadiv.autolabel">
<refmeta>
<refentrytitle>qandadiv.autolabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qandadiv.autolabel</refname>
<refpurpose>Are divisions in QAndASets enumerated?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qandadiv.autolabel.frag"><xsl:param name="qandadiv.autolabel" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), unlabeled qandadivs will be enumerated.
</para>
</refsect1>
</refentry>
<refentry id="qanda.inherit.numeration">
<refmeta>
<refentrytitle>qanda.inherit.numeration</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.inherit.numeration</refname>
<refpurpose>Does enumeration of QandASet components inherit the numeration of parent elements?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.inherit.numeration.frag"><xsl:param name="qanda.inherit.numeration" select="1"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), numbered QandADiv elements and Questions and Answers inherit
the numeration of the ancestors of the QandASet.
</para>
</refsect1>
</refentry>
<refentry id="qanda.defaultlabel">
<refmeta>
<refentrytitle>qanda.defaultlabel</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.defaultlabel</refname>
<refpurpose>Sets the default for defaultlabel on QandASet.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.defaultlabel.frag"><xsl:param name="qanda.defaultlabel">number</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If no defaultlabel attribute is specified on a QandASet, this
value is used. It must be one of the legal values for the defaultlabel
attribute.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Bibliography</title>
<refentry id="biblioentry.item.separator">
<refmeta>
<refentrytitle>biblioentry.item.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>biblioentry.item.separator</refname>
<refpurpose>Text to separate bibliography entries</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="biblioentry.item.separator.frag"><xsl:param name="biblioentry.item.separator">. </xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Text to separate bibliography entries
</para>
</refsect1>
</refentry>
<refentry id="bibliography.collection">
<refmeta>
<refentrytitle>bibliography.collection</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>bibliography.collection</refname>
<refpurpose>Name of the bibliography collection file</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="bibliography.collection.frag"><xsl:param name="bibliography.collection" select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Maintaining bibliography entries across a set of documents is tedious, time
consuming, and error prone. It makes much more sense, usually, to store all of
the bibliography entries in a single place and simply <quote>extract</quote>
the ones you need in each document.</para>
<para>That's the purpose of the
<parameter moreinfo="none">bibliography.collection</parameter> parameter. To setup a global
bibliography <quote>database</quote>, follow these steps:</para>
<para>First, create a stand-alone bibliography document that contains all of
the documents that you wish to reference. Make sure that each bibliography
entry (whether you use <sgmltag>biblioentry</sgmltag> or <sgmltag>bibliomixed</sgmltag>)
has an ID.</para>
<para>My global bibliography, <filename moreinfo="none">~/bibliography.xml</filename> begins
like this:</para>
<informalexample>
<programlisting format="linespecific"><!DOCTYPE bibliography
PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<bibliography><title>References</title>
<bibliomixed id="xml-rec"><abbrev>XML 1.0</abbrev>Tim Bray,
Jean Paoli, C. M. Sperberg-McQueen, and Eve Maler, editors.
<citetitle><ulink url="http://www.w3.org/TR/REC-xml">Extensible Markup
Language (XML) 1.0 Second Edition</ulink></citetitle>.
World Wide Web Consortium, 2000.
</bibliomixed>
<bibliomixed id="xml-names"><abbrev>Namespaces</abbrev>Tim Bray,
Dave Hollander,
and Andrew Layman, editors.
<citetitle><ulink url="http://www.w3.org/TR/REC-xml-names/">Namespaces in
XML</ulink></citetitle>.
World Wide Web Consortium, 1999.
</bibliomixed>
<!-- ... -->
</bibliography>
</programlisting>
</informalexample>
<para>When you create a bibliography in your document, simply
provide <emphasis>empty</emphasis> <sgmltag>bibliomixed</sgmltag>
entries for each document that you wish to cite. Make sure that these
elements have the same ID as the corresponding <quote>real</quote>
entry in your global bibliography.</para>
<para>For example:</para>
<informalexample>
<programlisting format="linespecific"><bibliography><title>Bibliography</title>
<bibliomixed id="xml-rec"/>
<bibliomixed id="xml-names"/>
<bibliomixed id="DKnuth86">Donald E. Knuth. <citetitle>Computers and
Typesetting: Volume B, TeX: The Program</citetitle>. Addison-Wesley,
1986. ISBN 0-201-13437-3.
</bibliomixed>
<bibliomixed id="relaxng"/>
</bibliography></programlisting>
</informalexample>
<para>Note that it's perfectly acceptable to mix entries from your
global bibliography with <quote>normal</quote> entries. You can use
<sgmltag>xref</sgmltag> or other elements to cross-reference your
bibliography entries in exactly the same way you do now.</para>
<para>Finally, when you are ready to format your document, simply set the
<parameter moreinfo="none">bibliography.collection</parameter> parameter (in either a
customization layer or directly through your processor's interface) to
point to your global bibliography.</para>
<para>The stylesheets will format the bibliography in your document as if
all of the entries referenced appeared there literally.</para>
</refsect1>
</refentry>
<refentry id="bibliography.numbered">
<refmeta>
<refentrytitle>bibliography.numbered</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>bibliography.numbered</refname>
<refpurpose>Should bibliography entries be numbered?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="bibliography.numbered.frag">
<xsl:param name="bibliography.numbered" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero bibliography entries will be numbered</para>
</refsect1>
</refentry>
</reference>
<reference><title>Glossary</title>
<refentry id="glossterm.auto.link">
<refmeta>
<refentrytitle>glossterm.auto.link</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossterm.auto.link</refname>
<refpurpose>Generate links from glossterm to glossentry automaticaly?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossterm.auto.link.frag">
<xsl:param name="glossterm.auto.link" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true, a link will be automatically created from glossterm
to glossentry for that glossary term. This is usefull when your
glossterm names are consistent and you don't want to add links
manually.</para>
<para>If there is <sgmltag class="attribute">linkend</sgmltag> on
<sgmltag>glossterm</sgmltag> then is used instead of autogeneration of
link.</para>
</refsect1>
</refentry>
<refentry id="firstterm.only.link">
<refmeta>
<refentrytitle>firstterm.only.link</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>firstterm.only.link</refname>
<refpurpose>Does automatic glossterm linking only apply to firstterms?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="firstterm.only.link.frag">
<xsl:param name="firstterm.only.link" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true, only <sgmltag>firstterm</sgmltag>s will be automatically linked
to the glossary. If glossary linking is not enabled, this parameter
has no effect.</para>
</refsect1>
</refentry>
<refentry id="glossary.collection">
<refmeta>
<refentrytitle>glossary.collection</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossary.collection</refname>
<refpurpose>Name of the glossary collection file</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossary.collection.frag">
<xsl:param name="glossary.collection" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Glossaries maintained independently across a set of documents
are likely to become inconsistent unless considerable effort is
expended to keep them in sync. It makes much more sense, usually, to
store all of the glossary entries in a single place and simply
<quote>extract</quote> the ones you need in each document.</para>
<para>That's the purpose of the
<parameter moreinfo="none">glossary.collection</parameter> parameter. To setup a global
glossary <quote>database</quote>, follow these steps:</para>
<refsect2><title>Setting Up the Glossary Database</title>
<para>First, create a stand-alone glossary document that contains all of
the entries that you wish to reference. Make sure that each glossary
entry has an ID.</para>
<para>Here's an example glossary:</para>
<informalexample>
<programlisting format="linespecific">
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossary
PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<glossary>
<glossaryinfo>
<editor><firstname>Eric</firstname><surname>Raymond</surname></editor>
<title>Jargon File 4.2.3 (abridged)</title>
<releaseinfo>Just some test data</releaseinfo>
</glossaryinfo>
<glossdiv><title>0</title>
<glossentry>
<glossterm>0</glossterm>
<glossdef>
<para>Numeric zero, as opposed to the letter `O' (the 15th letter of
the English alphabet). In their unmodified forms they look a lot
alike, and various kluges invented to make them visually distinct have
compounded the confusion. If your zero is center-dotted and letter-O
is not, or if letter-O looks almost rectangular but zero looks more
like an American football stood on end (or the reverse), you're
probably looking at a modern character display (though the dotted zero
seems to have originated as an option on IBM 3270 controllers). If
your zero is slashed but letter-O is not, you're probably looking at
an old-style ASCII graphic set descended from the default typewheel on
the venerable ASR-33 Teletype (Scandinavians, for whom /O is a letter,
curse this arrangement). (Interestingly, the slashed zero long
predates computers; Florian Cajori's monumental "A History of
Mathematical Notations" notes that it was used in the twelfth and
thirteenth centuries.) If letter-O has a slash across it and the zero
does not, your display is tuned for a very old convention used at IBM
and a few other early mainframe makers (Scandinavians curse <emphasis>this</emphasis>
arrangement even more, because it means two of their letters collide).
Some Burroughs/Unisys equipment displays a zero with a <emphasis>reversed</emphasis>
slash. Old CDC computers rendered letter O as an unbroken oval and 0
as an oval broken at upper right and lower left. And yet another
convention common on early line printers left zero unornamented but
added a tail or hook to the letter-O so that it resembled an inverted
Q or cursive capital letter-O (this was endorsed by a draft ANSI
standard for how to draw ASCII characters, but the final standard
changed the distinguisher to a tick-mark in the upper-left corner).
Are we sufficiently confused yet?</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>1TBS</glossterm>
<glossdef>
<para role="accidence">
<phrase role="pronounce"></phrase>
<phrase role="partsofspeach">n</phrase>
</para>
<para>The "One True Brace Style"</para>
<glossseealso>indent style</glossseealso>
</glossdef>
</glossentry>
<!-- ... -->
</glossdiv>
<!-- ... -->
</glossary></programlisting>
</informalexample>
</refsect2>
<refsect2><title>Marking Up Glossary Terms</title>
<para>That takes care of the glossary database, now you have to get the entries
into your document. Unlike bibliography entries, which can be empty, creating
<quote>placeholder</quote> glossary entries would be very tedious. So instead,
support for <parameter moreinfo="none">glossary.collection</parameter> relies on implicit linking.</para>
<para>In your source document, simply use <sgmltag>firstterm</sgmltag> and
<sgmltag>glossterm</sgmltag> to identify the terms you wish to have included
in the glossary. The stylesheets assume that you will either set the
<sgmltag class="attribute">baseform</sgmltag> attribute correctly, or that the
content of the element exactly matches a term in your glossary.</para>
<para>If you're using a <parameter moreinfo="none">glossary.collection</parameter>, don't
make explicit links on the terms in your document.</para>
<para>So, in your document, you might write things like this:</para>
<informalexample>
<programlisting format="linespecific"><para>This is dummy text, without any real meaning.
The point is simply to reference glossary terms like <glossterm>0</glossterm>
and the <firstterm baseform="1TBS">One True Brace Style (1TBS)</firstterm>.
The <glossterm>1TBS</glossterm>, as you can probably imagine, is a nearly
religious issue.</para></programlisting>
</informalexample>
<para>If you set the <parameter moreinfo="none">firstterm.only.link</parameter> parameter,
only the terms marked with <sgmltag>firstterm</sgmltag> will be links.
Otherwise, all the terms will be linked.</para>
</refsect2>
<refsect2><title>Marking Up the Glossary</title>
<para>The glossary itself has to be identified for the stylesheets. For lack
of a better choice, the <sgmltag class="attribute">role</sgmltag> is used.
To identify the glossary as the target for automatic processing, set
the role to <quote><literal moreinfo="none">auto</literal></quote>. The title of this
glossary (and any other information from the <sgmltag>glossaryinfo</sgmltag>
that's rendered by your stylesheet) will be displayed, but the entries will
come from the database.
</para>
<para>Unfortunately, the glossary can't be empty, so you must put in
at least one <sgmltag>glossentry</sgmltag>. The content of this entry
is irrelevant, it will not be rendered:</para>
<informalexample>
<programlisting format="linespecific"><glossary role="auto">
<glossentry>
<glossterm>Irrelevant</glossterm>
<glossdef>
<para>If you can see this, the document was processed incorrectly. Use
the <parameter>glossary.collection</parameter> parameter.</para>
</glossdef>
</glossentry>
</glossary></programlisting>
</informalexample>
<para>What about glossary divisions? If your glossary database has glossary
divisions <emphasis>and</emphasis> your automatic glossary contains at least
one <sgmltag>glossdiv</sgmltag>, the automic glossary will have divisions.
If the <sgmltag>glossdiv</sgmltag> is missing from either location, no divisions
will be rendered.</para>
<para>Glossary entries (and divisions, if appropriate) in the glossary will
occur in precisely the order they occur in your database.</para>
</refsect2>
<refsect2><title>Formatting the Document</title>
<para>Finally, when you are ready to format your document, simply set the
<parameter moreinfo="none">glossary.collection</parameter> parameter (in either a
customization layer or directly through your processor's interface) to
point to your global glossary.</para>
<para>The stylesheets will format the glossary in your document as if
all of the entries implicilty referenced appeared there literally.</para>
</refsect2>
<refsect2><title>Limitations</title>
<para>Glossary cross-references <emphasis>within the glossary</emphasis> are
not supported. For example, this <emphasis>will not</emphasis> work:</para>
<informalexample>
<programlisting format="linespecific"><glossentry>
<glossterm>gloss-1</glossterm>
<glossdef><para>A description that references <glossterm>gloss-2</glossterm>.</para>
<glossseealso>gloss-2</glossseealso>
</glossdef>
</glossentry></programlisting>
</informalexample>
<para>If you put glossary cross-references in your glossary that way,
you'll get the cryptic error: <computeroutput moreinfo="none">Warning:
glossary.collection specified, but there are 0 automatic
glossaries</computeroutput>.</para>
<para>Instead, you must do two things:</para>
<orderedlist inheritnum="ignore" continuation="restarts">
<listitem>
<para>Markup your glossary using <sgmltag>glossseealso</sgmltag>:</para>
<informalexample>
<programlisting format="linespecific"><glossentry>
<glossterm>gloss-1</glossterm>
<glossdef><para>A description that references <glossterm>gloss-2</glossterm>.</para>
<glossseealso>gloss-2</glossseealso>
</glossdef>
</glossentry></programlisting>
</informalexample>
</listitem>
<listitem>
<para>Make sure there is at least one <sgmltag>glossterm</sgmltag> reference to
<glossterm>gloss-2</glossterm> <emphasis>in your document</emphasis>. The
easiest way to do that is probably within a <sgmltag>remark</sgmltag> in your
automatic glossary:</para>
<informalexample>
<programlisting format="linespecific"><glossary role="auto">
<remark>Make sure there's a reference to <glossterm>gloss-2</glossterm>.</remark>
<glossentry>
<glossterm>Irrelevant</glossterm>
<glossdef>
<para>If you can see this, the document was processed incorrectly. Use
the <parameter>glossary.collection</parameter> parameter.</para>
</glossdef>
</glossentry>
</glossary></programlisting>
</informalexample>
</listitem>
</orderedlist>
</refsect2>
</refsect1>
</refentry>
<refentry id="glossterm.separation">
<refmeta>
<refentrytitle>glossterm.separation</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossterm.separation</refname>
<refpurpose>Separation between glossary terms and descriptions in list mode</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossterm.separation.frag">
<xsl:param name="glossterm.separation" select="'0.25in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the separation between glossary terms and descriptions when
glossarys are presented using lists.</para>
</refsect1>
</refentry>
<refentry id="glossterm.width">
<refmeta>
<refentrytitle>glossterm.width</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossterm.width</refname>
<refpurpose>Width of glossterm in list presentation mode</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossterm.width.frag">
<xsl:param name="glossterm.width" select="'2in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter specifies the width reserved for glossary terms when
a list presentation is used.</para>
</refsect1>
</refentry>
<refentry id="glossary.as.blocks">
<refmeta>
<refentrytitle>glossary.as.blocks</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossary.as.blocks</refname>
<refpurpose>Present glossarys using blocks instead of lists?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossary.as.blocks.frag">
<xsl:param name="glossary.as.blocks" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, <sgmltag>glossary</sgmltag>s will be formatted as
blocks.</para>
<para>If you have long <sgmltag>glossterm</sgmltag>s, proper list
markup in the FO case may produce unattractive lists. By setting this
parameter, you can force the stylesheets to produce block markup
instead of proper lists.</para>
<para>You can override this setting with a processing instruction as the
child of <sgmltag>glossary</sgmltag>: <sgmltag class="pi">dbfo
glossary-presentation="blocks"</sgmltag> or <sgmltag class="pi">dbfo
glossary-presentation="list"</sgmltag></para>
</refsect1>
</refentry>
<refentry id="glosslist.as.blocks">
<refmeta>
<refentrytitle>glosslist.as.blocks</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glosslist.as.blocks</refname>
<refpurpose>Use blocks for glosslists?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glosslist.as.blocks.frag">
<xsl:param name="glosslist.as.blocks" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>See <parameter moreinfo="none">glossary.as.blocks</parameter>.</para>
</refsect1>
</refentry>
<refentry id="glossentry.show.acronym">
<refmeta>
<refentrytitle>glossentry.show.acronym</refentrytitle>
<refmiscinfo role="type">list</refmiscinfo>
</refmeta>
<refnamediv>
<refname>glossentry.show.acronym</refname>
<refpurpose>Display <sgmltag>glossentry</sgmltag> acronyms?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="glossentry.show.acronym.frag">
<xsl:param name="glossentry.show.acronym" select="'no'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>A setting of <quote>yes</quote> means they should be displayed;
<quote>no</quote> means they shouldn't. If <quote>primary</quote> is used,
then they are shown as the primary text for the entry.</para>
<note>
<para>This setting controls both <sgmltag>acronym</sgmltag> and
<sgmltag>abbrev</sgmltag> elements in the <sgmltag>glossentry</sgmltag>.</para>
</note>
</refsect1>
</refentry>
</reference>
<reference><title>Miscellaneous</title>
<refentry id="formal.procedures">
<refmeta>
<refentrytitle>formal.procedures</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>formal.procedures</refname>
<refpurpose>Selects formal or informal procedures</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="formal.procedures.frag">
<xsl:param name="formal.procedures" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Formal procedures are numbered and always have a title.
</para>
</refsect1>
</refentry>
<refentry id="formal.title.placement">
<refmeta>
<refentrytitle>formal.title.placement</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>formal.title.placement</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="formal.title.placement.frag">
<xsl:param name="formal.title.placement">
figure before
example before
equation before
table before
procedure before
task before
</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies where formal object titles should occur. For each formal object
type (<sgmltag>figure</sgmltag>,
<sgmltag>example</sgmltag>,
<sgmltag>equation</sgmltag>,
<sgmltag>table</sgmltag>, and <sgmltag>procedure</sgmltag>)
you can specify either the keyword
<quote><literal moreinfo="none">before</literal></quote> or
<quote><literal moreinfo="none">after</literal></quote>.</para>
</refsect1>
</refentry>
<refentry id="runinhead.default.title.end.punct">
<refmeta>
<refentrytitle>runinhead.default.title.end.punct</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>runinhead.default.title.end.punct</refname>
<refpurpose>Default punctuation character on a run-in-head</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="runinhead.default.title.end.punct.frag"><xsl:param name="runinhead.default.title.end.punct" select="'.'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:
</para>
</refsect1>
</refentry>
<refentry id="runinhead.title.end.punct">
<refmeta>
<refentrytitle>runinhead.title.end.punct</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>runinhead.title.end.punct</refname>
<refpurpose>Characters that count as punctuation on a run-in-head</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="runinhead.title.end.punct.frag"><xsl:param name="runinhead.title.end.punct" select="'.!?:'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:
</para>
</refsect1>
</refentry>
<refentry id="show.comments">
<refmeta>
<refentrytitle>show.comments</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>show.comments</refname>
<refpurpose>Display <sgmltag>comment</sgmltag> elements?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="show.comments.frag"><xsl:param name="show.comments">1</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true (non-zero), comments will be displayed, otherwise they are suppressed.
Comments here refers to the <sgmltag>comment</sgmltag> element,
which will be renamed <sgmltag>remark</sgmltag> in DocBook V4.0,
not XML comments (<-- like this -->) which are unavailable.
</para>
</refsect1>
</refentry>
<refentry id="punct.honorific">
<refmeta>
<refentrytitle>punct.honorific</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>punct.honorific</refname>
<refpurpose>Punctuation after an honorific in a personal name.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="punct.honorific.frag">
<xsl:param name="punct.honorific" select="'.'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter specifies the punctuation that should be added after an
honorific in a personal name.</para>
</refsect1>
</refentry>
<refentry id="segmentedlist.as.table">
<refmeta>
<refentrytitle>segmentedlist.as.table</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>segmentedlist.as.table</refname>
<refpurpose>Format segmented lists as tables?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="segmentedlist.as.table.frag">
<xsl:param name="segmentedlist.as.table" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, <sgmltag>segmentedlist</sgmltag>s will be formatted as
tables.</para>
</refsect1>
</refentry>
<refentry id="variablelist.as.blocks">
<refmeta>
<refentrytitle>variablelist.as.blocks</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>variablelist.as.blocks</refname>
<refpurpose>Format <sgmltag>variablelist</sgmltag>s lists as blocks?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="variablelist.as.blocks.frag">
<xsl:param name="variablelist.as.blocks" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, <sgmltag>variablelist</sgmltag>s will be formatted as
blocks.</para>
<para>If you have long terms, proper list markup in the FO case may produce
unattractive lists. By setting this parameter, you can force the stylesheets
to produce block markup instead of proper lists.</para>
<para>You can override this setting with a processing instruction as the
child of <sgmltag>variablelist</sgmltag>: <sgmltag class="pi">dbfo
list-presentation="blocks"</sgmltag> or <sgmltag class="pi">dbfo
list-presentation="list"</sgmltag></para>
<programlisting format="linespecific"> <variablelist>
<?dbfo list-presentation="list"?>
<varlistentry>
<term>list</term>
<listitem>
<para>
Formatted as a list even if variablelist.as.blocks is set to 1.
</para>
</listitem>
</varlistentry>
</variablelist></programlisting>
</refsect1>
</refentry>
<refentry id="blockquote.properties">
<refnamediv>
<refname>blockquote.properties</refname>
<refpurpose>To set the style for block quotations.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="blockquote.properties.frag">
<xsl:attribute-set name="blockquote.properties">
<xsl:attribute name="start-indent">0.5in</xsl:attribute>
<xsl:attribute name="end-indent">0.5in</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>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">blockquote.properties</parameter> attribute set specifies
the formating properties of block quotations.</para>
</refsect1>
</refentry>
<refentry id="ulink.show">
<refmeta>
<refentrytitle>ulink.show</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ulink.show</refname>
<refpurpose>Display URLs after <sgmltag>ulink</sgmltag>s?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ulink.show.frag">
<xsl:param name="ulink.show" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the URL of each <sgmltag>ULink</sgmltag> will
appear after the text of the link. If the text of the link and the URL
are identical, the URL is suppressed.</para>
</refsect1>
</refentry>
<refentry id="ulink.footnotes">
<refmeta>
<refentrytitle>ulink.footnotes</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ulink.footnotes</refname>
<refpurpose>Generate footnotes for <sgmltag>ULink</sgmltag>s?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ulink.footnotes.frag">
<xsl:param name="ulink.footnotes" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the URL of each <sgmltag>ULink</sgmltag> will
appear as a footnote.
</para>
</refsect1>
</refentry>
<refentry id="ulink.footnote.number.format">
<refmeta>
<refentrytitle>ulink.footnote.number.format</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ulink.footnote.number.format</refname>
<refpurpose>Identifies the format used for <sgmltag>ulink</sgmltag> footnote numbers</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ulink.footnote.number.format.frag">
<xsl:param name="ulink.footnote.number.format" select="'1'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">ulink.footnote.number.format</parameter> specifies the format
to use for footnote numeration (1, i, I, a, or A).</para>
</refsect1>
</refentry>
<refentry id="ulink.hyphenate">
<refmeta>
<refentrytitle>ulink.hyphenate</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ulink.hyphenate</refname>
<refpurpose>Allow URLs to be automatically hyphenated</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ulink.hyphenate.frag">
<xsl:param name="ulink.hyphenate" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If not empty, the specified character (or more generally, content) is
added to URLs after every <quote>/</quote>. If the character specified is a
Unicode soft hyphen (0x00AD) or Unicode zero-width space (0x200B), some FO
processors will be able to reasonably hyphenate long URLs.</para>
<para>As of 28 Jan 2002, discretionary hyphens are more widely and correctly
supported than zero-width spaces for this purpose.</para>
</refsect1>
</refentry>
<refentry id="shade.verbatim">
<refmeta>
<refentrytitle>shade.verbatim</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>shade.verbatim</refname>
<refpurpose>Should verbatim environments be shaded?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="shade.verbatim.frag"><xsl:param name="shade.verbatim" select="0"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="shade.verbatim.style">
<refmeta>
<refentrytitle>shade.verbatim.style</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>shade.verbatim.style</refname>
<refpurpose>Properties that specify the style of shaded verbatim listings</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="shade.verbatim.style.frag">
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="use.svg">
<refmeta>
<refentrytitle>use.svg</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.svg</refname>
<refpurpose>Allow SVG in the result tree?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="use.svg.frag">
<xsl:param name="use.svg" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, SVG will be considered an acceptable image format. SVG
is passed through to the result tree, so correct rendering of the resulting
diagram depends on the formatter (FO processor or web browser) that is used
to process the output from the stylesheet.</para>
</refsect1>
</refentry>
<refentry id="use.role.as.xrefstyle">
<refmeta>
<refentrytitle>use.role.as.xrefstyle</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.role.as.xrefstyle</refname>
<refpurpose>Use <sgmltag class="attribute">role</sgmltag> attribute for
<sgmltag class="attribute">xrefstyle</sgmltag> on <sgmltag>xref</sgmltag>?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="use.role.as.xrefstyle.frag">
<xsl:param name="use.role.as.xrefstyle" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the <sgmltag class="attribute">role</sgmltag> attribute on
<sgmltag>xref</sgmltag> will be used to select the cross reference style.
The <ulink url="http://www.oasis-open.org/docbook/">DocBook
Technical Committee</ulink> recently added an
<sgmltag class="attribute">xrefstyle</sgmltag> attribute for this purpose.
If the <sgmltag class="attribute">xrefstyle</sgmltag> attribute
is present, <sgmltag class="attribute">role</sgmltag> will be ignored, regardless
of this setting.</para>
<para>Until an official DocBook release that includes the new
attribute, this flag allows <sgmltag class="attribute">role</sgmltag>
to serve that purpose.</para>
</refsect1>
<refsect1><title>Example</title>
<para>The following small stylesheet shows how to configure the stylesheets to make
use of the cross reference style:</para>
<programlisting format="linespecific"><?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../xsl/html/docbook.xsl"/>
<xsl:output method="html"/>
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">
<l:context name="xref">
<l:template name="chapter" style="title" text="Chapter %n, %t"/>
<l:template name="chapter" text="Chapter %n"/>
</l:context>
</l:l10n>
</l:i18n>
</xsl:stylesheet></programlisting>
<para>With this stylesheet, the cross references in the following document:</para>
<programlisting format="linespecific"><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book id="book"><title>Book</title>
<preface>
<title>Preface</title>
<para>Normal: <xref linkend="ch1"/>.</para>
<para>Title: <xref xrefstyle="title" linkend="ch1"/>.</para>
</preface>
<chapter id="ch1">
<title>First Chapter</title>
<para>Irrelevant.</para>
</chapter>
</book></programlisting>
<para>will appear as:</para>
<informalexample>
<para>Normal: Chapter 1.</para>
<para>Title: Chapter 1, <emphasis>First Chapter</emphasis>.</para>
</informalexample>
</refsect1>
</refentry>
<refentry id="menuchoice.separator">
<refmeta>
<refentrytitle>menuchoice.separator</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>menuchoice.separator</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="menuchoice.separator.frag">
<xsl:param name="menuchoice.separator" select="'+'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Separator used to connect items of a <sgmltag>menuchoice</sgmltag> other
than <sgmltag>guimenuitem</sgmltag> and <sgmltag>guisubmenu</sgmltag>. The latter
elements are linked with <parameter moreinfo="none">menuchoice.menu.separator</parameter>.
</para>
</refsect1>
</refentry>
<refentry id="menuchoice.menu.separator">
<refmeta>
<refentrytitle>menuchoice.menu.separator</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>menuchoice.menu.separator</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="menuchoice.menu.separator.frag">
<xsl:param name="menuchoice.menu.separator" select="'->'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Separator used to connect items of a <sgmltag>menuchoice</sgmltag> with
<sgmltag>guimenuitem</sgmltag> or <sgmltag>guisubmenu</sgmltag>. Other elements
are linked with <parameter moreinfo="none">menuchoice.separator</parameter>.
</para>
</refsect1>
</refentry>
<refentry id="default.float.class">
<refmeta>
<refentrytitle>default.float.class</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>default.float.class</refname>
<refpurpose>Specifies the default float class</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="default.float.class.frag">
<xsl:param name="default.float.class" select="'before'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="footnote.number.format">
<refmeta>
<refentrytitle>footnote.number.format</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>footnote.number.format</refname>
<refpurpose>Identifies the format used for footnote numbers</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footnote.number.format.frag">
<xsl:param name="footnote.number.format" select="'1'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">footnote.number.format</parameter> specifies the format
to use for footnote numeration (1, i, I, a, or A).</para>
</refsect1>
</refentry>
<refentry id="table.footnote.number.format">
<refmeta>
<refentrytitle>table.footnote.number.format</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>table.footnote.number.format</refname>
<refpurpose>Identifies the format used for footnote numbers in tables</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.footnote.number.format.frag">
<xsl:param name="table.footnote.number.format" select="'a'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">table.footnote.number.format</parameter> specifies the format
to use for footnote numeration (1, i, I, a, or A) in tables.</para>
</refsect1>
</refentry>
<refentry id="footnote.number.symbols">
<refmeta>
<refentrytitle>footnote.number.symbols</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>footnote.number.symbols</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footnote.number.symbols.frag">
<xsl:param name="footnote.number.symbols" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">footnote.number.symbols</parameter> is not the empty string,
footnotes will use the characters it contains as footnote symbols. For example,
<quote>*&#x2020;&#x2021;&#x25CA;&#x2720;</quote> will identify
footnotes with <quote>*</quote>, <quote>â </quote>, <quote>â¡</quote>,
<quote>â</quote>, and <quote>â </quote>. If there are more footnotes
than symbols, the stylesheets will fall back to numbered footnotes using
<parameter moreinfo="none">footnote.number.format</parameter>.</para>
<para>The use of symbols for footnotes depends on the ability of your
processor (or browser) to render the symbols you select. Not all systems are
capable of displaying the full range of Unicode characters. If the quoted characters
in the preceding paragraph are not displayed properly, that's a good indicator
that you may have trouble using those symbols for footnotes.</para>
</refsect1>
</refentry>
<refentry id="table.footnote.number.symbols">
<refmeta>
<refentrytitle>table.footnote.number.symbols</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>table.footnote.number.symbols</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.footnote.number.symbols.frag">
<xsl:param name="table.footnote.number.symbols" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If <parameter moreinfo="none">table.footnote.number.symbols</parameter> is not the empty string,
table footnotes will use the characters it contains as footnote symbols. For example,
<quote>*&#x2020;&#x2021;&#x25CA;&#x2720;</quote> will identify
footnotes with <quote>*</quote>, <quote>â </quote>, <quote>â¡</quote>,
<quote>â</quote>, and <quote>â </quote>. If there are more footnotes
than symbols, the stylesheets will fall back to numbered footnotes using
<parameter moreinfo="none">table.footnote.number.format</parameter>.</para>
<para>The use of symbols for footnotes depends on the ability of your
processor (or browser) to render the symbols you select. Not all systems are
capable of displaying the full range of Unicode characters. If the quoted characters
in the preceding paragraph are not displayed properly, that's a good indicator
that you may have trouble using those symbols for footnotes.</para>
</refsect1>
</refentry>
<refentry id="xref.with.number.and.title">
<refmeta>
<refentrytitle>xref.with.number.and.title</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>xref.with.number.and.title</refname>
<refpurpose>Use number and title in cross references</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xref.with.number.and.title.frag">
<xsl:param name="xref.with.number.and.title" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>FIXME:</para>
</refsect1>
</refentry>
<refentry id="superscript.properties">
<refmeta>
<refentrytitle>superscript.properties</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>superscript.properties</refname>
<refpurpose>Properties associated with superscripts</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="superscript.properties.frag">
<xsl:attribute-set name="superscript.properties">
<xsl:attribute name="font-size">75%</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies styling properties for superscripts.</para>
</refsect1>
</refentry>
<refentry id="subscript.properties">
<refmeta>
<refentrytitle>subscript.properties</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>subscript.properties</refname>
<refpurpose>Properties associated with subscripts</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="subscript.properties.frag">
<xsl:attribute-set name="subscript.properties">
<xsl:attribute name="font-size">75%</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies styling properties for subscripts.</para>
</refsect1>
</refentry>
</reference>
<reference><title>Graphics</title>
<refentry id="graphic.default.extension">
<refmeta>
<refentrytitle>graphic.default.extension</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>graphic.default.extension</refname>
<refpurpose>Default extension for graphic filenames</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="graphic.default.extension.frag"><xsl:param name="graphic.default.extension"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="default.image.width">
<refmeta>
<refentrytitle>default.image.width</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>default.image.width</refname>
<refpurpose>The default width of images</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="default.image.width.frag">
<xsl:param name="default.image.width" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If specified, this value will be used for the
<sgmltag class="attribute">width</sgmltag> attribute on
images that do not specify any
<ulink url="http://docbook.org/tdg/en/html/imagedata.html#viewport.area">viewport
dimensions</ulink>.</para>
</refsect1>
</refentry>
<refentry id="preferred.mediaobject.role">
<refmeta>
<refentrytitle>preferred.mediaobject.role</refentrytitle>
</refmeta>
<refnamediv>
<refname>preferred.mediaobject.role</refname>
<refpurpose>Select which mediaobject to use based on
this value of an object's <sgmltag class="attribute">role</sgmltag> attribute.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="preferred.mediaobject.role.frag">
<xsl:param name="preferred.mediaobject.role"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>A mediaobject may contain several objects such as imageobjects.
If the parameter <parameter moreinfo="none">use.role.for.mediaobject</parameter>
is non-zero, then the <sgmltag class="attribute">role</sgmltag> attribute on
<sgmltag>imageobject</sgmltag>s and other objects within a <sgmltag>mediaobject</sgmltag> container will be used to select which object will be
used. If one of the objects has a role value that matches the
preferred.mediaobject.role parameter, then it has first
priority for selection. If more than one has such a
role value, the first one is used.
</para>
<para>
See the <parameter moreinfo="none">use.role.for.mediaobject</parameter> parameter
for the sequence of selection.</para>
</refsect1>
</refentry>
<refentry id="use.role.for.mediaobject">
<refmeta>
<refentrytitle>use.role.for.mediaobject</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.role.for.mediaobject</refname>
<refpurpose>Use <sgmltag class="attribute">role</sgmltag> attribute
value for selecting which of several objects within a mediaobject to use.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="use.role.for.mediaobject.frag">
<xsl:param name="use.role.for.mediaobject" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the <sgmltag class="attribute">role</sgmltag> attribute on
<sgmltag>imageobject</sgmltag>s or other objects within a <sgmltag>mediaobject</sgmltag> container will be used to select which object will be
used.
</para>
<para>
The order of selection when then parameter is non-zero is:
</para>
<orderedlist inheritnum="ignore" continuation="restarts">
<listitem>
<para>If the stylesheet parameter <parameter moreinfo="none">preferred.mediaobject.role</parameter> has a value, then the object whose role equals that value is selected.</para>
</listitem>
<listitem>
<para>Else if an object's role attribute has a value of
<literal moreinfo="none">html</literal> for HTML processing or
<literal moreinfo="none">fo</literal> for FO output, then the first
of such objects is selected.
</para>
</listitem>
<listitem>
<para>Else the first suitable object is selected.</para>
</listitem>
</orderedlist>
<para>
If the value of
<parameter moreinfo="none">use.role.for.mediaobject</parameter>
is zero, then role attributes are not considered
and the first suitable object
with or without a role value is used.
</para>
</refsect1>
</refentry>
<refentry id="ignore.image.scaling">
<refmeta>
<refentrytitle>ignore.image.scaling</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ignore.image.scaling</refname>
<refpurpose>Tell the stylesheets to ignore the author's image scaling attributes</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ignore.image.scaling.frag">
<xsl:param name="ignore.image.scaling" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the scaling attributes on graphics and media objects are
ignored.</para>
</refsect1>
</refentry>
</reference>
<reference><title>Pagination and General Styles</title>
<partintro>
<section><title>Understanding XSL FO Margins</title>
<para>In order for the parameters in this section to make sense, it is useful to
consider <xref linkend="fig.pagemodel"/>.</para>
<figure id="fig.pagemodel" float="0">
<mediaobject>
<imageobject>
<imagedata fileref="page.png"/>
</imageobject>
<textobject><phrase>Figure showing page margins</phrase></textobject>
<textobject>
<para>This figure shows the physical page with the various FO page regions
identified.</para>
</textobject>
</mediaobject>
</figure>
<para>First, let's consider the regions on the page.</para>
<para>The white region is the physical page. Its dimensions are determined by
the <parameter moreinfo="none">page.height</parameter> and <parameter moreinfo="none">page.width</parameter>
parameters.</para>
<para>The yellow region is the region-body. The size and placement of
the region body is constrained by the dimensions labelled in the
figure.</para>
<para>The pink region at the top of the page is the region-before. The
darker area inside the region-before is the header text. In XSL, the default
display alignment for a region is <literal moreinfo="none">before</literal>, but the
DocBook stylesheets still explicitly make it <literal moreinfo="none">before</literal>. That's
why the darker area is at the top.</para>
<para>The pink region at the bottom of the page is the region-after.
The darker area is the footer text. In XSL, the default display
alignment for a region is <literal moreinfo="none">before</literal>,
but the DocBook stylesheets explicitly make it
<literal moreinfo="none">after</literal>. That's why the darker area is at the bottom.</para>
<para>The dimensions in the figure are:</para>
<orderedlist numeration="upperalpha" inheritnum="ignore" continuation="restarts">
<listitem><para>The page-master margin-top.
</para></listitem>
<listitem><para>The region-before extent.
</para></listitem>
<listitem><para>The region-body margin-top.
</para></listitem>
<listitem><para>The region-after extent.
</para></listitem>
<listitem><para>The page-master margin-bottom.
</para></listitem>
<listitem><para>The region-body margin-bottom.
</para></listitem>
<listitem><para>The sum of the page-master margin-left and the
region-body margin-left. In DocBook, the region-body margin-left is
zero by default, so this is simply the page-master region-left.
</para></listitem>
<listitem><para>The sum of the page-master margin-right and the
region-body margin-right. In DocBook, the region-body margin-right is
zero by default, so this is simply the page-master region-left.
</para></listitem>
</orderedlist>
</section>
</partintro>
<refentry id="page.height">
<refmeta>
<refentrytitle>page.height</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.height</refname>
<refpurpose>The height of the physical page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.height.frag"><xsl:param name="page.height">
<xsl:choose>
<xsl:when test="$page.orientation = 'portrait'">
<xsl:value-of select="$page.height.portrait"></xsl:value-of>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$page.width.portrait"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The page height is generally calculated from the
<literal moreinfo="none">paper.type</literal> and
<literal moreinfo="none">page.orientation</literal>.
</para>
</refsect1>
</refentry>
<refentry id="page.height.portrait">
<refmeta>
<refentrytitle>page.height.portrait</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.height.portrait</refname>
<refpurpose>Specify the physical size of the long edge of the page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.height.portrait.frag"><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></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The portrait page height is the length of the long
edge of the physical page.
</para>
</refsect1>
</refentry>
<refentry id="page.margin.bottom">
<refmeta>
<refentrytitle>page.margin.bottom</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.margin.bottom</refname>
<refpurpose>The bottom margin of the page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.margin.bottom.frag">
<xsl:param name="page.margin.bottom" select="'0.5in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The bottom page margin is the distance from the bottom of the region-after
to the physical bottom of the page.
</para>
</refsect1>
</refentry>
<refentry id="page.margin.inner">
<refmeta>
<refentrytitle>page.margin.inner</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.margin.inner</refname>
<refpurpose>The inner page margin</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.margin.inner.frag"><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></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="page.margin.outer">
<refmeta>
<refentrytitle>page.margin.outer</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.margin.outer</refname>
<refpurpose>The outer page margin</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.margin.outer.frag"><xsl:param name="page.margin.outer">
<xsl:choose>
<xsl:when test="$double.sided != 0">0.75in</xsl:when>
<xsl:otherwise>1in</xsl:otherwise>
</xsl:choose>
</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="page.margin.top">
<refmeta>
<refentrytitle>page.margin.top</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.margin.top</refname>
<refpurpose>The top margin of the page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.margin.top.frag">
<xsl:param name="page.margin.top" select="'0.5in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The top page margin is the distance from the physical top of the
page to the top of the region-before.</para>
</refsect1>
</refentry>
<refentry id="page.orientation">
<refmeta>
<refentrytitle>page.orientation</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.orientation</refname>
<refpurpose>Select the page orientation</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.orientation.frag"><xsl:param name="page.orientation" select="'portrait'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>In portrait orientation, the short edge is horizontal; in
landscape orientation, it is vertical.
</para>
</refsect1>
</refentry>
<refentry id="page.width">
<refmeta>
<refentrytitle>page.width</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.width</refname>
<refpurpose>The width of the physical page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.width.frag"><xsl:param name="page.width">
<xsl:choose>
<xsl:when test="$page.orientation = 'portrait'">
<xsl:value-of select="$page.width.portrait"></xsl:value-of>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$page.height.portrait"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The page width is generally calculated from the
<literal moreinfo="none">paper.type</literal> and <literal moreinfo="none">page.orientation</literal>.
</para>
</refsect1>
</refentry>
<refentry id="page.width.portrait">
<refmeta>
<refentrytitle>page.width.portrait</refentrytitle>
</refmeta>
<refnamediv>
<refname>page.width.portrait</refname>
<refpurpose>Specify the physical size of the short edge of the page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="page.width.portrait.frag"><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></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The portrait page width is the length of the short
edge of the physical page.
</para>
</refsect1>
</refentry>
<refentry id="paper.type">
<refmeta>
<refentrytitle>paper.type</refentrytitle>
</refmeta>
<refnamediv>
<refname>paper.type</refname>
<refpurpose>Select the paper type</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="paper.type.frag"><xsl:param name="paper.type" select="'USletter'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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 moreinfo="none">page.width.portrait</literal>, for example.
</para>
</refsect1>
</refentry>
<refentry id="double.sided">
<refmeta>
<refentrytitle>double.sided</refentrytitle>
</refmeta>
<refnamediv>
<refname>double.sided</refname>
<refpurpose>Is the document to be printed double sided?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="double.sided.frag">
<xsl:param name="double.sided" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="body.margin.bottom">
<refmeta>
<refentrytitle>body.margin.bottom</refentrytitle>
</refmeta>
<refnamediv>
<refname>body.margin.bottom</refname>
<refpurpose>The bottom margin of the body text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="body.margin.bottom.frag">
<xsl:param name="body.margin.bottom" select="'0.5in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The body bottom margin is the distance from the last line of text
in the page body to the bottom of the region-after.
</para>
</refsect1>
</refentry>
<refentry id="body.margin.top">
<refmeta>
<refentrytitle>body.margin.top</refentrytitle>
</refmeta>
<refnamediv>
<refname>body.margin.top</refname>
<refpurpose>To specify the size of the top margin of a page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="body.margin.top.frag">
<xsl:param name="body.margin.top" select="'0.5in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The body top margin is the distance from the top of the region-before
to the first line of text in the page body.
</para>
</refsect1>
</refentry>
<refentry id="alignment">
<refmeta>
<refentrytitle>alignment</refentrytitle>
</refmeta>
<refnamediv>
<refname>alignment</refname>
<refpurpose>Specify the default text alignment</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="alignment.frag"><xsl:param name="alignment">justify</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The default text alignment is used for most body text.
</para>
</refsect1>
</refentry>
<refentry id="hyphenate">
<refmeta>
<refentrytitle>hyphenate</refentrytitle>
</refmeta>
<refnamediv>
<refname>hyphenate</refname>
<refpurpose>Specify hyphenation behavior</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="hyphenate.frag"><xsl:param name="hyphenate">true</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If true, words may be hyphenated. Otherwise, they may not.
</para>
</refsect1>
</refentry>
<refentry id="line-height">
<refmeta>
<refentrytitle>line-height</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>line-height</refname>
<refpurpose>Specify the line-height property</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="line-height.frag">
<xsl:param name="line-height" select="'normal'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Sets the line-height property.</para>
</refsect1>
</refentry>
<refentry id="column.count.back">
<refmeta>
<refentrytitle>column.count.back</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.back</refname>
<refpurpose>Number of columns on back matter pages</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.back.frag">
<xsl:param name="column.count.back" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on back matter (appendix, glossary, etc.) pages.</para>
</refsect1>
</refentry>
<refentry id="column.count.body">
<refmeta>
<refentrytitle>column.count.body</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.body</refname>
<refpurpose>Number of columns on body pages</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.body.frag">
<xsl:param name="column.count.body" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on body pages.</para>
</refsect1>
</refentry>
<refentry id="column.count.front">
<refmeta>
<refentrytitle>column.count.front</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.front</refname>
<refpurpose>Number of columns on front matter pages</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.front.frag">
<xsl:param name="column.count.front" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on front matter (dedication, preface, etc.) pages.</para>
</refsect1>
</refentry>
<refentry id="column.count.index">
<refmeta>
<refentrytitle>column.count.index</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.index</refname>
<refpurpose>Number of columns on index pages</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.index.frag">
<xsl:param name="column.count.index" select="2"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on index pages.</para>
</refsect1>
</refentry>
<refentry id="column.count.lot">
<refmeta>
<refentrytitle>column.count.lot</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.lot</refname>
<refpurpose>Number of columns on a 'List-of-Titles' page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.lot.frag">
<xsl:param name="column.count.lot" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on a page sequence containing the Table of Contents,
List of Figures, etc.</para>
</refsect1>
</refentry>
<refentry id="column.count.titlepage">
<refmeta>
<refentrytitle>column.count.titlepage</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.count.titlepage</refname>
<refpurpose>Number of columns on a title page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.count.titlepage.frag">
<xsl:param name="column.count.titlepage" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Number of columns on a title page</para>
</refsect1>
</refentry>
<refentry id="column.gap.back">
<refmeta>
<refentrytitle>column.gap.back</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.back</refname>
<refpurpose>Gap between columns in back matter</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.back.frag">
<xsl:param name="column.gap.back" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns in back matter (if
<parameter moreinfo="none">column.count.back</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="column.gap.body">
<refmeta>
<refentrytitle>column.gap.body</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.body</refname>
<refpurpose>Gap between columns in the body</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.body.frag">
<xsl:param name="column.gap.body" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns in body matter (if
<parameter moreinfo="none">column.count.body</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="column.gap.front">
<refmeta>
<refentrytitle>column.gap.front</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.front</refname>
<refpurpose>Gap between columns in the front matter</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.front.frag">
<xsl:param name="column.gap.front" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns in front matter (if
<parameter moreinfo="none">column.count.front</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="column.gap.index">
<refmeta>
<refentrytitle>column.gap.index</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.index</refname>
<refpurpose>Gap between columns in the index</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.index.frag">
<xsl:param name="column.gap.index" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns in indexes (if
<parameter moreinfo="none">column.count.index</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="column.gap.lot">
<refmeta>
<refentrytitle>column.gap.lot</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.lot</refname>
<refpurpose>Gap between columns on a 'List-of-Titles' page</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.lot.frag">
<xsl:param name="column.gap.lot" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns on 'List-of-Titles' pages (if
<parameter moreinfo="none">column.count.lot</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="column.gap.titlepage">
<refmeta>
<refentrytitle>column.gap.titlepage</refentrytitle>
<refmiscinfo role="type">length</refmiscinfo>
</refmeta>
<refnamediv>
<refname>column.gap.titlepage</refname>
<refpurpose>Gap between columns on title pages</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="column.gap.titlepage.frag">
<xsl:param name="column.gap.titlepage" select="'12pt'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the gap between columns on title pages (if
<parameter moreinfo="none">column.count.titlepage</parameter> is greater than one).</para>
</refsect1>
</refentry>
<refentry id="region.after.extent">
<refmeta>
<refentrytitle>region.after.extent</refentrytitle>
</refmeta>
<refnamediv>
<refname>region.after.extent</refname>
<refpurpose>Specifies the height of the footer.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="region.after.extent.frag">
<xsl:param name="region.after.extent" select="'0.4in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The region after extent is the height of the area where footers
are printed.
</para>
</refsect1>
</refentry>
<refentry id="region.before.extent">
<refmeta>
<refentrytitle>region.before.extent</refentrytitle>
</refmeta>
<refnamediv>
<refname>region.before.extent</refname>
<refpurpose>Specifies the height of the header</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="region.before.extent.frag">
<xsl:param name="region.before.extent" select="'0.4in'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The region before extent is the height of the area where headers
are printed.
</para>
</refsect1>
</refentry>
<refentry id="default.units">
<refmeta>
<refentrytitle>default.units</refentrytitle>
<refmiscinfo role="type">list</refmiscinfo>
<refmiscinfo role="value">cm</refmiscinfo>
<refmiscinfo role="value">mm</refmiscinfo>
<refmiscinfo role="value">in</refmiscinfo>
<refmiscinfo role="value">pt</refmiscinfo>
<refmiscinfo role="value">pc</refmiscinfo>
<refmiscinfo role="value">px</refmiscinfo>
<refmiscinfo role="value">em</refmiscinfo>
</refmeta>
<refnamediv>
<refname>default.units</refname>
<refpurpose>Default units for an unqualified dimension</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="default.units.frag"><xsl:param name="default.units" select="'pt'"></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If an unqualified dimension is encountered (for example, in a
graphic width), the <parameter moreinfo="none">default-units</parameter> will be used for the
units. Unqualified dimensions are not allowed in XSL Formatting Objects.
</para>
</refsect1>
</refentry>
<refentry id="normal.para.spacing">
<refnamediv>
<refname>normal.para.spacing</refname>
<refpurpose>What space do you want between normal paragraphs</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="normal.para.spacing.frag"><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></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify the spacing required between normal paragraphs</para>
</refsect1>
</refentry>
<refentry id="body.font.master">
<refmeta>
<refentrytitle>body.font.master</refentrytitle>
</refmeta>
<refnamediv>
<refname>body.font.master</refname>
<refpurpose>Specifies the default point size for body text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="body.font.master.frag">
<xsl:param name="body.font.master">10</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="body.font.size">
<refmeta>
<refentrytitle>body.font.size</refentrytitle>
</refmeta>
<refnamediv>
<refname>body.font.size</refname>
<refpurpose>Specifies the default font size for body text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="body.font.size.frag"><xsl:param name="body.font.size">
<xsl:value-of select="$body.font.master"></xsl:value-of><xsl:text>pt</xsl:text>
</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="footnote.font.size">
<refmeta>
<refentrytitle>footnote.font.size</refentrytitle>
</refmeta>
<refnamediv>
<refname>footnote.font.size</refname>
<refpurpose>The font size for footnotes</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footnote.font.size.frag"><xsl:param name="footnote.font.size">
<xsl:value-of select="$body.font.master * 0.8"></xsl:value-of><xsl:text>pt</xsl:text>
</xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The footnote font size is used for...footnotes!
</para>
</refsect1>
</refentry>
<refentry id="title.margin.left">
<refmeta>
<refentrytitle>title.margin.left</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>title.margin.left</refname>
<refpurpose>Adjust the left margin for titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="title.margin.left.frag">
<xsl:param name="title.margin.left">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
<xsl:otherwise>-4pc</xsl:otherwise>
</xsl:choose>
</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter adjusts the left margin for titles,
effectively leaving the titles at the left
margin and indenting the body text.
The default value is -4pc, which means the
body text is indented 4 picas relative to
the titles.
</para>
<para>
If you set the value to zero, be sure to still include
a unit indicator such as <literal moreinfo="none">0pt</literal>, or
the FO processor will report errors.
</para>
<para>
This parameter is set to 0pt if the
<parameter moreinfo="none">passivetex.extensions</parameter>
parameter is nonzero because PassiveTeX cannot handle
the math expression with negative values
used to calculate the indents.
</para>
</refsect1>
</refentry>
<refentry id="draft.mode">
<refmeta>
<refentrytitle>draft.mode</refentrytitle>
<refmiscinfo role="type">list</refmiscinfo>
</refmeta>
<refnamediv>
<refname>draft.mode</refname>
<refpurpose>Select draft mode</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="draft.mode.frag">
<xsl:param name="draft.mode" select="'maybe'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Selects draft mode. If <parameter moreinfo="none">draft.mode</parameter> is
<quote><literal moreinfo="none">yes</literal></quote>, the entire document will be treated
as a draft. If it is <quote><literal moreinfo="none">no</literal></quote>, the entire document
will be treated as a final copy. If it is <quote><literal moreinfo="none">maybe</literal></quote>,
individual sections will be treated as draft or final independently, depending
on how their <sgmltag class="attribute">status</sgmltag> attribute is set.
</para>
</refsect1>
</refentry>
<refentry id="draft.watermark.image">
<refmeta>
<refentrytitle>draft.watermark.image</refentrytitle>
<refmiscinfo role="type">uri</refmiscinfo>
</refmeta>
<refnamediv>
<refname>draft.watermark.image</refname>
<refpurpose>The URI of the image to be used for draft watermarks</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="draft.watermark.image.frag">
<xsl:param name="draft.watermark.image" select="'http://docbook.sourceforge.net/release/images/draft.png'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The image to be used for draft watermarks.</para>
</refsect1>
</refentry>
<refentry id="headers.on.blank.pages">
<refmeta>
<refentrytitle>headers.on.blank.pages</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>headers.on.blank.pages</refname>
<refpurpose>Put headers on blank pages?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="headers.on.blank.pages.frag">
<xsl:param name="headers.on.blank.pages" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, headers will be placed on blank pages.</para>
</refsect1>
</refentry>
<refentry id="footers.on.blank.pages">
<refmeta>
<refentrytitle>footers.on.blank.pages</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>footers.on.blank.pages</refname>
<refpurpose>Put footers on blank pages?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footers.on.blank.pages.frag">
<xsl:param name="footers.on.blank.pages" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, footers will be placed on blank pages.</para>
</refsect1>
</refentry>
<refentry id="header.rule">
<refmeta>
<refentrytitle>header.rule</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>header.rule</refname>
<refpurpose>Rule under headers?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="header.rule.frag">
<xsl:param name="header.rule" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, a rule will be drawn below the page headers.</para>
</refsect1>
</refentry>
<refentry id="footer.rule">
<refmeta>
<refentrytitle>footer.rule</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>footer.rule</refname>
<refpurpose>Rule over footers?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footer.rule.frag">
<xsl:param name="footer.rule" select="1"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, a rule will be drawn above the page footers.</para>
</refsect1>
</refentry>
<refentry id="header.column.widths">
<refmeta>
<refentrytitle>header.column.widths</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>header.column.widths</refname>
<refpurpose>Specify relative widths of header areas</refpurpose>
</refnamediv>
<refsynopsisdiv><programlisting id="header.column.widths.frag">
<xsl:param name="header.column.widths" select="'1 1 1'"></xsl:param>
</programlisting></refsynopsisdiv>
<refsect1><title>Description</title>
<para>Page headers in print output use a three column table
to position text at the left, center, and right side of
the header on the page.
This parameter lets you specify the relative sizes of the
three columns. The default value is
"1 1 1".</para>
<para>The parameter value must be three numbers, separated
by white space. The first number represents the relative
width of the left header for
single-sided output, or the inside header for
double-sided output. The second number is the relative
width of the center header. The third number is the
relative width of the right header for
single-sided output, or the outside header for
double-sided output.
</para>
<para>The numbers are used to specify the column widths
for the table that makes up the header area.
In the FO output, this looks like:
</para>
<programlisting format="linespecific">
<fo:table-column column-number="1"
column-width="proportional-column-width(1)"/>
</programlisting>
<para>
The <literal moreinfo="none">proportional-column-width()</literal>
function computes a column width by dividing its
argument by the total of the arguments for all the columns, and
then multiplying the result by the width of the whole table
(assuming all the column specs use the function).
Its argument can be any positive integer or floating point number.
Zero is an acceptable value, although some FO processors
may warn about it, in which case using a very small number might
be more satisfactory.
</para>
<para>For example, the value "1 2 1" means the center
header should have twice the width of the other areas.
A value of "0 0 1" means the entire header area
is reserved for the right (or outside) header text.
Note that to keep the center area centered on
the page, the left and right values must be
the same. A specification like "1 2 3" means the
center area is no longer centered on the page
since the right area is three times the width of the left area.
</para>
</refsect1>
</refentry>
<refentry id="footer.column.widths">
<refmeta>
<refentrytitle>footer.column.widths</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>footer.column.widths</refname>
<refpurpose>Specify relative widths of footer areas</refpurpose>
</refnamediv>
<refsynopsisdiv><programlisting id="footer.column.widths.frag">
<xsl:param name="footer.column.widths" select="'1 1 1'"></xsl:param>
</programlisting></refsynopsisdiv>
<refsect1><title>Description</title>
<para>Page footers in print output use a three column table
to position text at the left, center, and right side of
the footer on the page.
This parameter lets you specify the relative sizes of the
three columns. The default value is
"1 1 1".</para>
<para>The parameter value must be three numbers, separated
by white space. The first number represents the relative
width of the left footer for
single-sided output, or the inside footer for
double-sided output. The second number is the relative
width of the center footer. The third number is the
relative width of the right footer for
single-sided output, or the outside footer for
double-sided output.
</para>
<para>The numbers are used to specify the column widths
for the table that makes up the footer area.
In the FO output, this looks like:
</para>
<programlisting format="linespecific">
<fo:table-column column-number="1"
column-width="proportional-column-width(1)"/>
</programlisting>
<para>
The <literal moreinfo="none">proportional-column-width()</literal>
function computes a column width by dividing its
argument by the total of the arguments for all the columns, and
then multiplying the result by the width of the whole table
(assuming all the column specs use the function).
Its argument can be any positive integer or floating point number.
Zero is an acceptable value, although some FO processors
may warn about it, in which case using a very small number might
be more satisfactory.
</para>
<para>For example, the value "1 2 1" means the center
footer should have twice the width of the other areas.
A value of "0 0 1" means the entire footer area
is reserved for the right (or outside) footer text.
Note that to keep the center area centered on
the page, the left and right values must be
the same. A specification like "1 2 3" means the
center area is no longer centered on the page
since the right area is three times the width of the left area.
</para>
</refsect1>
</refentry>
<refentry id="header.content.properties">
<refmeta>
<refentrytitle>header.content.properties</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>header.content.properties</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="header.content.properties.frag">
<xsl:attribute-set name="header.content.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"></xsl:value-of>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Properties of page header content.</para>
</refsect1>
</refentry>
<refentry id="footer.content.properties">
<refmeta>
<refentrytitle>footer.content.properties</refentrytitle>
<refmiscinfo role="type"/>
</refmeta>
<refnamediv>
<refname>footer.content.properties</refname>
<refpurpose/>
</refnamediv>
<refsynopsisdiv>
<programlisting id="footer.content.properties.frag">
<xsl:attribute-set name="footer.content.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"></xsl:value-of>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Properties of page footer content.</para>
</refsect1>
</refentry>
<refentry id="marker.section.level">
<refmeta>
<refentrytitle>marker.section.level</refentrytitle>
<refmiscinfo role="type">integer</refmiscinfo>
</refmeta>
<refnamediv>
<refname>marker.section.level</refname>
<refpurpose>Control depth of sections shown in running headers or footers</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="marker.section.level.frag">
<xsl:param name="marker.section.level" select="2"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">marker.section.level</parameter> parameter
controls the depth of section levels that may be displayed
in running headers and footers. For example, if the value
is 2 (the default), then titles from <sgmltag>sect1</sgmltag> and
<sgmltag>sect2</sgmltag> or equivalent <sgmltag>section</sgmltag>
elements are candidates for use in running headers and
footers.
</para>
<para>Each candidate title is marked in the FO output with a
<sgmltag><fo:marker marker-class-name="section.head.marker"></sgmltag>
element.
</para>
<para>In order for such titles to appear in headers
or footers, the <literal moreinfo="none">header.content</literal>
or <literal moreinfo="none">footer.content</literal> template
must be customized to retrieve the marker using
an output element such as:
</para>
<programlisting format="linespecific">
<fo:retrieve-marker retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
</programlisting>
</refsect1>
</refentry>
</reference>
<reference><title>Font Families</title>
<refentry id="body.font.family">
<refmeta>
<refentrytitle>body.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>body.font.family</refname>
<refpurpose>The default font family for body text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="body.font.family.frag">
<xsl:param name="body.font.family" select="'serif'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The body font family is the default font used for text in the page body.
</para>
</refsect1>
</refentry>
<refentry id="dingbat.font.family">
<refmeta>
<refentrytitle>dingbat.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>dingbat.font.family</refname>
<refpurpose>The font family for copyright, quotes, and other symbols</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="dingbat.font.family.frag">
<xsl:param name="dingbat.font.family" select="'serif'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<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>
</refsect1>
</refentry>
<refentry id="monospace.font.family">
<refmeta>
<refentrytitle>monospace.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>monospace.font.family</refname>
<refpurpose>The default font family for monospace environments</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="monospace.font.family.frag">
<xsl:param name="monospace.font.family" select="'monospace'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The monospace font family is used for verbatim environments
(program listings, screens, etc.).
</para>
</refsect1>
</refentry>
<refentry id="sans.font.family">
<refmeta>
<refentrytitle>sans.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>sans.font.family</refname>
<refpurpose>The default sans-serif font family</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="sans.font.family.frag">
<xsl:param name="sans.font.family" select="'sans-serif'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The default sans-serif font family. At the present, this isn't
actually used by the stylesheets.
</para>
</refsect1>
</refentry>
<refentry id="title.font.family">
<refmeta>
<refentrytitle>title.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>title.font.family</refname>
<refpurpose>The default font family for titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="title.font.family.frag">
<xsl:param name="title.font.family" select="'sans-serif'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The title font family is used for titles (chapter, section, figure,
etc.)
</para>
</refsect1>
</refentry>
<refentry id="symbol.font.family">
<refmeta>
<refentrytitle>symbol.font.family</refentrytitle>
</refmeta>
<refnamediv>
<refname>symbol.font.family</refname>
<refpurpose>The font families to be searched for symbols outside
of the body font</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="symbol.font.family.frag">
<xsl:param name="symbol.font.family" select="'Symbol,ZapfDingbats'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>A typical body or title font does not contain all
the character glyphs that DocBook supports. This parameter
specifies additional fonts that should be searched for
special characters not in the normal font.
These symbol font names are automatically appended
to the body or title font family name when fonts
are specified in a
<sgmltag class="attribute">font-family</sgmltag>
property in the FO output.
</para>
<para>The symbol font names should be entered as a
comma-separated list. The default value is
<literal moreinfo="none">Symbol,ZapfDingbats</literal>.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Lists</title>
<refentry id="list.block.spacing">
<refnamediv>
<refname>list.block.spacing</refname>
<refpurpose>What spacing do you want before and after lists?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="list.block.spacing.frag"><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 name="space-after.optimum">1em</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
</xsl:attribute-set></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify the spacing required before and after a list. It is necessary to specify the space after a list block because lists can come inside of paras. </para>
</refsect1>
</refentry>
<refentry id="list.item.spacing">
<refnamediv>
<refname>list.item.spacing</refname>
<refpurpose>What space do you want between list items?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="list.item.spacing.frag"><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></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify what spacing you want between each list item.</para>
</refsect1>
</refentry>
<refentry id="compact.list.item.spacing">
<refnamediv>
<refname>compact.list.item.spacing</refname>
<refpurpose>What space do you want between list items (when spacing=compact)?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="compact.list.item.spacing.frag"><xsl:attribute-set name="compact.list.item.spacing">
<xsl:attribute name="space-before.optimum">0em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.2em</xsl:attribute>
</xsl:attribute-set></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify what spacing you want between each list item when
<sgmltag class="attribute">spacing</sgmltag> is
<quote><literal moreinfo="none">compact</literal></quote>.</para>
</refsect1>
</refentry>
<refentry id="variablelist.max.termlength">
<refmeta>
<refentrytitle>variablelist.max.termlength</refentrytitle>
</refmeta>
<refnamediv>
<refname>variablelist.max.termlength</refname>
<refpurpose>Specifies the longest term in variablelists</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="variablelist.max.termlength.frag">
<xsl:param name="variablelist.max.termlength">24</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>In variablelists, the <sgmltag>listitem</sgmltag>
is indented to leave room for the
<sgmltag>term</sgmltag> elements. That indent may be computed
if it is not specified with a <sgmltag class="attribute">termlength</sgmltag>
attribute on the <sgmltag>variablelist</sgmltag> element.
</para>
<para>
The computation counts characters in the
<sgmltag>term</sgmltag> elements in the list
to find the longest term. However, some terms are very long
and would produce extreme indents. This parameter lets you
set a maximum character count. Any terms longer than the maximum
would line wrap. The default value is 24.
</para>
<para>
The character counts are converted to physical widths
by multiplying by 0.50em. There will be some variability
in how many actual characters fit in the space
since some characters are wider than others.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Cross References</title>
<refentry id="insert.xref.page.number">
<refmeta>
<refentrytitle>insert.xref.page.number</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>insert.xref.page.number</refname>
<refpurpose>Turns page numbers in xrefs on and off</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="insert.xref.page.number.frag">
<xsl:param name="insert.xref.page.number">no</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The value of this parameter determines if
cross references (<sgmltag>xref</sgmltag>s) in
printed output will
include page number citations.
It has three possible values.
</para>
<variablelist>
<section>
<term>no</term>
<listitem><para>No page number references will be generated.
</para></listitem>
</section>
<section>
<term>yes</term>
<listitem><para>Page number references will be generated
for all <sgmltag>xref</sgmltag> elements.
The style of page reference may be changed
if an <sgmltag class="attribute">xrefstyle</sgmltag>
attribute is used.
</para></listitem>
</section>
<section>
<term>maybe</term>
<listitem><para>Page number references will not be generated
for an <sgmltag>xref</sgmltag> element unless
it has an
<sgmltag class="attribute">xrefstyle</sgmltag>
attribute whose value specifies a page reference.
</para></listitem>
</section>
</variablelist>
</refsect1>
</refentry>
<refentry id="xref.properties">
<refnamediv>
<refname>xref.properties</refname>
<refpurpose>Properties associated with cross-reference text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xref.properties.frag">
<xsl:attribute-set name="xref.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This attribute set is used on cross reference text.</para>
</refsect1>
</refentry>
<refentry id="xref.label-title.separator">
<refmeta>
<refentrytitle>xref.label-title.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>xref.label-title.separator</refname>
<refpurpose>Punctuation or space separating label from title in xref</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xref.label-title.separator.frag"><xsl:param name="xref.label-title.separator">: </xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>
This parameter allows you to control the punctuation of certain
types of generated cross reference text.
When cross reference text is generated for an
<sgmltag class="element">xref</sgmltag> or
<sgmltag class="element">olink</sgmltag> element
using an <sgmltag class="attribute">xrefstyle</sgmltag> attribute
that makes use of the <literal moreinfo="none">select:</literal> feature,
and the selected components include both label and title,
then the value of this parameter is inserted between
label and title in the output.
</para>
</refsect1>
</refentry>
<refentry id="xref.label-page.separator">
<refmeta>
<refentrytitle>xref.label-page.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>xref.label-page.separator</refname>
<refpurpose>Punctuation or space separating label from page number in xref</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xref.label-page.separator.frag"><xsl:param name="xref.label-page.separator"><xsl:text> </xsl:text></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>
This parameter allows you to control the punctuation of certain
types of generated cross reference text.
When cross reference text is generated for an
<sgmltag class="element">xref</sgmltag> or
<sgmltag class="element">olink</sgmltag> element
using an <sgmltag class="attribute">xrefstyle</sgmltag> attribute
that makes use of the <literal moreinfo="none">select:</literal> feature,
and the selected components include both label and page
but no title,
then the value of this parameter is inserted between
label and page number in the output.
If a title is included, then other separators are used.
</para>
</refsect1>
</refentry>
<refentry id="xref.title-page.separator">
<refmeta>
<refentrytitle>xref.title-page.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>xref.title-page.separator</refname>
<refpurpose>Punctuation or space separating title from page number in xref</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="xref.title-page.separator.frag"><xsl:param name="xref.title-page.separator"><xsl:text> </xsl:text></xsl:param></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>
This parameter allows you to control the punctuation of certain
types of generated cross reference text.
When cross reference text is generated for an
<sgmltag class="element">xref</sgmltag> or
<sgmltag class="element">olink</sgmltag> element
using an <sgmltag class="attribute">xrefstyle</sgmltag> attribute
that makes use of the <literal moreinfo="none">select:</literal> feature,
and the selected components include both title and page number,
then the value of this parameter is inserted between
title and page number in the output.
</para>
</refsect1>
</refentry>
</reference>
<reference><title>Property Sets</title>
<refentry id="formal.object.properties">
<refnamediv>
<refname>formal.object.properties</refname>
<refpurpose>Properties associated with a formal object such as a figure, or other component that has a title</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="formal.object.properties.frag">
<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-together.within-column">always</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for formal objects in docbook. Specify the spacing
before and after the object.</para>
</refsect1>
</refentry>
<refentry id="formal.title.properties">
<refnamediv>
<refname>formal.title.properties</refname>
<refpurpose>Style the title element of formal object such as a figure.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="formal.title.properties.frag">
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
<xsl:attribute name="hyphenate">false</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
<xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify how the title should be styled. Specify the font size and weight of the title of the formal object.</para>
</refsect1>
</refentry>
<refentry id="informal.object.properties">
<refnamediv>
<refname>informal.object.properties</refname>
<refpurpose>Properties associated with a formal object such as a figure, or other component that has a title</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="informal.object.properties.frag"><xsl:attribute-set name="informal.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-set></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for informal objects in docbook. Specify the spacing before and after the object.</para>
</refsect1>
</refentry>
<refentry id="monospace.properties">
<refmeta>
<refentrytitle>monospace.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>monospace.properties</refname>
<refpurpose>Properties of monospaced content</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="monospace.properties.frag">
<xsl:attribute-set name="monospace.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$monospace.font.family"></xsl:value-of>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specifies the font name for monospaced output. This property set
used to set the font-size as well, but that doesn't work very well
when different fonts are used (as they are in titles and paragraphs,
for example).</para>
<para>If you want to set the font-size in a customization layer, it's
probably going to be more appropriate to set font-size-adjust, if your
formatter supports it.</para>
</refsect1>
</refentry>
<refentry id="verbatim.properties">
<refnamediv>
<refname>verbatim.properties</refname>
<refpurpose>Properties associated with verbatim text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="verbatim.properties.frag">
<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 name="space-after.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
</xsl:attribute-set></programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This attribute set is used on all verbatim environments.</para>
</refsect1>
</refentry>
<refentry id="monospace.verbatim.properties">
<refnamediv>
<refname>monospace.verbatim.properties</refname>
<refpurpose>What font and size do you want for monospaced content?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="monospace.verbatim.properties.frag">
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
<xsl:attribute name="text-align">start</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Specify the font name and size you want for monospaced output</para>
</refsect1>
</refentry>
<refentry id="sidebar.properties">
<refmeta>
<refentrytitle>sidebar.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>sidebar.properties</refname>
<refpurpose>Attribute set for sidebar properties</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="sidebar.properties.frag">
<xsl:attribute-set name="sidebar.properties" use-attribute-sets="formal.object.properties">
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">1pt</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
<xsl:attribute name="padding-left">12pt</xsl:attribute>
<xsl:attribute name="padding-right">12pt</xsl:attribute>
<xsl:attribute name="padding-top">6pt</xsl:attribute>
<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
<!--
<xsl:attribute name="margin-left">12pt</xsl:attribute>
<xsl:attribute name="margin-right">12pt</xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
-->
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for sidebars.</para>
</refsect1>
</refentry>
<refentry id="section.title.properties">
<refmeta>
<refentrytitle>section.title.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.properties</refname>
<refpurpose>Properties for section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.properties.frag">
<xsl:attribute-set name="section.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<!-- font size is calculated dynamically by section.heading template -->
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties common to all section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level1.properties">
<refmeta>
<refentrytitle>section.title.level1.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level1.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level1.properties.frag">
<xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 2.0736"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-1 section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level2.properties">
<refmeta>
<refentrytitle>section.title.level2.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level2.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level2.properties.frag">
<xsl:attribute-set name="section.title.level2.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.728"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-2 section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level3.properties">
<refmeta>
<refentrytitle>section.title.level3.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level3.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level3.properties.frag">
<xsl:attribute-set name="section.title.level3.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.44"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-3 section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level4.properties">
<refmeta>
<refentrytitle>section.title.level4.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level4.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level4.properties.frag">
<xsl:attribute-set name="section.title.level4.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-4 section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level5.properties">
<refmeta>
<refentrytitle>section.title.level5.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level5.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level5.properties.frag">
<xsl:attribute-set name="section.title.level5.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-5 section titles.</para>
</refsect1>
</refentry>
<refentry id="section.title.level6.properties">
<refmeta>
<refentrytitle>section.title.level6.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.title.level6.properties</refname>
<refpurpose>Properties for level-1 section titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.title.level6.properties.frag">
<xsl:attribute-set name="section.title.level6.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-6 section titles. This property set is actually
used for all titles below level 5.</para>
</refsect1>
</refentry>
<refentry id="section.properties">
<refmeta>
<refentrytitle>section.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.properties</refname>
<refpurpose>Properties for all section levels</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.properties.frag">
<xsl:attribute-set name="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of all section levels, and therefore apply to
the whole section.
This attribute set is inherited by the
more specific attribute sets such as
<sgmltag>section.level1.properties</sgmltag>.
The default is empty.
</para>
</refsect1>
</refentry>
<refentry id="section.level1.properties">
<refmeta>
<refentrytitle>section.level1.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level1.properties</refname>
<refpurpose>Properties for level-1 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level1.properties.frag">
<xsl:attribute-set name="section.level1.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level-1 section, and therefore apply to
the whole section. This includes <sgmltag>sect1</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 1.
</para>
<para>For example, you could start each level-1 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level1.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="section.level2.properties">
<refmeta>
<refentrytitle>section.level2.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level2.properties</refname>
<refpurpose>Properties for level-2 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level2.properties.frag">
<xsl:attribute-set name="section.level2.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level-2 section, and therefore apply to
the whole section. This includes <sgmltag>sect2</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 2.
</para>
<para>For example, you could start each level-2 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level2.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="section.level3.properties">
<refmeta>
<refentrytitle>section.level3.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level3.properties</refname>
<refpurpose>Properties for level-3 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level3.properties.frag">
<xsl:attribute-set name="section.level3.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level-3 section, and therefore apply to
the whole section. This includes <sgmltag>sect3</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 3.
</para>
<para>For example, you could start each level-3 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level3.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="section.level4.properties">
<refmeta>
<refentrytitle>section.level4.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level4.properties</refname>
<refpurpose>Properties for level-4 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level4.properties.frag">
<xsl:attribute-set name="section.level4.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level-4 section, and therefore apply to
the whole section. This includes <sgmltag>sect4</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 4.
</para>
<para>For example, you could start each level-4 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level4.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="section.level5.properties">
<refmeta>
<refentrytitle>section.level5.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level5.properties</refname>
<refpurpose>Properties for level-5 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level5.properties.frag">
<xsl:attribute-set name="section.level5.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level-5 section, and therefore apply to
the whole section. This includes <sgmltag>sect5</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 5.
</para>
<para>For example, you could start each level-5 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level5.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="section.level6.properties">
<refmeta>
<refentrytitle>section.level6.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level6.properties</refname>
<refpurpose>Properties for level-6 sections</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="section.level6.properties.frag">
<xsl:attribute-set name="section.level6.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties that apply to the containing
block of a level 6 or lower section, and therefore apply to
the whole section. This includes
<sgmltag>section</sgmltag> elements at level 6 and lower.
</para>
<para>For example, you could start each level-6 section on
a new page by using:</para>
<programlisting format="linespecific"><xsl:attribute-set name="section.level6.properties">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
</programlisting>
<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>
</refsect1>
</refentry>
<refentry id="figure.properties">
<refnamediv>
<refname>figure.properties</refname>
<refpurpose>Properties associated with a figure</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="figure.properties.frag">
<xsl:attribute-set name="figure.properties" use-attribute-sets="formal.object.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for figures.</para>
</refsect1>
</refentry>
<refentry id="example.properties">
<refnamediv>
<refname>example.properties</refname>
<refpurpose>Properties associated with a example</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="example.properties.frag">
<xsl:attribute-set name="example.properties" use-attribute-sets="formal.object.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for examples.</para>
</refsect1>
</refentry>
<refentry id="equation.properties">
<refnamediv>
<refname>equation.properties</refname>
<refpurpose>Properties associated with a equation</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="equation.properties.frag">
<xsl:attribute-set name="equation.properties" use-attribute-sets="formal.object.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for equations.</para>
</refsect1>
</refentry>
<refentry id="table.properties">
<refnamediv>
<refname>table.properties</refname>
<refpurpose>Properties associated with the block surrounding a table</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="table.properties.frag">
<xsl:attribute-set name="table.properties" use-attribute-sets="formal.object.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Block styling properties for tables. This parameter should really
have been called <literal moreinfo="none">table.block.properties</literal> or something
like that, but weâre leaving it to avoid backwards-compatibility
problems.</para>
<para>See also <parameter moreinfo="none">table.table.properties</parameter>.</para>
</refsect1>
</refentry>
<refentry id="procedure.properties">
<refnamediv>
<refname>procedure.properties</refname>
<refpurpose>Properties associated with a procedure</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="procedure.properties.frag">
<xsl:attribute-set name="procedure.properties" use-attribute-sets="formal.object.properties"></xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The styling for procedures.</para>
</refsect1>
</refentry>
<refentry id="root.properties">
<refmeta>
<refentrytitle>root.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>root.properties</refname>
<refpurpose>The properties of the fo:root element</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="root.properties.frag">
<xsl:attribute-set name="root.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.size"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="text-align">
<xsl:value-of select="$alignment"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="line-height">
<xsl:value-of select="$line-height"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This property set is used on the <sgmltag>fo:root</sgmltag> element of
an FO file. It defines a set of default, global parameters.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.properties">
<refmeta>
<refentrytitle>qanda.title.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.properties</refname>
<refpurpose>Properties for qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.properties.frag">
<xsl:attribute-set name="qanda.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<!-- font size is calculated dynamically by qanda.heading template -->
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties common to all qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level1.properties">
<refmeta>
<refentrytitle>qanda.title.level1.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level1.properties</refname>
<refpurpose>Properties for level-1 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level1.properties.frag">
<xsl:attribute-set name="qanda.title.level1.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 2.0736"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-1 qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level2.properties">
<refmeta>
<refentrytitle>qanda.title.level2.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level2.properties</refname>
<refpurpose>Properties for level-2 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level2.properties.frag">
<xsl:attribute-set name="qanda.title.level2.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.728"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-2 qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level3.properties">
<refmeta>
<refentrytitle>qanda.title.level3.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level3.properties</refname>
<refpurpose>Properties for level-3 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level3.properties.frag">
<xsl:attribute-set name="qanda.title.level3.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.44"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-3 qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level4.properties">
<refmeta>
<refentrytitle>qanda.title.level4.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level4.properties</refname>
<refpurpose>Properties for level-4 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level4.properties.frag">
<xsl:attribute-set name="qanda.title.level4.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-4 qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level5.properties">
<refmeta>
<refentrytitle>qanda.title.level5.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level5.properties</refname>
<refpurpose>Properties for level-5 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level5.properties.frag">
<xsl:attribute-set name="qanda.title.level5.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-5 qanda set titles.</para>
</refsect1>
</refentry>
<refentry id="qanda.title.level6.properties">
<refmeta>
<refentrytitle>qanda.title.level6.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>qanda.title.level6.properties</refname>
<refpurpose>Properties for level-6 qanda set titles</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="qanda.title.level6.properties.frag">
<xsl:attribute-set name="qanda.title.level6.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties of level-6 qanda set titles.
This property set is actually
used for all titles below level 5.</para>
</refsect1>
</refentry>
<refentry id="article.appendix.title.properties">
<refmeta>
<refentrytitle>article.appendix.title.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>article.appendix.title.properties</refname>
<refpurpose>Properties for appendix titles that appear in an article</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="article.appendix.title.properties.frag">
<xsl:attribute-set name="article.appendix.title.properties" use-attribute-sets="section.title.properties section.title.level1.properties">
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"></xsl:value-of>
</xsl:attribute>
</xsl:attribute-set>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The properties for the title of an appendix that
appears inside an article. The default is to use
the properties of sect1 titles.</para>
</refsect1>
</refentry>
</reference>
<reference><title>Profiling</title>
<partintro>
<para>Following parameters can be used for attribute value based
profiling of your document. For more info about profiling look at
<ulink url="http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html">http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html</ulink>.</para>
</partintro>
<refentry id="profile.arch">
<refmeta>
<refentrytitle>profile.arch</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.arch</refname>
<refpurpose>Target profile for <sgmltag class="attribute">arch</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.arch.frag">
<xsl:param name="profile.arch" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.condition">
<refmeta>
<refentrytitle>profile.condition</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.condition</refname>
<refpurpose>Target profile for <sgmltag class="attribute">condition</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.condition.frag">
<xsl:param name="profile.condition" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.conformance">
<refmeta>
<refentrytitle>profile.conformance</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.conformance</refname>
<refpurpose>Target profile for <sgmltag class="attribute">conformance</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.conformance.frag">
<xsl:param name="profile.conformance" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.lang">
<refmeta>
<refentrytitle>profile.lang</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.lang</refname>
<refpurpose>Target profile for <sgmltag class="attribute">lang</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.lang.frag">
<xsl:param name="profile.lang" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.os">
<refmeta>
<refentrytitle>profile.os</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.os</refname>
<refpurpose>Target profile for <sgmltag class="attribute">os</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.os.frag">
<xsl:param name="profile.os" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.revision">
<refmeta>
<refentrytitle>profile.revision</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.revision</refname>
<refpurpose>Target profile for <sgmltag class="attribute">revision</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.revision.frag">
<xsl:param name="profile.revision" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.revisionflag">
<refmeta>
<refentrytitle>profile.revisionflag</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.revisionflag</refname>
<refpurpose>Target profile for <sgmltag class="attribute">revisionflag</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.revisionflag.frag">
<xsl:param name="profile.revisionflag" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.role">
<refmeta>
<refentrytitle>profile.role</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.role</refname>
<refpurpose>Target profile for <sgmltag class="attribute">role</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.role.frag">
<xsl:param name="profile.role" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
<warning>
<para>Note that <sgmltag class="attribute">role</sgmltag> is often
used for other purposes than profiling. For example it is commonly
used to get emphasize in bold font:</para>
<programlisting format="linespecific"><emphasis role="bold">very important</emphasis></programlisting>
<para>If you are using <sgmltag class="attribute">role</sgmltag> for
these purposes do not forget to add values like <literal moreinfo="none">bold</literal> to
value of this parameter. If you forgot you will get document with
small pieces missing which are very hard to track.</para>
<para>For this reason it is not recommended to use <sgmltag class="attribute">role</sgmltag> attribute for profiling. You should
rather use profiling specific attributes like <sgmltag class="attribute">userlevel</sgmltag>, <sgmltag class="attribute">os</sgmltag>, <sgmltag class="attribute">arch</sgmltag>, <sgmltag class="attribute">condition</sgmltag>, etc.</para>
</warning>
</refsect1>
</refentry>
<refentry id="profile.security">
<refmeta>
<refentrytitle>profile.security</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.security</refname>
<refpurpose>Target profile for <sgmltag class="attribute">security</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.security.frag">
<xsl:param name="profile.security" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.userlevel">
<refmeta>
<refentrytitle>profile.userlevel</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.userlevel</refname>
<refpurpose>Target profile for <sgmltag class="attribute">userlevel</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.userlevel.frag">
<xsl:param name="profile.userlevel" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.vendor">
<refmeta>
<refentrytitle>profile.vendor</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.vendor</refname>
<refpurpose>Target profile for <sgmltag class="attribute">vendor</sgmltag>
attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.vendor.frag">
<xsl:param name="profile.vendor" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.attribute">
<refmeta>
<refentrytitle>profile.attribute</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.attribute</refname>
<refpurpose>Name of user-specified profiling attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.attribute.frag">
<xsl:param name="profile.attribute" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>This parameter is used in conjuction with <link linkend="profile.value"><parameter moreinfo="none">profile.value</parameter></link>.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.value">
<refmeta>
<refentrytitle>profile.value</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.value</refname>
<refpurpose>Target profile for user-specified attribute</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.value.frag">
<xsl:param name="profile.value" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>When you are using this parameter you must also specify name of
profiling attribute with parameter <link linkend="profile.attribute"><parameter moreinfo="none">profile.attribute</parameter></link>.</para>
<para>Value of this parameter specifies profiles which should be
included in the output. You can specify multiple profiles by
separating them by semicolon. You can change separator character by
<link linkend="profile.separator"><parameter moreinfo="none">profile.separator</parameter></link>
parameter.</para>
<para>This parameter has effect only when you are using profiling
stylesheets (<filename moreinfo="none">profile-docbook.xsl</filename>,
<filename moreinfo="none">profile-chunk.xsl</filename>, â¦) instead of normal
ones (<filename moreinfo="none">docbook.xsl</filename>,
<filename moreinfo="none">chunk.xsl</filename>, â¦).</para>
</refsect1>
</refentry>
<refentry id="profile.separator">
<refmeta>
<refentrytitle>profile.separator</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>profile.separator</refname>
<refpurpose>Separator character for compound profile values</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="profile.separator.frag">
<xsl:param name="profile.separator" select="';'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>Separator character for compound profile values.</para>
</refsect1>
</refentry>
</reference>
<reference><title>Localization</title>
<refentry id="l10n.gentext.language">
<refmeta>
<refentrytitle>l10n.gentext.language</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>l10n.gentext.language</refname>
<refpurpose>Sets the gentext language</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="l10n.gentext.language.frag">
<xsl:param name="l10n.gentext.language" select="''"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If this parameter is set to any value other than the empty string, its
value will be used as the value for the language when generating text. Setting
<parameter moreinfo="none">l10n.gentext.language</parameter> overrides any settings within the
document being formatted.</para>
<para>It's much more likely that you might want to set the
<parameter moreinfo="none">l10n.gentext.default.language</parameter> parameter.</para>
</refsect1>
</refentry>
<refentry id="l10n.gentext.default.language">
<refmeta>
<refentrytitle>l10n.gentext.default.language</refentrytitle>
<refmiscinfo role="type">string</refmiscinfo>
</refmeta>
<refnamediv>
<refname>l10n.gentext.default.language</refname>
<refpurpose>Sets the default language for generated text</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="l10n.gentext.default.language.frag">
<xsl:param name="l10n.gentext.default.language" select="'en'"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The value of the <parameter moreinfo="none">l10n.gentext.default.language</parameter>
parameter is used as the language for generated text if no setting is provided
in the source document.</para>
</refsect1>
</refentry>
<refentry id="l10n.gentext.use.xref.language">
<refmeta>
<refentrytitle>l10n.gentext.use.xref.language</refentrytitle>
<refmiscinfo role="type">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>l10n.gentext.use.xref.language</refname>
<refpurpose>Use the language of target when generating cross-reference text?</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="l10n.gentext.use.xref.language.frag">
<xsl:param name="l10n.gentext.use.xref.language" select="0"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>If non-zero, the language of the target will be used when
generating cross reference text. Usually, the <quote>current</quote>
language is used when generating text (that is, the language of the
element that contains the cross-reference element). But setting this parameter
allows the language of the element <emphasis>pointed to</emphasis> to control
the generated text.</para>
<para>Consider the following example:</para>
<informalexample>
<programlisting format="linespecific"><para lang="en">See also <xref linkend="chap3"/>.</para>
</programlisting>
</informalexample>
<para>Suppose that Chapter 3 happens to be written in German.
If <parameter moreinfo="none">l10n.gentext.use.xref.language</parameter> is non-zero, the
resulting text will be something like this:</para>
<blockquote>
<para>See also Kapital 3.</para>
</blockquote>
<para>Where the more traditional rendering would be:</para>
<blockquote>
<para>See also Chapter 3.</para>
</blockquote>
</refsect1>
</refentry>
</reference>
<reference><title>EBNF</title>
<refentry id="ebnf.assignment">
<refmeta>
<refentrytitle>ebnf.assignment</refentrytitle>
<refmiscinfo role="type">rtf</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ebnf.assignment</refname>
<refpurpose>The EBNF production assignment operator</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ebnf.assignment.frag">
<xsl:param name="ebnf.assignment">
<fo:inline font-family="{$monospace.font.family}">
<xsl:text>::=</xsl:text>
</fo:inline>
</xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">ebnf.assignment</parameter> parameter determines what
text is used to show <quote>assignment</quote> in <sgmltag>production</sgmltag>s
in <sgmltag>productionset</sgmltag>s.</para>
<para>While <quote><literal moreinfo="none">::=</literal></quote> is common, so are several
other operators.</para>
</refsect1>
</refentry>
<refentry id="ebnf.statement.terminator">
<refmeta>
<refentrytitle>ebnf.statement.terminator</refentrytitle>
<refmiscinfo role="type">rtf</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ebnf.statement.terminator</refname>
<refpurpose>Punctuation that ends an EBNF statement.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting id="ebnf.statement.terminator.frag">
<xsl:param name="ebnf.statement.terminator"></xsl:param>
</programlisting>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>The <parameter moreinfo="none">ebnf.statement.terminator</parameter> parameter determines what
text is used to terminate each <sgmltag>production</sgmltag>
in <sgmltag>productionset</sgmltag>.</para>
<para>Some notations end each statement with a period.</para>
</refsect1>
</refentry>
</reference>
<appendix><title>The Stylesheet</title>
<para>The <filename moreinfo="none">param.xsl</filename> stylesheet is just a wrapper
around all these parameters.</para>
<programlisting id="top">
<xsl:stylesheet exclude-result-prefixes="src" version="1.0">
<!-- This file is generated from param.xweb; do not edit this file! -->
<!-- ********************************************************************
$Id: param.xml,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://nwalsh.com/docbook/xsl/ for copyright
and other information.
******************************************************************** -->
<src:fragref linkend="admon.graphics.extension.frag"></src:fragref>
<src:fragref linkend="admon.graphics.frag"></src:fragref>
<src:fragref linkend="admon.graphics.path.frag"></src:fragref>
<src:fragref linkend="admon.textlabel.frag"></src:fragref>
<src:fragref linkend="admonition.properties.frag"></src:fragref>
<src:fragref linkend="admonition.title.properties.frag"></src:fragref>
<src:fragref linkend="alignment.frag"></src:fragref>
<src:fragref linkend="appendix.autolabel.frag"></src:fragref>
<src:fragref linkend="arbortext.extensions.frag"></src:fragref>
<src:fragref linkend="article.appendix.title.properties.frag"></src:fragref>
<src:fragref linkend="author.othername.in.middle.frag"></src:fragref>
<src:fragref linkend="autotoc.label.separator.frag"></src:fragref>
<src:fragref linkend="axf.extensions.frag"></src:fragref>
<src:fragref linkend="biblioentry.item.separator.frag"></src:fragref>
<src:fragref linkend="bibliography.collection.frag"></src:fragref>
<src:fragref linkend="bibliography.numbered.frag"></src:fragref>
<src:fragref linkend="blockquote.properties.frag"></src:fragref>
<src:fragref linkend="body.font.family.frag"></src:fragref>
<src:fragref linkend="body.font.master.frag"></src:fragref>
<src:fragref linkend="body.font.size.frag"></src:fragref>
<src:fragref linkend="body.margin.bottom.frag"></src:fragref>
<src:fragref linkend="body.margin.top.frag"></src:fragref>
<src:fragref linkend="bridgehead.in.toc.frag"></src:fragref>
<src:fragref linkend="callout.defaultcolumn.frag"></src:fragref>
<src:fragref linkend="callout.graphics.extension.frag"></src:fragref>
<src:fragref linkend="callout.graphics.frag"></src:fragref>
<src:fragref linkend="callout.graphics.number.limit.frag"></src:fragref>
<src:fragref linkend="callout.graphics.path.frag"></src:fragref>
<src:fragref linkend="callout.unicode.font.frag"></src:fragref>
<src:fragref linkend="callout.unicode.frag"></src:fragref>
<src:fragref linkend="callout.unicode.number.limit.frag"></src:fragref>
<src:fragref linkend="callout.unicode.start.character.frag"></src:fragref>
<src:fragref linkend="callouts.extension.frag"></src:fragref>
<src:fragref linkend="chapter.autolabel.frag"></src:fragref>
<src:fragref linkend="column.count.back.frag"></src:fragref>
<src:fragref linkend="column.count.body.frag"></src:fragref>
<src:fragref linkend="column.count.front.frag"></src:fragref>
<src:fragref linkend="column.count.index.frag"></src:fragref>
<src:fragref linkend="column.count.lot.frag"></src:fragref>
<src:fragref linkend="column.count.titlepage.frag"></src:fragref>
<src:fragref linkend="column.gap.back.frag"></src:fragref>
<src:fragref linkend="column.gap.body.frag"></src:fragref>
<src:fragref linkend="column.gap.front.frag"></src:fragref>
<src:fragref linkend="column.gap.index.frag"></src:fragref>
<src:fragref linkend="column.gap.lot.frag"></src:fragref>
<src:fragref linkend="column.gap.titlepage.frag"></src:fragref>
<src:fragref linkend="compact.list.item.spacing.frag"></src:fragref>
<src:fragref linkend="current.docid.frag"></src:fragref>
<src:fragref linkend="default.float.class.frag"></src:fragref>
<src:fragref linkend="default.image.width.frag"></src:fragref>
<src:fragref linkend="default.table.width.frag"></src:fragref>
<src:fragref linkend="default.units.frag"></src:fragref>
<src:fragref linkend="dingbat.font.family.frag"></src:fragref>
<src:fragref linkend="double.sided.frag"></src:fragref>
<src:fragref linkend="draft.mode.frag"></src:fragref>
<src:fragref linkend="draft.watermark.image.frag"></src:fragref>
<src:fragref linkend="ebnf.assignment.frag"></src:fragref>
<src:fragref linkend="ebnf.statement.terminator.frag"></src:fragref>
<src:fragref linkend="equation.properties.frag"></src:fragref>
<src:fragref linkend="example.properties.frag"></src:fragref>
<src:fragref linkend="figure.properties.frag"></src:fragref>
<src:fragref linkend="firstterm.only.link.frag"></src:fragref>
<src:fragref linkend="footer.content.properties.frag"></src:fragref>
<src:fragref linkend="footer.rule.frag"></src:fragref>
<src:fragref linkend="footer.column.widths.frag"></src:fragref>
<src:fragref linkend="footers.on.blank.pages.frag"></src:fragref>
<src:fragref linkend="footnote.font.size.frag"></src:fragref>
<src:fragref linkend="footnote.number.format.frag"></src:fragref>
<src:fragref linkend="footnote.number.symbols.frag"></src:fragref>
<src:fragref linkend="fop.extensions.frag"></src:fragref>
<src:fragref linkend="formal.object.properties.frag"></src:fragref>
<src:fragref linkend="formal.procedures.frag"></src:fragref>
<src:fragref linkend="formal.title.placement.frag"></src:fragref>
<src:fragref linkend="formal.title.properties.frag"></src:fragref>
<src:fragref linkend="funcsynopsis.decoration.frag"></src:fragref>
<src:fragref linkend="funcsynopsis.style.frag"></src:fragref>
<src:fragref linkend="function.parens.frag"></src:fragref>
<src:fragref linkend="generate.index.frag"></src:fragref>
<src:fragref linkend="generate.section.toc.level.frag"></src:fragref>
<src:fragref linkend="generate.toc.frag"></src:fragref>
<src:fragref linkend="glossary.as.blocks.frag"></src:fragref>
<src:fragref linkend="glossary.collection.frag"></src:fragref>
<src:fragref linkend="glossentry.show.acronym.frag"></src:fragref>
<src:fragref linkend="glosslist.as.blocks.frag"></src:fragref>
<src:fragref linkend="glossterm.auto.link.frag"></src:fragref>
<src:fragref linkend="glossterm.separation.frag"></src:fragref>
<src:fragref linkend="glossterm.width.frag"></src:fragref>
<src:fragref linkend="graphic.default.extension.frag"></src:fragref>
<src:fragref linkend="header.content.properties.frag"></src:fragref>
<src:fragref linkend="header.rule.frag"></src:fragref>
<src:fragref linkend="header.column.widths.frag"></src:fragref>
<src:fragref linkend="headers.on.blank.pages.frag"></src:fragref>
<src:fragref linkend="hyphenate.frag"></src:fragref>
<src:fragref linkend="ignore.image.scaling.frag"></src:fragref>
<src:fragref linkend="informal.object.properties.frag"></src:fragref>
<src:fragref linkend="index.preferred.page.properties.frag"></src:fragref>
<src:fragref linkend="insert.xref.page.number.frag"></src:fragref>
<src:fragref linkend="l10n.gentext.default.language.frag"></src:fragref>
<src:fragref linkend="l10n.gentext.language.frag"></src:fragref>
<src:fragref linkend="l10n.gentext.use.xref.language.frag"></src:fragref>
<src:fragref linkend="label.from.part.frag"></src:fragref>
<src:fragref linkend="line-height.frag"></src:fragref>
<src:fragref linkend="linenumbering.everyNth.frag"></src:fragref>
<src:fragref linkend="linenumbering.extension.frag"></src:fragref>
<src:fragref linkend="linenumbering.separator.frag"></src:fragref>
<src:fragref linkend="linenumbering.width.frag"></src:fragref>
<src:fragref linkend="list.block.spacing.frag"></src:fragref>
<src:fragref linkend="list.item.spacing.frag"></src:fragref>
<src:fragref linkend="make.index.markup.frag"></src:fragref>
<src:fragref linkend="make.single.year.ranges.frag"></src:fragref>
<src:fragref linkend="make.year.ranges.frag"></src:fragref>
<src:fragref linkend="marker.section.level.frag"></src:fragref>
<src:fragref linkend="menuchoice.menu.separator.frag"></src:fragref>
<src:fragref linkend="menuchoice.separator.frag"></src:fragref>
<src:fragref linkend="monospace.font.family.frag"></src:fragref>
<src:fragref linkend="monospace.properties.frag"></src:fragref>
<src:fragref linkend="monospace.verbatim.properties.frag"></src:fragref>
<src:fragref linkend="nominal.table.width.frag"></src:fragref>
<src:fragref linkend="normal.para.spacing.frag"></src:fragref>
<src:fragref linkend="olink.doctitle.frag"></src:fragref>
<src:fragref linkend="page.height.frag"></src:fragref>
<src:fragref linkend="page.height.portrait.frag"></src:fragref>
<src:fragref linkend="page.margin.bottom.frag"></src:fragref>
<src:fragref linkend="page.margin.inner.frag"></src:fragref>
<src:fragref linkend="page.margin.outer.frag"></src:fragref>
<src:fragref linkend="page.margin.top.frag"></src:fragref>
<src:fragref linkend="page.orientation.frag"></src:fragref>
<src:fragref linkend="page.width.frag"></src:fragref>
<src:fragref linkend="page.width.portrait.frag"></src:fragref>
<src:fragref linkend="paper.type.frag"></src:fragref>
<src:fragref linkend="part.autolabel.frag"></src:fragref>
<src:fragref linkend="passivetex.extensions.frag"></src:fragref>
<src:fragref linkend="preface.autolabel.frag"></src:fragref>
<src:fragref linkend="preferred.mediaobject.role.frag"></src:fragref>
<src:fragref linkend="procedure.properties.frag"></src:fragref>
<src:fragref linkend="process.empty.source.toc.frag"></src:fragref>
<src:fragref linkend="process.source.toc.frag"></src:fragref>
<src:fragref linkend="profile.arch.frag"></src:fragref>
<src:fragref linkend="profile.attribute.frag"></src:fragref>
<src:fragref linkend="profile.condition.frag"></src:fragref>
<src:fragref linkend="profile.conformance.frag"></src:fragref>
<src:fragref linkend="profile.lang.frag"></src:fragref>
<src:fragref linkend="profile.os.frag"></src:fragref>
<src:fragref linkend="profile.revision.frag"></src:fragref>
<src:fragref linkend="profile.revisionflag.frag"></src:fragref>
<src:fragref linkend="profile.role.frag"></src:fragref>
<src:fragref linkend="profile.security.frag"></src:fragref>
<src:fragref linkend="profile.separator.frag"></src:fragref>
<src:fragref linkend="profile.userlevel.frag"></src:fragref>
<src:fragref linkend="profile.value.frag"></src:fragref>
<src:fragref linkend="profile.vendor.frag"></src:fragref>
<src:fragref linkend="punct.honorific.frag"></src:fragref>
<src:fragref linkend="qanda.defaultlabel.frag"></src:fragref>
<src:fragref linkend="qanda.inherit.numeration.frag"></src:fragref>
<src:fragref linkend="qandadiv.autolabel.frag"></src:fragref>
<src:fragref linkend="qanda.title.level1.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.level2.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.level3.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.level4.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.level5.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.level6.properties.frag"></src:fragref>
<src:fragref linkend="qanda.title.properties.frag"></src:fragref>
<src:fragref linkend="refentry.generate.name.frag"></src:fragref>
<src:fragref linkend="refentry.generate.title.frag"></src:fragref>
<src:fragref linkend="refentry.pagebreak.frag"></src:fragref>
<src:fragref linkend="refentry.title.properties.frag"></src:fragref>
<src:fragref linkend="refentry.xref.manvolnum.frag"></src:fragref>
<src:fragref linkend="region.after.extent.frag"></src:fragref>
<src:fragref linkend="region.before.extent.frag"></src:fragref>
<src:fragref linkend="root.properties.frag"></src:fragref>
<src:fragref linkend="rootid.frag"></src:fragref>
<src:fragref linkend="runinhead.default.title.end.punct.frag"></src:fragref>
<src:fragref linkend="runinhead.title.end.punct.frag"></src:fragref>
<src:fragref linkend="sans.font.family.frag"></src:fragref>
<src:fragref linkend="section.autolabel.frag"></src:fragref>
<src:fragref linkend="section.label.includes.component.label.frag"></src:fragref>
<src:fragref linkend="section.title.level1.properties.frag"></src:fragref>
<src:fragref linkend="section.title.level2.properties.frag"></src:fragref>
<src:fragref linkend="section.title.level3.properties.frag"></src:fragref>
<src:fragref linkend="section.title.level4.properties.frag"></src:fragref>
<src:fragref linkend="section.title.level5.properties.frag"></src:fragref>
<src:fragref linkend="section.title.level6.properties.frag"></src:fragref>
<src:fragref linkend="section.title.properties.frag"></src:fragref>
<src:fragref linkend="section.level1.properties.frag"></src:fragref>
<src:fragref linkend="section.level2.properties.frag"></src:fragref>
<src:fragref linkend="section.level3.properties.frag"></src:fragref>
<src:fragref linkend="section.level4.properties.frag"></src:fragref>
<src:fragref linkend="section.level5.properties.frag"></src:fragref>
<src:fragref linkend="section.level6.properties.frag"></src:fragref>
<src:fragref linkend="section.properties.frag"></src:fragref>
<src:fragref linkend="segmentedlist.as.table.frag"></src:fragref>
<src:fragref linkend="shade.verbatim.frag"></src:fragref>
<src:fragref linkend="shade.verbatim.style.frag"></src:fragref>
<src:fragref linkend="show.comments.frag"></src:fragref>
<src:fragref linkend="sidebar.properties.frag"></src:fragref>
<src:fragref linkend="subscript.properties.frag"></src:fragref>
<src:fragref linkend="superscript.properties.frag"></src:fragref>
<src:fragref linkend="symbol.font.family.frag"></src:fragref>
<src:fragref linkend="table.cell.border.color.frag"></src:fragref>
<src:fragref linkend="table.cell.border.style.frag"></src:fragref>
<src:fragref linkend="table.cell.border.thickness.frag"></src:fragref>
<src:fragref linkend="table.cell.padding.frag"></src:fragref>
<src:fragref linkend="table.footnote.number.format.frag"></src:fragref>
<src:fragref linkend="table.footnote.number.symbols.frag"></src:fragref>
<src:fragref linkend="table.frame.border.color.frag"></src:fragref>
<src:fragref linkend="table.frame.border.style.frag"></src:fragref>
<src:fragref linkend="table.frame.border.thickness.frag"></src:fragref>
<src:fragref linkend="table.properties.frag"></src:fragref>
<src:fragref linkend="tablecolumns.extension.frag"></src:fragref>
<src:fragref linkend="table.table.properties.frag"></src:fragref>
<src:fragref linkend="target.database.document.frag"></src:fragref>
<src:fragref linkend="tex.math.delims.frag"></src:fragref>
<src:fragref linkend="tex.math.in.alt.frag"></src:fragref>
<src:fragref linkend="textinsert.extension.frag"></src:fragref>
<src:fragref linkend="title.font.family.frag"></src:fragref>
<src:fragref linkend="title.margin.left.frag"></src:fragref>
<src:fragref linkend="toc.indent.width.frag"></src:fragref>
<src:fragref linkend="toc.margin.properties.frag"></src:fragref>
<src:fragref linkend="toc.section.depth.frag"></src:fragref>
<src:fragref linkend="ulink.footnote.number.format.frag"></src:fragref>
<src:fragref linkend="ulink.footnotes.frag"></src:fragref>
<src:fragref linkend="ulink.hyphenate.frag"></src:fragref>
<src:fragref linkend="ulink.show.frag"></src:fragref>
<src:fragref linkend="use.extensions.frag"></src:fragref>
<src:fragref linkend="use.local.olink.style.frag"></src:fragref>
<src:fragref linkend="use.role.as.xrefstyle.frag"></src:fragref>
<src:fragref linkend="use.role.for.mediaobject.frag"></src:fragref>
<src:fragref linkend="use.svg.frag"></src:fragref>
<src:fragref linkend="variablelist.as.blocks.frag"></src:fragref>
<src:fragref linkend="variablelist.max.termlength.frag"></src:fragref>
<src:fragref linkend="verbatim.properties.frag"></src:fragref>
<src:fragref linkend="xep.extensions.frag"></src:fragref>
<src:fragref linkend="xep.index.item.properties.frag"></src:fragref>
<src:fragref linkend="xref.label-page.separator.frag"></src:fragref>
<src:fragref linkend="xref.label-title.separator.frag"></src:fragref>
<src:fragref linkend="xref.properties.frag"></src:fragref>
<src:fragref linkend="xref.title-page.separator.frag"></src:fragref>
<src:fragref linkend="xref.with.number.and.title.frag"></src:fragref>
</xsl:stylesheet>
</programlisting>
</appendix>
</book>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/passivetex.xsl
Index: passivetex.xsl
===================================================================
<?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"
version='1.0'>
<!-- ********************************************************************
$Id: passivetex.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This extension stops PassiveTeX from merging subsequent '-' to
dashes. You must set passivetex.extensions to '1' if you want get
this functionality.
******************************************************************** -->
<xsl:template match="text()">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">
<xsl:call-template name="passivetex.dash.subst">
<xsl:with-param name="string" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="passivetex.dash.subst">
<xsl:param name="string"/>
<xsl:choose>
<xsl:when test="contains($string, '--')">
<xsl:variable name="rest">
<xsl:call-template name="passivetex.dash.subst">
<xsl:with-param name="string"
select="concat('-', substring-after($string, '--'))"/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="concat(substring-before($string, '--'),
'-​',
$rest)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/sections.xsl
Index: sections.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: sections.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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>
<xsl:variable name="level">
<xsl:call-template name="section.level">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:variable>
<!-- xsl:use-attribute-sets takes only a Qname, not a variable -->
<xsl:choose>
<xsl:when test="$level = 1">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level1.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:when>
<xsl:when test="$level = 2">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level2.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:when>
<xsl:when test="$level = 3">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level3.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:when>
<xsl:when test="$level = 4">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level4.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:when>
<xsl:when test="$level = 5">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level5.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level6.properties">
<xsl:call-template name="section.content"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="section.content">
<xsl:call-template name="section.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and (count(ancestor::section)+1) <= $generate.section.toc.level">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<xsl:apply-templates/>
</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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level1.properties">
<xsl:call-template name="section.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and (count(ancestor::section)+1) <= $generate.section.toc.level">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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="marker">
<xsl:choose>
<xsl:when test="$level <= $marker.section.level">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="title">
<xsl:apply-templates select="$section" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="titleabbrev">
<xsl:apply-templates select="$section" mode="titleabbrev.markup"/>
</xsl:variable>
<!-- Use for running head only if actual titleabbrev element -->
<xsl:variable name="titleabbrev.elem">
<xsl:if test="$section/titleabbrev">
<xsl:apply-templates select="$section" mode="titleabbrev.markup"/>
</xsl:if>
</xsl:variable>
<xsl:if test="$passivetex.extensions != 0">
<fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
fotex-bookmark-level="{$level + 2}"
fotex-bookmark-label="{$id}">
<xsl:value-of select="$titleabbrev"/>
</fotex:bookmark>
</xsl:if>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count(ancestor::*)-1"/>
</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="section.heading">
<xsl:with-param name="level" select="$level"/>
<xsl:with-param name="title" select="$title"/>
<xsl:with-param name="marker" select="$marker"/>
<xsl:with-param name="titleabbrev" select="$titleabbrev.elem"/>
</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:use-attribute-sets="section.level1.properties">
<xsl:call-template name="sect1.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 1">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}"
xsl:use-attribute-sets="section.level1.properties">
<xsl:call-template name="sect1.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 1">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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:use-attribute-sets="section.level2.properties">
<xsl:call-template name="sect2.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 2">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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:use-attribute-sets="section.level3.properties">
<xsl:call-template name="sect3.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 3">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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:use-attribute-sets="section.level4.properties">
<xsl:call-template name="sect4.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 4">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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:use-attribute-sets="section.level5.properties">
<xsl:call-template name="sect5.titlepage"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and $generate.section.toc.level >= 5">
<xsl:call-template name="section.toc"/>
<xsl:call-template name="section.toc.separator"/>
</xsl:if>
<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" select="1"/>
<xsl:param name="marker" select="1"/>
<xsl:param name="title"/>
<xsl:param name="titleabbrev"/>
<fo:block xsl:use-attribute-sets="section.title.properties">
<xsl:if test="$marker != 0">
<fo:marker marker-class-name="section.head.marker">
<xsl:choose>
<xsl:when test="$titleabbrev = ''">
<xsl:value-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$titleabbrev"/>
</xsl:otherwise>
</xsl:choose>
</fo:marker>
</xsl:if>
<xsl:choose>
<xsl:when test="$level=1">
<fo:block xsl:use-attribute-sets="section.title.level1.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=2">
<fo:block xsl:use-attribute-sets="section.title.level2.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=3">
<fo:block xsl:use-attribute-sets="section.title.level3.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=4">
<fo:block xsl:use-attribute-sets="section.title.level4.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=5">
<fo:block xsl:use-attribute-sets="section.title.level5.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block xsl:use-attribute-sets="section.title.level6.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</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'">1</xsl:when>
<xsl:when test="@renderas = 'sect2'">2</xsl:when>
<xsl:when test="@renderas = 'sect3'">3</xsl:when>
<xsl:when test="@renderas = 'sect4'">4</xsl:when>
<xsl:when test="@renderas = 'sect5'">5</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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/qandaset.xsl
Index: qandaset.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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="qandaset">
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="label-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'label-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="label-length">
<xsl:choose>
<xsl:when test="$label-width != ''">
<xsl:value-of select="$label-width"/>
</xsl:when>
<xsl:when test="descendant::label">
<xsl:call-template name="longest.term">
<xsl:with-param name="terms" select="descendant::label"/>
<xsl:with-param name="maxlength" select="20"/>
</xsl:call-template>
<xsl:text>em * 0.50</xsl:text>
</xsl:when>
<xsl:otherwise>2.5em</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:block id="{$id}">
<xsl:if test="blockinfo/title|info/title|title">
<xsl:apply-templates select="(blockinfo/title|info/title|title)[1]"/>
</xsl:if>
<xsl:apply-templates select="*[name(.) != 'title'
and name(.) != 'titleabbrev'
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-label-separation="0.2em">
<xsl:attribute name="provisional-distance-between-starts">
<xsl:choose>
<xsl:when test="$label-length != ''">
<xsl:value-of select="$label-length"/>
</xsl:when>
<xsl:otherwise>2.5em</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates select="qandaentry"/>
</fo:list-block>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="qandaset/blockinfo/title|qandset/info/title|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="qanda.heading">
<xsl:with-param name="level" select="$sectlvl + 1"/>
<xsl:with-param name="marker" select="0"/>
<xsl:with-param name="title">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="qandaset/blockinfo">
<!-- what should this template really do? -->
<xsl:apply-templates select="legalnotice" mode="titlepage.mode"/>
</xsl:template>
<xsl:template match="qandadiv">
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="label-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'label-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="label-length">
<xsl:choose>
<xsl:when test="$label-width != ''">
<xsl:value-of select="$label-width"/>
</xsl:when>
<xsl:when test="descendant::label">
<xsl:call-template name="longest.term">
<xsl:with-param name="terms" select="descendant::label"/>
<xsl:with-param name="maxlength" select="20"/>
</xsl:call-template>
<xsl:text>*0.6em</xsl:text>
</xsl:when>
<xsl:otherwise>2.5em</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:block id="{$id}">
<xsl:apply-templates select="(blockinfo/title|info/title|title)[1]"/>
<xsl:apply-templates select="*[name(.) != 'title'
and name(.) != 'titleabbrev'
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-label-separation="0.2em">
<xsl:attribute name="provisional-distance-between-starts">
<xsl:choose>
<xsl:when test="$label-length != ''">
<xsl:value-of select="$label-length"/>
</xsl:when>
<xsl:otherwise>2.5em</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates select="qandaentry"/>
</fo:list-block>
</xsl:if>
</fo:block>
</fo:block>
</xsl:template>
<xsl:template match="qandadiv/blockinfo/title|qandadiv/info/title|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="qanda.heading">
<xsl:with-param name="level" select="$sectlvl + 1 + count(ancestor::qandadiv)"/>
<xsl:with-param name="marker" select="0"/>
<xsl:with-param name="title">
<xsl:apply-templates select="parent::qandadiv" mode="label.markup"/>
<xsl:if test="$qandadiv.autolabel != 0">
<xsl:apply-templates select="." mode="intralabel.punctuation"/>
<xsl:text> </xsl:text>
</xsl:if>
<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"/>
<xsl:if test="$deflabel = 'number' and not(label)">
<xsl:apply-templates select="." mode="intralabel.punctuation"/>
</xsl:if>
</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:variable name="answer.label">
<xsl:apply-templates select="." mode="label.markup"/>
</xsl:variable>
<xsl:copy-of select="$answer.label"/>
</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:template name="qanda.heading">
<xsl:param name="level" select="1"/>
<xsl:param name="marker" select="0"/>
<xsl:param name="title"/>
<xsl:param name="titleabbrev"/>
<fo:block xsl:use-attribute-sets="qanda.title.properties">
<xsl:if test="$marker != 0">
<fo:marker marker-class-name="section.head.marker">
<xsl:choose>
<xsl:when test="$titleabbrev = ''">
<xsl:value-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$titleabbrev"/>
</xsl:otherwise>
</xsl:choose>
</fo:marker>
</xsl:if>
<xsl:choose>
<xsl:when test="$level=1">
<fo:block xsl:use-attribute-sets="qanda.title.level1.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=2">
<fo:block xsl:use-attribute-sets="qanda.title.level2.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=3">
<fo:block xsl:use-attribute-sets="qanda.title.level3.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=4">
<fo:block xsl:use-attribute-sets="qanda.title.level4.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=5">
<fo:block xsl:use-attribute-sets="qanda.title.level5.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block xsl:use-attribute-sets="qanda.title.level6.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/fop.xsl
Index: fop.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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 at volny.cz)
-->
<xsl:variable name="a-dia" select=
"'āăąćĉċčďđēĕėęěœĝğġģĥħĩīĭįıĵķĺļľŀłńņňŋōŏőŕŗřśŝşšţťŧũūŭůűųŵŷźżžĀĂĄĆĈĊČĎĐĒĔĖĘĚŒĜĞĠĢĤĦĨĪĬĮİĴĶĹĻĽĿŁŃŅŇŊŌŎŐŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽ'"/>
<xsl:variable name="a-asc" select=
"'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/>
<xsl:template match="*" mode="fop.outline">
<xsl:apply-templates select="*" mode="fop.outline"/>
</xsl:template>
<xsl:template match="set|book|part|reference|preface|chapter|appendix|article
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section"
mode="fop.outline">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="bookmark-label">
<xsl:apply-templates select="." mode="object.title.markup"/>
</xsl:variable>
<!-- Put the root element bookmark at the same level as its children -->
<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
<xsl:when test="parent::*">
<fox:outline internal-destination="{$id}">
<fox:label>
<xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
</fox:label>
<xsl:apply-templates select="*" mode="fop.outline"/>
</fox:outline>
</xsl:when>
<xsl:otherwise>
<fox:outline internal-destination="{$id}">
<fox:label>
<xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
</fox:label>
</fox:outline>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and (book|part|reference|preface|chapter|appendix|article
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section)">
<fox:outline internal-destination="toc...{$id}">
<fox:label>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</fox:label>
</fox:outline>
</xsl:if>
<xsl:apply-templates select="*" mode="fop.outline"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/htmltbl.xsl
Index: htmltbl.xsl
===================================================================
<?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: htmltbl.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="th.style">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="table|informaltable" mode="htmlTable">
<xsl:if test="tgroup/tbody/row
|tgroup/thead/row
|tgroup/tfoot/row">
<xsl:message terminate="yes">Broken table: row descendent of HTML table.</xsl:message>
</xsl:if>
<xsl:variable name="numcols">
<xsl:call-template name="widest-html-row">
<xsl:with-param name="rows" select=".//tr"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="caption">
<fo:table-and-caption>
<xsl:apply-templates select="caption" mode="htmlTable"/>
<fo:table table-layout="fixed">
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="@width">
<xsl:value-of select="@width"/>
</xsl:when>
<xsl:otherwise>100%</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="make-html-table-columns">
<xsl:with-param name="count" select="$numcols"/>
</xsl:call-template>
<xsl:apply-templates select="tbody|thead|tfoot" mode="htmlTable"/>
</fo:table>
</fo:table-and-caption>
</xsl:when>
<xsl:otherwise>
<fo:table table-layout="fixed">
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="@width">
<xsl:value-of select="@width"/>
</xsl:when>
<xsl:otherwise>100%</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="make-html-table-columns">
<xsl:with-param name="count" select="$numcols"/>
</xsl:call-template>
<xsl:apply-templates mode="htmlTable"/>
</fo:table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="caption" mode="htmlTable">
<fo:table-caption>
<fo:block>
<xsl:apply-templates select=".." mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</fo:block>
</fo:table-caption>
</xsl:template>
<xsl:template name="widest-html-row">
<xsl:param name="rows" select="''"/>
<xsl:param name="count" select="0"/>
<xsl:choose>
<xsl:when test="count($rows) = 0">
<xsl:value-of select="$count"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$count > count($rows[1]/*)">
<xsl:call-template name="widest-html-row">
<xsl:with-param name="rows" select="$rows[position() > 1]"/>
<xsl:with-param name="count" select="$count"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="widest-html-row">
<xsl:with-param name="rows" select="$rows[position() > 1]"/>
<xsl:with-param name="count" select="count($rows[1]/*)"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="make-html-table-columns">
<xsl:param name="count" select="0"/>
<xsl:param name="number" select="1"/>
<xsl:choose>
<xsl:when test="col|colgroup/col">
<xsl:for-each select="col|colgroup/col">
<fo:table-column>
<xsl:attribute name="column-number">
<xsl:number from="table" level="any" format="1"/>
</xsl:attribute>
<xsl:if test="@width">
<xsl:attribute name="column-width">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>
</fo:table-column>
</xsl:for-each>
</xsl:when>
<xsl:when test="$fop.extensions != 0">
<xsl:if test="$number <= $count">
<fo:table-column column-number="{$number}"
column-width="{6.5 div $count}in"/>
<xsl:call-template name="make-html-table-columns">
<xsl:with-param name="count" select="$count"/>
<xsl:with-param name="number" select="$number + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="tbody" mode="htmlTable">
<fo:table-body border-bottom-width="0.25pt"
border-bottom-style="solid"
border-bottom-color="black">
<xsl:apply-templates mode="htmlTable"/>
</fo:table-body>
</xsl:template>
<xsl:template match="td" mode="htmlTable">
<fo:table-cell>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="tfoot" mode="htmlTable">
<fo:table-footer>
<xsl:apply-templates mode="htmlTable"/>
</fo:table-footer>
</xsl:template>
<xsl:template match="th" mode="htmlTable">
<fo:table-cell xsl:use-attribute-sets="th.style">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="thead" mode="htmlTable">
<fo:table-header border-bottom-width="0.25pt"
border-bottom-style="solid"
border-bottom-color="black"
font-weight="bold">
<xsl:apply-templates mode="htmlTable"/>
</fo:table-header>
</xsl:template>
<xsl:template match="tr" mode="htmlTable">
<fo:table-row>
<xsl:apply-templates mode="htmlTable"/>
</fo:table-row>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/pi.xsl
Index: pi.xsl
===================================================================
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<!-- ********************************************************************
$Id: pi.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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:call-template name="pi-attribute">
<xsl:with-param name="pis" select="$pis"/>
<xsl:with-param name="attribute" select="$attribute"/>
</xsl:call-template>
</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)<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)<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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/glossary.xsl
Index: glossary.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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="glossary">
<xsl:call-template name="make-glossary"/>
</xsl:template>
<xsl:template match="glossdiv/title"/>
<xsl:template match="glossdiv/subtitle"/>
<xsl:template match="glossdiv/titleabbrev"/>
<!-- ==================================================================== -->
<xsl:template name="make-glossary">
<xsl:param name="divs" select="glossdiv"/>
<xsl:param name="entries" select="glossentry"/>
<xsl:param 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="presentation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glossary-presentation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="term-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glossterm-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="$term-width = ''">
<xsl:value-of select="$glossterm.width"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$term-width"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:block id="{$id}">
<xsl:call-template name="glossary.titlepage"/>
</fo:block>
<xsl:if test="$preamble">
<xsl:apply-templates select="$preamble"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$presentation = 'list'">
<xsl:apply-templates select="$divs" mode="glossary.as.list">
<xsl:with-param name="width" select="$width"/>
</xsl:apply-templates>
<xsl:if test="$entries">
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates select="$entries" mode="glossary.as.list"/>
</fo:list-block>
</xsl:if>
</xsl:when>
<xsl:when test="$presentation = 'blocks'">
<xsl:apply-templates select="$divs" mode="glossary.as.blocks"/>
<xsl:apply-templates select="$entries" mode="glossary.as.blocks"/>
</xsl:when>
<xsl:when test="$glossary.as.blocks != 0">
<xsl:apply-templates select="$divs" mode="glossary.as.blocks"/>
<xsl:apply-templates select="$entries" mode="glossary.as.blocks"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$divs" mode="glossary.as.list">
<xsl:with-param name="width" select="$width"/>
</xsl:apply-templates>
<xsl:if test="$entries">
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates select="$entries" mode="glossary.as.list"/>
</fo:list-block>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="book/glossary|/glossary" priority="2">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="make-glossary"/>
</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="glosslist">
<xsl:variable name="presentation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glosslist-presentation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="term-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glossterm-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="$term-width = ''">
<xsl:value-of select="$glossterm.width"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$term-width"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$presentation = 'list'">
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates mode="glossary.as.list"/>
</fo:list-block>
</xsl:when>
<xsl:when test="$presentation = 'blocks'">
<xsl:apply-templates mode="glossary.as.blocks"/>
</xsl:when>
<xsl:when test="$glosslist.as.blocks != 0">
<xsl:apply-templates mode="glossary.as.blocks"/>
</xsl:when>
<xsl:otherwise>
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates mode="glossary.as.list"/>
</fo:list-block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<!-- Glossary collection -->
<xsl:template match="glossary[@role='auto']" priority="2">
<xsl:variable name="collection" select="document($glossary.collection, .)"/>
<xsl:if test="$glossary.collection = ''">
<xsl:message>
<xsl:text>Warning: processing automatic glossary </xsl:text>
<xsl:text>without a glossary.collection file.</xsl:text>
</xsl:message>
</xsl:if>
<xsl:if test="not($collection) and $glossary.collection != ''">
<xsl:message>
<xsl:text>Warning: processing automatic glossary but unable to </xsl:text>
<xsl:text>open glossary.collection file '</xsl:text>
<xsl:value-of select="$glossary.collection"/>
<xsl:text>'</xsl:text>
</xsl:message>
</xsl:if>
<xsl:call-template name="make-auto-glossary"/>
</xsl:template>
<xsl:template name="make-auto-glossary">
<xsl:param name="collection" select="document($glossary.collection, .)"/>
<xsl:param name="terms" select="//glossterm[not(parent::glossdef)]|//firstterm"/>
<xsl:param 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="presentation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glossary-presentation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="term-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'glossterm-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="$term-width = ''">
<xsl:value-of select="$glossterm.width"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$term-width"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$glossary.collection = ''">
<xsl:message>
<xsl:text>Warning: processing automatic glossary </xsl:text>
<xsl:text>without a glossary.collection file.</xsl:text>
</xsl:message>
</xsl:if>
<fo:block id="{$id}">
<xsl:call-template name="glossary.titlepage"/>
</fo:block>
<xsl:if test="$preamble">
<xsl:apply-templates select="$preamble"/>
</xsl:if>
<xsl:choose>
<xsl:when test="glossdiv and $collection//glossdiv">
<xsl:for-each select="$collection//glossdiv">
<!-- first see if there are any in this div -->
<xsl:variable name="exist.test">
<xsl:for-each select="glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:value-of select="glossterm"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$exist.test != ''">
<xsl:choose>
<xsl:when test="$presentation = 'list'">
<xsl:apply-templates select="." mode="auto-glossary-as-list">
<xsl:with-param name="width" select="$width"/>
<xsl:with-param name="terms" select="$terms"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$presentation = 'blocks'">
<xsl:apply-templates select="." mode="auto-glossary-as-blocks">
<xsl:with-param name="terms" select="$terms"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$glossary.as.blocks != 0">
<xsl:apply-templates select="." mode="auto-glossary-as-blocks">
<xsl:with-param name="terms" select="$terms"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="auto-glossary-as-list">
<xsl:with-param name="width" select="$width"/>
<xsl:with-param name="terms" select="$terms"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$presentation = 'list'">
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:for-each select="$collection//glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-list"/>
</xsl:if>
</xsl:for-each>
</fo:list-block>
</xsl:when>
<xsl:when test="$presentation = 'blocks'">
<xsl:for-each select="$collection//glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-blocks"/>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when test="$glossary.as.blocks != 0">
<xsl:for-each select="$collection//glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-blocks"/>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:for-each select="$collection//glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-list"/>
</xsl:if>
</xsl:for-each>
</fo:list-block>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="book/glossary[@role='auto']|/glossary[@role='auto']" priority="2.5">
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<xsl:if test="$glossary.collection = ''">
<xsl:message>
<xsl:text>Warning: processing automatic glossary </xsl:text>
<xsl:text>without a glossary.collection file.</xsl:text>
</xsl:message>
</xsl:if>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="make-auto-glossary"/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match="glossdiv" mode="auto-glossary-as-list">
<xsl:param name="width" select="$glossterm.width"/>
<xsl:param name="terms" select="."/>
<xsl:variable name="preamble"
select="*[not(self::title
or self::subtitle
or self::glossentry)]"/>
<xsl:call-template name="glossdiv.titlepage"/>
<xsl:apply-templates select="$preamble"/>
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:for-each select="glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-list"/>
</xsl:if>
</xsl:for-each>
</fo:list-block>
</xsl:template>
<xsl:template match="glossentry" mode="auto-glossary-as-list">
<xsl:apply-templates select="." mode="glossary.as.list"/>
</xsl:template>
<xsl:template match="glossdiv" mode="auto-glossary-as-blocks">
<xsl:param name="terms" select="."/>
<xsl:variable name="preamble"
select="*[not(self::title
or self::subtitle
or self::glossentry)]"/>
<xsl:call-template name="glossdiv.titlepage"/>
<xsl:apply-templates select="$preamble"/>
<xsl:for-each select="glossentry">
<xsl:variable name="cterm" select="glossterm"/>
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
<xsl:apply-templates select="." mode="auto-glossary-as-blocks"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="glossentry" mode="auto-glossary-as-blocks">
<xsl:apply-templates select="." mode="glossary.as.blocks"/>
</xsl:template>
<!-- ==================================================================== -->
<!-- Format glossary as a list -->
<xsl:template match="glossdiv" mode="glossary.as.list">
<xsl:param name="width" select="$glossterm.width"/>
<xsl:variable name="entries" select="glossentry"/>
<xsl:variable name="preamble"
select="*[not(self::title
or self::subtitle
or self::glossentry)]"/>
<xsl:call-template name="glossdiv.titlepage"/>
<xsl:apply-templates select="$preamble"/>
<fo:list-block provisional-distance-between-starts="{$width}"
provisional-label-separation="{$glossterm.separation}"
xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates select="$entries" mode="glossary.as.list"/>
</fo:list-block>
</xsl:template>
<!--
GlossEntry ::=
GlossTerm, Acronym?, Abbrev?,
(IndexTerm)*,
RevHistory?,
(GlossSee | GlossDef+)
-->
<xsl:template match="glossentry" mode="glossary.as.list">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:list-item xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="anchor">
<xsl:with-param name="conditional">
<xsl:choose>
<xsl:when test="$glossterm.auto.link != 0
or $glossary.collection != ''">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:choose>
<xsl:when test="$glossentry.show.acronym = 'primary'">
<xsl:choose>
<xsl:when test="acronym|abbrev">
<xsl:apply-templates select="acronym|abbrev" mode="glossary.as.list"/>
<xsl:text> (</xsl:text>
<xsl:apply-templates select="glossterm" mode="glossary.as.list"/>
<xsl:text>)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm" mode="glossary.as.list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$glossentry.show.acronym = 'yes'">
<xsl:apply-templates select="glossterm" mode="glossary.as.list"/>
<xsl:if test="acronym|abbrev">
<xsl:text> (</xsl:text>
<xsl:apply-templates select="acronym|abbrev" mode="glossary.as.list"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm" mode="glossary.as.list"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="indexterm"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<xsl:apply-templates select="glosssee|glossdef" mode="glossary.as.list"/>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
<xsl:template match="glossentry/glossterm" mode="glossary.as.list">
<xsl:apply-templates/>
<xsl:if test="following-sibling::glossterm">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/acronym" mode="glossary.as.list">
<xsl:apply-templates/>
<xsl:if test="following-sibling::acronym|following-sibling::abbrev">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/abbrev" mode="glossary.as.list">
<xsl:apply-templates/>
<xsl:if test="following-sibling::acronym|following-sibling::abbrev">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/revhistory" mode="glossary.as.list">
</xsl:template>
<xsl:template match="glossentry/glosssee" mode="glossary.as.list">
<xsl:variable name="otherterm" select="@otherterm"/>
<xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
<xsl:variable name="target" select="$targets[1]"/>
<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="$target">
<xsl:apply-templates select="$target" mode="xref-to"/>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:text>Warning: glosssee @otherterm reference not found: </xsl:text>
<xsl:value-of select="$otherterm"/>
</xsl:message>
<xsl:apply-templates mode="glossary.as.list"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="glossary.as.list"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>.</xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="glossentry/glossdef" mode="glossary.as.list">
<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" mode="glossary.as.list"/>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="glossentry/glossdef/para[1]|glossentry/glossdef/simpara[1]"
mode="glossary.as.list">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="glossseealso" mode="glossary.as.list">
<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="$target">
<xsl:apply-templates select="$target" mode="xref-to"/>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:text>Warning: glossseealso @otherterm reference not found: </xsl:text>
<xsl:value-of select="$otherterm"/>
</xsl:message>
<xsl:apply-templates mode="glossary.as.list"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="glossary.as.list"/>
</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>
<!-- ==================================================================== -->
<!-- Format glossary blocks -->
<xsl:template match="glossdiv" mode="glossary.as.blocks">
<xsl:variable name="entries" select="glossentry"/>
<xsl:variable name="preamble"
select="*[not(self::title
or self::subtitle
or self::glossentry)]"/>
<xsl:call-template name="glossdiv.titlepage"/>
<xsl:apply-templates select="$preamble"/>
<xsl:apply-templates select="$entries" mode="glossary.as.blocks"/>
</xsl:template>
<!--
GlossEntry ::=
GlossTerm, Acronym?, Abbrev?,
(IndexTerm)*,
RevHistory?,
(GlossSee | GlossDef+)
-->
<xsl:template match="glossentry" mode="glossary.as.blocks">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block xsl:use-attribute-sets="list.item.spacing"
keep-with-next.within-column="always"
keep-together.within-column="always">
<xsl:call-template name="anchor">
<xsl:with-param name="conditional">
<xsl:choose>
<xsl:when test="$glossterm.auto.link != 0
or $glossary.collection != ''">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
<xsl:choose>
<xsl:when test="$glossentry.show.acronym = 'primary'">
<xsl:choose>
<xsl:when test="acronym|abbrev">
<xsl:apply-templates select="acronym|abbrev" mode="glossary.as.blocks"/>
<xsl:text> (</xsl:text>
<xsl:apply-templates select="glossterm" mode="glossary.as.blocks"/>
<xsl:text>)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm" mode="glossary.as.blocks"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$glossentry.show.acronym = 'yes'">
<xsl:apply-templates select="glossterm" mode="glossary.as.blocks"/>
<xsl:if test="acronym|abbrev">
<xsl:text> (</xsl:text>
<xsl:apply-templates select="acronym|abbrev" mode="glossary.as.blocks"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm" mode="glossary.as.blocks"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="indexterm"/>
</fo:block>
<fo:block margin-left="0.25in">
<xsl:apply-templates select="glosssee|glossdef" mode="glossary.as.blocks"/>
</fo:block>
</xsl:template>
<xsl:template match="glossentry/glossterm" mode="glossary.as.blocks">
<xsl:apply-templates/>
<xsl:if test="following-sibling::glossterm">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/acronym" mode="glossary.as.blocks">
<xsl:apply-templates/>
<xsl:if test="following-sibling::acronym|following-sibling::abbrev">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/abbrev" mode="glossary.as.blocks">
<xsl:apply-templates/>
<xsl:if test="following-sibling::acronym|following-sibling::abbrev">, </xsl:if>
</xsl:template>
<xsl:template match="glossentry/glosssee" mode="glossary.as.blocks">
<xsl:variable name="otherterm" select="@otherterm"/>
<xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
<xsl:variable name="target" select="$targets[1]"/>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'glossary'"/>
<xsl:with-param name="name" select="'see'"/>
</xsl:call-template>
<xsl:choose>
<xsl:when test="$target">
<xsl:apply-templates select="$target" mode="xref-to"/>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:text>Warning: glosssee @otherterm reference not found: </xsl:text>
<xsl:value-of select="$otherterm"/>
</xsl:message>
<xsl:apply-templates mode="glossary.as.blocks"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="glossary.as.blocks"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>.</xsl:text>
</xsl:template>
<xsl:template match="glossentry/glossdef" mode="glossary.as.blocks">
<xsl:apply-templates select="*[local-name(.) != 'glossseealso']"
mode="glossary.as.blocks"/>
<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" mode="glossary.as.blocks"/>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="glossentry/glossdef/para[1]|glossentry/glossdef/simpara[1]"
mode="glossary.as.blocks">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- Handle any other glossdef content normally -->
<xsl:template match="*" mode="glossary.as.blocks">
<xsl:apply-templates select="." />
</xsl:template>
<xsl:template match="glossseealso" mode="glossary.as.blocks">
<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="$target">
<xsl:apply-templates select="$target" mode="xref-to"/>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:text>Warning: glossseealso @otherterm reference not found: </xsl:text>
<xsl:value-of select="$otherterm"/>
</xsl:message>
<xsl:apply-templates mode="glossary.as.blocks"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="glossary.as.blocks"/>
</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:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/footnote.xsl
Index: footnote.xsl
===================================================================
<?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:exsl="http://exslt.org/common"
exclude-result-prefixes="exsl"
version='1.0'>
<!-- ********************************************************************
$Id: footnote.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="format.footnote.mark">
<xsl:param name="mark" select="'?'"/>
<fo:inline font-size="90%">
<xsl:choose>
<xsl:when test="$fop.extensions != 0">
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="baseline-shift">super</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:copy-of select="$mark"/>
</fo:inline>
</xsl:template>
<xsl:template match="footnote">
<xsl:choose>
<xsl:when test="ancestor::tgroup">
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<fo:footnote>
<fo:inline>
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</fo:inline>
<fo:footnote-body font-family="{$body.fontset}"
font-size="{$footnote.font.size}"
font-weight="normal"
font-style="normal"
margin-left="0pc">
<xsl:apply-templates/>
</fo:footnote-body>
</fo:footnote>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="footnoteref">
<xsl:variable name="footnote" select="key('id', at linkend)"/>
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="$footnote" mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="footnote" mode="footnote.number">
<xsl:choose>
<xsl:when test="ancestor::tgroup">
<xsl:variable name="tfnum">
<xsl:number level="any" from="table|informaltable" format="1"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="string-length($table.footnote.number.symbols) >= $tfnum">
<xsl:value-of select="substring($table.footnote.number.symbols, $tfnum, 1)"/>
</xsl:when>
<xsl:otherwise>
<xsl:number level="any" from="tgroup"
format="{$table.footnote.number.format}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="pfoot" select="preceding::footnote"/>
<xsl:variable name="ptfoot" select="preceding::tgroup//footnote"/>
<xsl:variable name="fnum" select="count($pfoot) - count($ptfoot) + 1"/>
<xsl:choose>
<xsl:when test="string-length($footnote.number.symbols) >= $fnum">
<xsl:value-of select="substring($footnote.number.symbols, $fnum, 1)"/>
</xsl:when>
<xsl:otherwise>
<xsl:number value="$fnum" format="{$footnote.number.format}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="footnote.body.number">
<xsl:variable name="footnote.mark">
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="fo">
<xsl:apply-templates select="."/>
</xsl:variable>
<xsl:variable name="fo-nodes" select="exsl:node-set($fo)"/>
<xsl:choose>
<xsl:when test="$fo-nodes//fo:block">
<xsl:apply-templates select="$fo-nodes" mode="insert.fo.fnum">
<xsl:with-param name="mark" select="$footnote.mark"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$fo-nodes" mode="insert.fo.text">
<xsl:with-param name="mark" select="$footnote.mark"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</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:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="footnote" name="process.footnote" mode="table.footnote.mode">
<xsl:choose>
<xsl:when test="local-name(*[1]) = 'para' or local-name(*[1]) = 'simpara'">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:when>
<xsl:when test="function-available('exsl:node-set')">
<fo:block>
<xsl:apply-templates select="*[1]" mode="footnote.body.number"/>
<xsl:apply-templates select="*[position() > 1]"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>Warning: footnote number may not be generated </xsl:text>
<xsl:text>correctly; </xsl:text>
<xsl:value-of select="local-name(*[1])"/>
<xsl:text> unexpected as first child of footnote.</xsl:text>
</xsl:message>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/component.xsl
Index: component.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: component.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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:param name="pagewide" select="0"/>
<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:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="titleabbrev">
<xsl:apply-templates select="$node" mode="titleabbrev.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="$titleabbrev"/>
</fotex:bookmark>
</xsl:if>
<fo:block keep-with-next.within-column="always"
space-before.optimum="{$body.font.master}pt"
space-before.minimum="{$body.font.master * 0.8}pt"
space-before.maximum="{$body.font.master * 1.2}pt"
hyphenate="false">
<xsl:if test="$pagewide != 0">
<!-- Doesn't work to use 'all' here since not a child of fo:flow -->
<xsl:attribute name="span">inherit</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count($node/ancestor::*)"/>
</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="dedication" mode="dedication">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="not(preceding::chapter
or preceding::preface
or preceding::appendix
or preceding::article
or preceding::dedication
or parent::part
or parent::reference)">
<!-- if there is a preceding component or we're in a part, the -->
<!-- page numbering will already be adjusted -->
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:when>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="$double.sided = 0">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="dedication.titlepage"/>
</fo:block>
<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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="colophon.titlepage"/>
</fo:block>
<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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<!-- Page numbering for a preface doesn't restart; it continues from the ToC -->
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="preface.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<xsl:call-template name="component.toc"/>
<xsl:call-template name="component.toc.separator"/>
</xsl:if>
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match="preface/docinfo|prefaceinfo"></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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="not(preceding::chapter
or preceding::appendix
or preceding::article
or preceding::dedication
or parent::part
or parent::reference)">
<!-- if there is a preceding component or we're in a part, the -->
<!-- page numbering will already be adjusted -->
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:when>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="$double.sided = 0">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="chapter.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<xsl:call-template name="component.toc"/>
<xsl:call-template name="component.toc.separator"/>
</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-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="not(preceding::chapter
or preceding::appendix
or preceding::article
or preceding::dedication
or parent::part
or parent::reference)">
<!-- if there is a preceding component or we're in a part, the -->
<!-- page numbering will already be adjusted -->
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:when>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="$double.sided = 0">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="appendix.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<xsl:call-template name="component.toc"/>
<xsl:call-template name="component.toc.separator"/>
</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="article">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="not(preceding::chapter
or preceding::preface
or preceding::appendix
or preceding::article
or preceding::dedication
or parent::part
or parent::reference)">
<!-- if there is a preceding component or we're in a part, the -->
<!-- page numbering will already be adjusted -->
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:when>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="$double.sided = 0">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="article.titlepage"/>
</fo:block>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<xsl:call-template name="component.toc"/>
<xsl:call-template name="component.toc.separator"/>
</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>
<xsl:variable name="title">
<xsl:apply-templates select="." mode="title.markup"/>
</xsl:variable>
<xsl:variable name="titleabbrev">
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</xsl:variable>
<fo:block id='{$id}'>
<xsl:if test="$passivetex.extensions != 0">
<fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
fotex-bookmark-level="{count(ancestor::*)+2}"
fotex-bookmark-label="{$id}">
<xsl:value-of select="$titleabbrev"/>
</fotex:bookmark>
</xsl:if>
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count(ancestor::*)+2"/>
</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:value-of select="$titleabbrev"/>
</xsl:attribute>
</xsl:if>
<fo:block xsl:use-attribute-sets="article.appendix.title.properties">
<fo:marker marker-class-name="section.head.marker">
<xsl:choose>
<xsl:when test="$titleabbrev = ''">
<xsl:value-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$titleabbrev"/>
</xsl:otherwise>
</xsl:choose>
</fo:marker>
<xsl:copy-of select="$title"/>
</fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/param.xweb
Index: param.xweb
===================================================================
<!DOCTYPE book [
<!ENTITY % param.ent SYSTEM "param.ent">
%param.ent;
]>
<book xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<bookinfo>
<title>FO Parameter Reference</title>
<releaseinfo role="meta">
$Id: param.xweb,v 1.1.1.1 2004/10/19 21:21:44 juntao 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>
</bookinfo>
<preface><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 XSL FO 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 change the <literal>html.stylesheet</literal>
to <filename>reference.css</filename>, 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="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<xsl:param name="html.stylesheet">reference.css</xsl:param>
</xsl:stylesheet>]]></programlisting>
<para>Naturally, you have to change the
<sgmltag class='attribute'>href</sgmltag> attribute on
<literal><xsl:import></literal> to point to
<filename>docbook.xsl</filename> on your system. (Or
<filename>chunk.xsl</filename>, if you're using chunking.)</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>
</preface>
<reference><title>Admonitions</title>
&admon.graphics;
&admon.graphics.extension;
&admon.graphics.path;
&admon.textlabel;
&admonition.title.properties;
&admonition.properties;
</reference>
<reference><title>Callouts</title>
&callout.defaultcolumn;
&callout.graphics;
&callout.graphics.extension;
&callout.graphics.number.limit;
&callout.graphics.path;
&callout.unicode;
&callout.unicode.font;
&callout.unicode.number.limit;
&callout.unicode.start.character;
&callouts.extension;
</reference>
<reference><title>ToC/LoT/Index Generation</title>
&autotoc.label.separator;
&process.empty.source.toc;
&process.source.toc;
&generate.toc;
&generate.index;
&make.index.markup;
&index.preferred.page.properties;
&xep.index.item.properties;
&toc.section.depth;
&toc.indent.width;
&toc.margin.properties;
&bridgehead.in.toc;
&generate.section.toc.level;
<!--
annotate.toc;
bridgehead.in.toc;
manual.toc;
generate.section.toc.level;
-->
</reference>
<reference><title>Processor Extensions</title>
&arbortext.extensions;
&axf.extensions;
&fop.extensions;
&passivetex.extensions;
&tex.math.in.alt;
&tex.math.delims;
&xep.extensions;
</reference>
<reference><title>Stylesheet Extensions</title>
&linenumbering.everyNth;
&linenumbering.extension;
&linenumbering.separator;
&linenumbering.width;
&tablecolumns.extension;
&textinsert.extension;
&use.extensions;
</reference>
<reference><title>Automatic labelling</title>
&appendix.autolabel;
&chapter.autolabel;
&part.autolabel;
&preface.autolabel;
§ion.autolabel;
§ion.label.includes.component.label;
&label.from.part;
</reference>
<reference><title>XSLT Processing</title>
&rootid;
</reference>
<reference><title>Meta/*Info</title>
&make.single.year.ranges;
&make.year.ranges;
&author.othername.in.middle;
</reference>
<reference><title>Reference Pages</title>
&funcsynopsis.decoration;
&funcsynopsis.style;
&function.parens;
&refentry.generate.name;
&refentry.generate.title;
&refentry.pagebreak;
&refentry.title.properties;
&refentry.xref.manvolnum;
</reference>
<reference><title>Tables</title>
&default.table.width;
&nominal.table.width;
&table.cell.padding;
&table.frame.border.thickness;
&table.frame.border.style;
&table.frame.border.color;
&table.cell.border.thickness;
&table.cell.border.style;
&table.cell.border.color;
&table.table.properties;
</reference>
<reference><title>Linking</title>
&target.database.document;
&use.local.olink.style;
¤t.docid;
&olink.doctitle;
</reference>
<reference><title>QAndASet</title>
&qandadiv.autolabel;
&qanda.inherit.numeration;
&qanda.defaultlabel;
</reference>
<reference><title>Bibliography</title>
&biblioentry.item.separator;
&bibliography.collection;
&bibliography.numbered;
</reference>
<reference><title>Glossary</title>
&glossterm.auto.link;
&firstterm.only.link;
&glossary.collection;
&glossterm.separation;
&glossterm.width;
&glossary.as.blocks;
&glosslist.as.blocks;
&glossentry.show.acronym;
</reference>
<reference><title>Miscellaneous</title>
&formal.procedures;
&formal.title.placement;
&runinhead.default.title.end.punct;
&runinhead.title.end.punct;
&show.comments;
&punct.honorific;
&segmentedlist.as.table;
&variablelist.as.blocks;
&blockquote.properties;
&ulink.show;
&ulink.footnotes;
&ulink.footnote.number.format;
&ulink.hyphenate;
&shade.verbatim;
&shade.verbatim.style;
&use.svg;
&use.role.as.xrefstyle;
&menuchoice.separator;
&menuchoice.menu.separator;
&default.float.class;
&footnote.number.format;
&table.footnote.number.format;
&footnote.number.symbols;
&table.footnote.number.symbols;
&xref.with.number.and.title;
&superscript.properties;
&subscript.properties;
</reference>
<reference><title>Graphics</title>
&graphic.default.extension;
&default.image.width;
&preferred.mediaobject.role;
&use.role.for.mediaobject;
&ignore.image.scaling;
</reference>
<reference><title>Pagination and General Styles</title>
<partintro>
<section><title>Understanding XSL FO Margins</title>
<para>In order for the parameters in this section to make sense, it is useful to
consider <xref linkend="fig.pagemodel"/>.</para>
<figure id="fig.pagemodel">
<mediaobject>
<imageobject>
<imagedata fileref="page.png"/>
</imageobject>
<textobject><phrase>Figure showing page margins</phrase></textobject>
<textobject>
<para>This figure shows the physical page with the various FO page regions
identified.</para>
</textobject>
</mediaobject>
</figure>
<para>First, let's consider the regions on the page.</para>
<para>The white region is the physical page. Its dimensions are determined by
the <parameter>page.height</parameter> and <parameter>page.width</parameter>
parameters.</para>
<para>The yellow region is the region-body. The size and placement of
the region body is constrained by the dimensions labelled in the
figure.</para>
<para>The pink region at the top of the page is the region-before. The
darker area inside the region-before is the header text. In XSL, the default
display alignment for a region is <literal>before</literal>, but the
DocBook stylesheets still explicitly make it <literal>before</literal>. That's
why the darker area is at the top.</para>
<para>The pink region at the bottom of the page is the region-after.
The darker area is the footer text. In XSL, the default display
alignment for a region is <literal>before</literal>,
but the DocBook stylesheets explicitly make it
<literal>after</literal>. That's why the darker area is at the bottom.</para>
<para>The dimensions in the figure are:</para>
<orderedlist numeration="upperalpha">
<listitem><para>The page-master margin-top.
</para></listitem>
<listitem><para>The region-before extent.
</para></listitem>
<listitem><para>The region-body margin-top.
</para></listitem>
<listitem><para>The region-after extent.
</para></listitem>
<listitem><para>The page-master margin-bottom.
</para></listitem>
<listitem><para>The region-body margin-bottom.
</para></listitem>
<listitem><para>The sum of the page-master margin-left and the
region-body margin-left. In DocBook, the region-body margin-left is
zero by default, so this is simply the page-master region-left.
</para></listitem>
<listitem><para>The sum of the page-master margin-right and the
region-body margin-right. In DocBook, the region-body margin-right is
zero by default, so this is simply the page-master region-left.
</para></listitem>
</orderedlist>
</section>
</partintro>
&page.height;
&page.height.portrait;
&page.margin.bottom;
&page.margin.inner;
&page.margin.outer;
&page.margin.top;
&page.orientation;
&page.width;
&page.width.portrait;
&paper.type;
&double.sided;
&body.margin.bottom;
&body.margin.top;
&alignment;
&hyphenate;
&line-height;
&column.count.back;
&column.count.body;
&column.count.front;
&column.count.index;
&column.count.lot;
&column.count.titlepage;
&column.gap.back;
&column.gap.body;
&column.gap.front;
&column.gap.index;
&column.gap.lot;
&column.gap.titlepage;
®ion.after.extent;
®ion.before.extent;
&default.units;
&normal.para.spacing;
&body.font.master;
&body.font.size;
&footnote.font.size;
&title.margin.left;
&draft.mode;
&draft.watermark.image;
&headers.on.blank.pages;
&footers.on.blank.pages;
&header.rule;
&footer.rule;
&header.column.widths;
&footer.column.widths;
&header.content.properties;
&footer.content.properties;
&marker.section.level;
</reference>
<reference><title>Font Families</title>
&body.font.family;
&dingbat.font.family;
&monospace.font.family;
&sans.font.family;
&title.font.family;
&symbol.font.family;
</reference>
<reference><title>Lists</title>
&list.block.spacing;
&list.item.spacing;
&compact.list.item.spacing;
&variablelist.max.termlength;
</reference>
<reference><title>Cross References</title>
&insert.xref.page.number;
&xref.properties;
&xref.label-title.separator;
&xref.label-page.separator;
&xref.title-page.separator;
</reference>
<reference><title>Property Sets</title>
&formal.object.properties;
&formal.title.properties;
&informal.object.properties;
&monospace.properties;
&verbatim.properties;
&monospace.verbatim.properties;
&sidebar.properties;
§ion.title.properties;
§ion.title.level1.properties;
§ion.title.level2.properties;
§ion.title.level3.properties;
§ion.title.level4.properties;
§ion.title.level5.properties;
§ion.title.level6.properties;
§ion.properties;
§ion.level1.properties;
§ion.level2.properties;
§ion.level3.properties;
§ion.level4.properties;
§ion.level5.properties;
§ion.level6.properties;
&figure.properties;
&example.properties;
&equation.properties;
&table.properties;
&procedure.properties;
&root.properties;
&qanda.title.properties;
&qanda.title.level1.properties;
&qanda.title.level2.properties;
&qanda.title.level3.properties;
&qanda.title.level4.properties;
&qanda.title.level5.properties;
&qanda.title.level6.properties;
&article.appendix.title.properties;
</reference>
<reference><title>Profiling</title>
<partintro>
<para>Following parameters can be used for attribute value based
profiling of your document. For more info about profiling look at
<ulink
url="http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html">http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html</ulink>.</para>
</partintro>
&profile.arch;
&profile.condition;
&profile.conformance;
&profile.lang;
&profile.os;
&profile.revision;
&profile.revisionflag;
&profile.role;
&profile.security;
&profile.userlevel;
&profile.vendor;
&profile.attribute;
&profile.value;
&profile.separator;
</reference>
<reference><title>Localization</title>
&l10n.gentext.language;
&l10n.gentext.default.language;
&l10n.gentext.use.xref.language;
</reference>
<reference><title>EBNF</title>
&ebnf.assignment;
&ebnf.statement.terminator;
</reference>
<!--
<reference><title></title>
</reference>
-->
<appendix><title>The Stylesheet</title>
<para>The <filename>param.xsl</filename> stylesheet is just a wrapper
around all these parameters.</para>
<src:fragment id="top" mundane-result-prefixes="xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="src"
version='1.0'>
<!-- This file is generated from param.xweb; do not edit this file! -->
<!-- ********************************************************************
$Id: param.xweb,v 1.1.1.1 2004/10/19 21:21:44 juntao Exp $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://nwalsh.com/docbook/xsl/ for copyright
and other information.
******************************************************************** -->
<src:fragref linkend="admon.graphics.extension.frag"/>
<src:fragref linkend="admon.graphics.frag"/>
<src:fragref linkend="admon.graphics.path.frag"/>
<src:fragref linkend="admon.textlabel.frag"/>
<src:fragref linkend="admonition.properties.frag"/>
<src:fragref linkend="admonition.title.properties.frag"/>
<src:fragref linkend="alignment.frag"/>
<src:fragref linkend="appendix.autolabel.frag"/>
<src:fragref linkend="arbortext.extensions.frag"/>
<src:fragref linkend="article.appendix.title.properties.frag"/>
<src:fragref linkend="author.othername.in.middle.frag"/>
<src:fragref linkend="autotoc.label.separator.frag"/>
<src:fragref linkend="axf.extensions.frag"/>
<src:fragref linkend="biblioentry.item.separator.frag"/>
<src:fragref linkend="bibliography.collection.frag"/>
<src:fragref linkend="bibliography.numbered.frag"/>
<src:fragref linkend="blockquote.properties.frag"/>
<src:fragref linkend="body.font.family.frag"/>
<src:fragref linkend="body.font.master.frag"/>
<src:fragref linkend="body.font.size.frag"/>
<src:fragref linkend="body.margin.bottom.frag"/>
<src:fragref linkend="body.margin.top.frag"/>
<src:fragref linkend="bridgehead.in.toc.frag"/>
<src:fragref linkend="callout.defaultcolumn.frag"/>
<src:fragref linkend="callout.graphics.extension.frag"/>
<src:fragref linkend="callout.graphics.frag"/>
<src:fragref linkend="callout.graphics.number.limit.frag"/>
<src:fragref linkend="callout.graphics.path.frag"/>
<src:fragref linkend="callout.unicode.font.frag"/>
<src:fragref linkend="callout.unicode.frag"/>
<src:fragref linkend="callout.unicode.number.limit.frag"/>
<src:fragref linkend="callout.unicode.start.character.frag"/>
<src:fragref linkend="callouts.extension.frag"/>
<src:fragref linkend="chapter.autolabel.frag"/>
<src:fragref linkend="column.count.back.frag"/>
<src:fragref linkend="column.count.body.frag"/>
<src:fragref linkend="column.count.front.frag"/>
<src:fragref linkend="column.count.index.frag"/>
<src:fragref linkend="column.count.lot.frag"/>
<src:fragref linkend="column.count.titlepage.frag"/>
<src:fragref linkend="column.gap.back.frag"/>
<src:fragref linkend="column.gap.body.frag"/>
<src:fragref linkend="column.gap.front.frag"/>
<src:fragref linkend="column.gap.index.frag"/>
<src:fragref linkend="column.gap.lot.frag"/>
<src:fragref linkend="column.gap.titlepage.frag"/>
<src:fragref linkend="compact.list.item.spacing.frag"/>
<src:fragref linkend="current.docid.frag"/>
<src:fragref linkend="default.float.class.frag"/>
<src:fragref linkend="default.image.width.frag"/>
<src:fragref linkend="default.table.width.frag"/>
<src:fragref linkend="default.units.frag"/>
<src:fragref linkend="dingbat.font.family.frag"/>
<src:fragref linkend="double.sided.frag"/>
<src:fragref linkend="draft.mode.frag"/>
<src:fragref linkend="draft.watermark.image.frag"/>
<src:fragref linkend="ebnf.assignment.frag"/>
<src:fragref linkend="ebnf.statement.terminator.frag"/>
<src:fragref linkend="equation.properties.frag"/>
<src:fragref linkend="example.properties.frag"/>
<src:fragref linkend="figure.properties.frag"/>
<src:fragref linkend="firstterm.only.link.frag"/>
<src:fragref linkend="footer.content.properties.frag"/>
<src:fragref linkend="footer.rule.frag"/>
<src:fragref linkend="footer.column.widths.frag"/>
<src:fragref linkend="footers.on.blank.pages.frag"/>
<src:fragref linkend="footnote.font.size.frag"/>
<src:fragref linkend="footnote.number.format.frag"/>
<src:fragref linkend="footnote.number.symbols.frag"/>
<src:fragref linkend="fop.extensions.frag"/>
<src:fragref linkend="formal.object.properties.frag"/>
<src:fragref linkend="formal.procedures.frag"/>
<src:fragref linkend="formal.title.placement.frag"/>
<src:fragref linkend="formal.title.properties.frag"/>
<src:fragref linkend="funcsynopsis.decoration.frag"/>
<src:fragref linkend="funcsynopsis.style.frag"/>
<src:fragref linkend="function.parens.frag"/>
<src:fragref linkend="generate.index.frag"/>
<src:fragref linkend="generate.section.toc.level.frag"/>
<src:fragref linkend="generate.toc.frag"/>
<src:fragref linkend="glossary.as.blocks.frag"/>
<src:fragref linkend="glossary.collection.frag"/>
<src:fragref linkend="glossentry.show.acronym.frag"/>
<src:fragref linkend="glosslist.as.blocks.frag"/>
<src:fragref linkend="glossterm.auto.link.frag"/>
<src:fragref linkend="glossterm.separation.frag"/>
<src:fragref linkend="glossterm.width.frag"/>
<src:fragref linkend="graphic.default.extension.frag"/>
<src:fragref linkend="header.content.properties.frag"/>
<src:fragref linkend="header.rule.frag"/>
<src:fragref linkend="header.column.widths.frag"/>
<src:fragref linkend="headers.on.blank.pages.frag"/>
<src:fragref linkend="hyphenate.frag"/>
<src:fragref linkend="ignore.image.scaling.frag"/>
<src:fragref linkend="informal.object.properties.frag"/>
<src:fragref linkend="index.preferred.page.properties.frag"/>
<src:fragref linkend="insert.xref.page.number.frag"/>
<src:fragref linkend="l10n.gentext.default.language.frag"/>
<src:fragref linkend="l10n.gentext.language.frag"/>
<src:fragref linkend="l10n.gentext.use.xref.language.frag"/>
<src:fragref linkend="label.from.part.frag"/>
<src:fragref linkend="line-height.frag"/>
<src:fragref linkend="linenumbering.everyNth.frag"/>
<src:fragref linkend="linenumbering.extension.frag"/>
<src:fragref linkend="linenumbering.separator.frag"/>
<src:fragref linkend="linenumbering.width.frag"/>
<src:fragref linkend="list.block.spacing.frag"/>
<src:fragref linkend="list.item.spacing.frag"/>
<src:fragref linkend="make.index.markup.frag"/>
<src:fragref linkend="make.single.year.ranges.frag"/>
<src:fragref linkend="make.year.ranges.frag"/>
<src:fragref linkend="marker.section.level.frag"/>
<src:fragref linkend="menuchoice.menu.separator.frag"/>
<src:fragref linkend="menuchoice.separator.frag"/>
<src:fragref linkend="monospace.font.family.frag"/>
<src:fragref linkend="monospace.properties.frag"/>
<src:fragref linkend="monospace.verbatim.properties.frag"/>
<src:fragref linkend="nominal.table.width.frag"/>
<src:fragref linkend="normal.para.spacing.frag"/>
<src:fragref linkend="olink.doctitle.frag"/>
<src:fragref linkend="page.height.frag"/>
<src:fragref linkend="page.height.portrait.frag"/>
<src:fragref linkend="page.margin.bottom.frag"/>
<src:fragref linkend="page.margin.inner.frag"/>
<src:fragref linkend="page.margin.outer.frag"/>
<src:fragref linkend="page.margin.top.frag"/>
<src:fragref linkend="page.orientation.frag"/>
<src:fragref linkend="page.width.frag"/>
<src:fragref linkend="page.width.portrait.frag"/>
<src:fragref linkend="paper.type.frag"/>
<src:fragref linkend="part.autolabel.frag"/>
<src:fragref linkend="passivetex.extensions.frag"/>
<src:fragref linkend="preface.autolabel.frag"/>
<src:fragref linkend="preferred.mediaobject.role.frag"/>
<src:fragref linkend="procedure.properties.frag"/>
<src:fragref linkend="process.empty.source.toc.frag"/>
<src:fragref linkend="process.source.toc.frag"/>
<src:fragref linkend="profile.arch.frag"/>
<src:fragref linkend="profile.attribute.frag"/>
<src:fragref linkend="profile.condition.frag"/>
<src:fragref linkend="profile.conformance.frag"/>
<src:fragref linkend="profile.lang.frag"/>
<src:fragref linkend="profile.os.frag"/>
<src:fragref linkend="profile.revision.frag"/>
<src:fragref linkend="profile.revisionflag.frag"/>
<src:fragref linkend="profile.role.frag"/>
<src:fragref linkend="profile.security.frag"/>
<src:fragref linkend="profile.separator.frag"/>
<src:fragref linkend="profile.userlevel.frag"/>
<src:fragref linkend="profile.value.frag"/>
<src:fragref linkend="profile.vendor.frag"/>
<src:fragref linkend="punct.honorific.frag"/>
<src:fragref linkend="qanda.defaultlabel.frag"/>
<src:fragref linkend="qanda.inherit.numeration.frag"/>
<src:fragref linkend="qandadiv.autolabel.frag"/>
<src:fragref linkend="qanda.title.level1.properties.frag"/>
<src:fragref linkend="qanda.title.level2.properties.frag"/>
<src:fragref linkend="qanda.title.level3.properties.frag"/>
<src:fragref linkend="qanda.title.level4.properties.frag"/>
<src:fragref linkend="qanda.title.level5.properties.frag"/>
<src:fragref linkend="qanda.title.level6.properties.frag"/>
<src:fragref linkend="qanda.title.properties.frag"/>
<src:fragref linkend="refentry.generate.name.frag"/>
<src:fragref linkend="refentry.generate.title.frag"/>
<src:fragref linkend="refentry.pagebreak.frag"/>
<src:fragref linkend="refentry.title.properties.frag"/>
<src:fragref linkend="refentry.xref.manvolnum.frag"/>
<src:fragref linkend="region.after.extent.frag"/>
<src:fragref linkend="region.before.extent.frag"/>
<src:fragref linkend="root.properties.frag"/>
<src:fragref linkend="rootid.frag"/>
<src:fragref linkend="runinhead.default.title.end.punct.frag"/>
<src:fragref linkend="runinhead.title.end.punct.frag"/>
<src:fragref linkend="sans.font.family.frag"/>
<src:fragref linkend="section.autolabel.frag"/>
<src:fragref linkend="section.label.includes.component.label.frag"/>
<src:fragref linkend="section.title.level1.properties.frag"/>
<src:fragref linkend="section.title.level2.properties.frag"/>
<src:fragref linkend="section.title.level3.properties.frag"/>
<src:fragref linkend="section.title.level4.properties.frag"/>
<src:fragref linkend="section.title.level5.properties.frag"/>
<src:fragref linkend="section.title.level6.properties.frag"/>
<src:fragref linkend="section.title.properties.frag"/>
<src:fragref linkend="section.level1.properties.frag"/>
<src:fragref linkend="section.level2.properties.frag"/>
<src:fragref linkend="section.level3.properties.frag"/>
<src:fragref linkend="section.level4.properties.frag"/>
<src:fragref linkend="section.level5.properties.frag"/>
<src:fragref linkend="section.level6.properties.frag"/>
<src:fragref linkend="section.properties.frag"/>
<src:fragref linkend="segmentedlist.as.table.frag"/>
<src:fragref linkend="shade.verbatim.frag"/>
<src:fragref linkend="shade.verbatim.style.frag"/>
<src:fragref linkend="show.comments.frag"/>
<src:fragref linkend="sidebar.properties.frag"/>
<src:fragref linkend="subscript.properties.frag"/>
<src:fragref linkend="superscript.properties.frag"/>
<src:fragref linkend="symbol.font.family.frag"/>
<src:fragref linkend="table.cell.border.color.frag"/>
<src:fragref linkend="table.cell.border.style.frag"/>
<src:fragref linkend="table.cell.border.thickness.frag"/>
<src:fragref linkend="table.cell.padding.frag"/>
<src:fragref linkend="table.footnote.number.format.frag"/>
<src:fragref linkend="table.footnote.number.symbols.frag"/>
<src:fragref linkend="table.frame.border.color.frag"/>
<src:fragref linkend="table.frame.border.style.frag"/>
<src:fragref linkend="table.frame.border.thickness.frag"/>
<src:fragref linkend="table.properties.frag"/>
<src:fragref linkend="tablecolumns.extension.frag"/>
<src:fragref linkend="table.table.properties.frag"/>
<src:fragref linkend="target.database.document.frag"/>
<src:fragref linkend="tex.math.delims.frag"/>
<src:fragref linkend="tex.math.in.alt.frag"/>
<src:fragref linkend="textinsert.extension.frag"/>
<src:fragref linkend="title.font.family.frag"/>
<src:fragref linkend="title.margin.left.frag"/>
<src:fragref linkend="toc.indent.width.frag"/>
<src:fragref linkend="toc.margin.properties.frag"/>
<src:fragref linkend="toc.section.depth.frag"/>
<src:fragref linkend="ulink.footnote.number.format.frag"/>
<src:fragref linkend="ulink.footnotes.frag"/>
<src:fragref linkend="ulink.hyphenate.frag"/>
<src:fragref linkend="ulink.show.frag"/>
<src:fragref linkend="use.extensions.frag"/>
<src:fragref linkend="use.local.olink.style.frag"/>
<src:fragref linkend="use.role.as.xrefstyle.frag"/>
<src:fragref linkend="use.role.for.mediaobject.frag"/>
<src:fragref linkend="use.svg.frag"/>
<src:fragref linkend="variablelist.as.blocks.frag"/>
<src:fragref linkend="variablelist.max.termlength.frag"/>
<src:fragref linkend="verbatim.properties.frag"/>
<src:fragref linkend="xep.extensions.frag"/>
<src:fragref linkend="xep.index.item.properties.frag"/>
<src:fragref linkend="xref.label-page.separator.frag"/>
<src:fragref linkend="xref.label-title.separator.frag"/>
<src:fragref linkend="xref.properties.frag"/>
<src:fragref linkend="xref.title-page.separator.frag"/>
<src:fragref linkend="xref.with.number.and.title.frag"/>
</xsl:stylesheet>
</src:fragment>
</appendix>
</book>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/task.xsl
Index: task.xsl
===================================================================
<?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: task.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="task">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="preamble"
select="*[not(self::title
or self::titleabbrev)]"/>
<fo:block id="{$id}"
xsl:use-attribute-sets="formal.object.properties">
<xsl:call-template name="anchor"/>
<xsl:if test="title and $placement = 'before'">
<xsl:call-template name="formal.object.heading"/>
</xsl:if>
<xsl:apply-templates select="$preamble"/>
<xsl:if test="title and $placement != 'before'">
<xsl:call-template name="formal.object.heading"/>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="task/title">
<!-- nop -->
</xsl:template>
<xsl:template match="tasksummary">
<xsl:call-template name="semiformal.object"/>
</xsl:template>
<xsl:template match="taskprerequisites">
<xsl:call-template name="semiformal.object"/>
</xsl:template>
<xsl:template match="taskrelated">
<xsl:call-template name="semiformal.object"/>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/param.ent
Index: param.ent
===================================================================
<!ENTITY admon.graphics SYSTEM "../params/admon.graphics.xml">
<!ENTITY admon.graphics.extension SYSTEM "../params/admon.graphics.extension.xml">
<!ENTITY admon.graphics.path SYSTEM "../params/admon.graphics.path.xml">
<!ENTITY admon.textlabel SYSTEM "../params/admon.textlabel.xml">
<!ENTITY admonition.properties SYSTEM "../params/admonition.properties.xml">
<!ENTITY admonition.title.properties SYSTEM "../params/admonition.title.properties.xml">
<!ENTITY alignment SYSTEM "../params/alignment.xml">
<!ENTITY appendix.autolabel SYSTEM "../params/appendix.autolabel.xml">
<!ENTITY arbortext.extensions SYSTEM "../params/arbortext.extensions.xml">
<!ENTITY article.appendix.title.properties SYSTEM "../params/article.appendix.title.properties.xml">
<!ENTITY author.othername.in.middle SYSTEM "../params/author.othername.in.middle.xml">
<!ENTITY autotoc.label.separator SYSTEM "../params/autotoc.label.separator.xml">
<!ENTITY axf.extensions SYSTEM "../params/axf.extensions.xml">
<!ENTITY biblioentry.item.separator SYSTEM "../params/biblioentry.item.separator.xml">
<!ENTITY bibliography.collection SYSTEM "../params/bibliography.collection.xml">
<!ENTITY blockquote.properties SYSTEM "../params/blockquote.properties.xml">
<!ENTITY body.font.family SYSTEM "../params/body.font.family.xml">
<!ENTITY body.font.master SYSTEM "../params/body.font.master.xml">
<!ENTITY body.font.size SYSTEM "../params/body.font.size.xml">
<!ENTITY body.margin.bottom SYSTEM "../params/body.margin.bottom.xml">
<!ENTITY body.margin.top SYSTEM "../params/body.margin.top.xml">
<!ENTITY callout.defaultcolumn SYSTEM "../params/callout.defaultcolumn.xml">
<!ENTITY callout.graphics SYSTEM "../params/callout.graphics.xml">
<!ENTITY callout.graphics.extension SYSTEM "../params/callout.graphics.extension.xml">
<!ENTITY callout.graphics.number.limit SYSTEM "../params/callout.graphics.number.limit.xml">
<!ENTITY callout.graphics.path SYSTEM "../params/callout.graphics.path.xml">
<!ENTITY callout.unicode SYSTEM "../params/callout.unicode.xml">
<!ENTITY callout.unicode.font SYSTEM "../params/callout.unicode.font.xml">
<!ENTITY callout.unicode.number.limit SYSTEM "../params/callout.unicode.number.limit.xml">
<!ENTITY callout.unicode.start.character SYSTEM "../params/callout.unicode.start.character.xml">
<!ENTITY callouts.extension SYSTEM "../params/callouts.extension.xml">
<!ENTITY chapter.autolabel SYSTEM "../params/chapter.autolabel.xml">
<!ENTITY column.count.back SYSTEM "../params/column.count.back.xml">
<!ENTITY column.count.body SYSTEM "../params/column.count.body.xml">
<!ENTITY column.count.front SYSTEM "../params/column.count.front.xml">
<!ENTITY column.count.index SYSTEM "../params/column.count.index.xml">
<!ENTITY column.count.lot SYSTEM "../params/column.count.lot.xml">
<!ENTITY column.count.titlepage SYSTEM "../params/column.count.titlepage.xml">
<!ENTITY compact.list.item.spacing SYSTEM "../params/compact.list.item.spacing.xml">
<!ENTITY current.docid SYSTEM "../params/current.docid.xml">
<!ENTITY default.table.width SYSTEM "../params/default.table.width.xml">
<!ENTITY default.units SYSTEM "../params/default.units.xml">
<!ENTITY dingbat.font.family SYSTEM "../params/dingbat.font.family.xml">
<!ENTITY double.sided SYSTEM "../params/double.sided.xml">
<!ENTITY draft.mode SYSTEM "../params/draft.mode.xml">
<!ENTITY draft.watermark.image SYSTEM "../params/draft.watermark.image.xml">
<!ENTITY firstterm.only.link SYSTEM "../params/firstterm.only.link.xml">
<!ENTITY footer.rule SYSTEM "../params/footer.rule.xml">
<!ENTITY footer.column.widths SYSTEM "../params/footer.column.widths.xml">
<!ENTITY footers.on.blank.pages SYSTEM "../params/footers.on.blank.pages.xml">
<!ENTITY footnote.font.size SYSTEM "../params/footnote.font.size.xml">
<!ENTITY fop.extensions SYSTEM "../params/fop.extensions.xml">
<!ENTITY formal.object.properties SYSTEM "../params/formal.object.properties.xml">
<!ENTITY formal.procedures SYSTEM "../params/formal.procedures.xml">
<!ENTITY formal.title.placement SYSTEM "../params/formal.title.placement.xml">
<!ENTITY formal.title.properties SYSTEM "../params/formal.title.properties.xml">
<!ENTITY funcsynopsis.decoration SYSTEM "../params/funcsynopsis.decoration.xml">
<!ENTITY funcsynopsis.style SYSTEM "../params/funcsynopsis.style.xml">
<!ENTITY function.parens SYSTEM "../params/function.parens.xml">
<!ENTITY generate.index SYSTEM "../params/generate.index.xml">
<!ENTITY generate.toc SYSTEM "../params/generate.toc.xml">
<!ENTITY glossary.as.blocks SYSTEM "../params/glossary.as.blocks.xml">
<!ENTITY glossary.collection SYSTEM "../params/glossary.collection.xml">
<!ENTITY glosslist.as.blocks SYSTEM "../params/glosslist.as.blocks.xml">
<!ENTITY glossterm.auto.link SYSTEM "../params/glossterm.auto.link.xml">
<!ENTITY glossterm.separation SYSTEM "../params/glossterm.separation.xml">
<!ENTITY glossterm.width SYSTEM "../params/glossterm.width.xml">
<!ENTITY graphic.default.extension SYSTEM "../params/graphic.default.extension.xml">
<!ENTITY header.rule SYSTEM "../params/header.rule.xml">
<!ENTITY header.column.widths SYSTEM "../params/header.column.widths.xml">
<!ENTITY headers.on.blank.pages SYSTEM "../params/headers.on.blank.pages.xml">
<!ENTITY hyphenate SYSTEM "../params/hyphenate.xml">
<!ENTITY informal.object.properties SYSTEM "../params/informal.object.properties.xml">
<!ENTITY index.preferred.page.properties SYSTEM "../params/index.preferred.page.properties.xml">
<!ENTITY insert.xref.page.number SYSTEM "../params/insert.xref.page.number.xml">
<!ENTITY label.from.part SYSTEM "../params/label.from.part.xml">
<!ENTITY line-height SYSTEM "../params/line-height.xml">
<!ENTITY linenumbering.everyNth SYSTEM "../params/linenumbering.everyNth.xml">
<!ENTITY linenumbering.extension SYSTEM "../params/linenumbering.extension.xml">
<!ENTITY linenumbering.separator SYSTEM "../params/linenumbering.separator.xml">
<!ENTITY linenumbering.width SYSTEM "../params/linenumbering.width.xml">
<!ENTITY list.block.spacing SYSTEM "../params/list.block.spacing.xml">
<!ENTITY list.item.spacing SYSTEM "../params/list.item.spacing.xml">
<!ENTITY make.single.year.ranges SYSTEM "../params/make.single.year.ranges.xml">
<!ENTITY make.year.ranges SYSTEM "../params/make.year.ranges.xml">
<!ENTITY marker.section.level SYSTEM "../params/marker.section.level.xml">
<!ENTITY monospace.font.family SYSTEM "../params/monospace.font.family.xml">
<!ENTITY monospace.verbatim.properties SYSTEM "../params/monospace.verbatim.properties.xml">
<!ENTITY nominal.table.width SYSTEM "../params/nominal.table.width.xml">
<!ENTITY normal.para.spacing SYSTEM "../params/normal.para.spacing.xml">
<!ENTITY olink.doctitle SYSTEM "../params/olink.doctitle.xml">
<!ENTITY page.height SYSTEM "../params/page.height.xml">
<!ENTITY page.height.portrait SYSTEM "../params/page.height.portrait.xml">
<!ENTITY page.margin.bottom SYSTEM "../params/page.margin.bottom.xml">
<!ENTITY page.margin.inner SYSTEM "../params/page.margin.inner.xml">
<!ENTITY page.margin.outer SYSTEM "../params/page.margin.outer.xml">
<!ENTITY page.margin.top SYSTEM "../params/page.margin.top.xml">
<!ENTITY page.orientation SYSTEM "../params/page.orientation.xml">
<!ENTITY page.width SYSTEM "../params/page.width.xml">
<!ENTITY page.width.portrait SYSTEM "../params/page.width.portrait.xml">
<!ENTITY paper.type SYSTEM "../params/paper.type.xml">
<!ENTITY part.autolabel SYSTEM "../params/part.autolabel.xml">
<!ENTITY passivetex.extensions SYSTEM "../params/passivetex.extensions.xml">
<!ENTITY preface.autolabel SYSTEM "../params/preface.autolabel.xml">
<!ENTITY preferred.mediaobject.role SYSTEM "../params/preferred.mediaobject.role.xml">
<!ENTITY process.empty.source.toc SYSTEM "../params/process.empty.source.toc.xml">
<!ENTITY process.source.toc SYSTEM "../params/process.source.toc.xml">
<!ENTITY profile.arch SYSTEM "../params/profile.arch.xml">
<!ENTITY profile.attribute SYSTEM "../params/profile.attribute.xml">
<!ENTITY profile.condition SYSTEM "../params/profile.condition.xml">
<!ENTITY profile.conformance SYSTEM "../params/profile.conformance.xml">
<!ENTITY profile.lang SYSTEM "../params/profile.lang.xml">
<!ENTITY profile.os SYSTEM "../params/profile.os.xml">
<!ENTITY profile.revision SYSTEM "../params/profile.revision.xml">
<!ENTITY profile.revisionflag SYSTEM "../params/profile.revisionflag.xml">
<!ENTITY profile.role SYSTEM "../params/profile.role.xml">
<!ENTITY profile.security SYSTEM "../params/profile.security.xml">
<!ENTITY profile.separator SYSTEM "../params/profile.separator.xml">
<!ENTITY profile.userlevel SYSTEM "../params/profile.userlevel.xml">
<!ENTITY profile.value SYSTEM "../params/profile.value.xml">
<!ENTITY profile.vendor SYSTEM "../params/profile.vendor.xml">
<!ENTITY punct.honorific SYSTEM "../params/punct.honorific.xml">
<!ENTITY qanda.inherit.numeration SYSTEM "../params/qanda.inherit.numeration.xml">
<!ENTITY qandadiv.autolabel SYSTEM "../params/qandadiv.autolabel.xml">
<!ENTITY refentry.generate.name SYSTEM "../params/refentry.generate.name.xml">
<!ENTITY refentry.generate.title SYSTEM "../params/refentry.generate.title.xml">
<!ENTITY refentry.pagebreak SYSTEM "../params/refentry.pagebreak.xml">
<!ENTITY refentry.title.properties SYSTEM "../params/refentry.title.properties.xml">
<!ENTITY refentry.xref.manvolnum SYSTEM "../params/refentry.xref.manvolnum.xml">
<!ENTITY region.after.extent SYSTEM "../params/region.after.extent.xml">
<!ENTITY region.before.extent SYSTEM "../params/region.before.extent.xml">
<!ENTITY rootid SYSTEM "../params/rootid.xml">
<!ENTITY runinhead.default.title.end.punct SYSTEM "../params/runinhead.default.title.end.punct.xml">
<!ENTITY runinhead.title.end.punct SYSTEM "../params/runinhead.title.end.punct.xml">
<!ENTITY sans.font.family SYSTEM "../params/sans.font.family.xml">
<!ENTITY section.autolabel SYSTEM "../params/section.autolabel.xml">
<!ENTITY section.label.includes.component.label SYSTEM "../params/section.label.includes.component.label.xml">
<!ENTITY section.title.properties SYSTEM "../params/section.title.properties.xml">
<!ENTITY segmentedlist.as.table SYSTEM "../params/segmentedlist.as.table.xml">
<!ENTITY shade.verbatim SYSTEM "../params/shade.verbatim.xml">
<!ENTITY shade.verbatim.style SYSTEM "../params/shade.verbatim.style.xml">
<!ENTITY show.comments SYSTEM "../params/show.comments.xml">
<!ENTITY symbol.font.family SYSTEM "../params/symbol.font.family.xml">
<!ENTITY table.cell.padding SYSTEM "../params/table.cell.padding.xml">
<!ENTITY tablecolumns.extension SYSTEM "../params/tablecolumns.extension.xml">
<!ENTITY target.database.document SYSTEM "../params/target.database.document.xml">
<!ENTITY tex.math.delims SYSTEM "../params/tex.math.delims.xml">
<!ENTITY tex.math.in.alt SYSTEM "../params/tex.math.in.alt.xml">
<!ENTITY textinsert.extension SYSTEM "../params/textinsert.extension.xml">
<!ENTITY title.font.family SYSTEM "../params/title.font.family.xml">
<!ENTITY title.margin.left SYSTEM "../params/title.margin.left.xml">
<!ENTITY toc.indent.width SYSTEM "../params/toc.indent.width.xml">
<!ENTITY toc.margin.properties SYSTEM "../params/toc.margin.properties.xml">
<!ENTITY toc.section.depth SYSTEM "../params/toc.section.depth.xml">
<!ENTITY ulink.footnotes SYSTEM "../params/ulink.footnotes.xml">
<!ENTITY ulink.hyphenate SYSTEM "../params/ulink.hyphenate.xml">
<!ENTITY ulink.show SYSTEM "../params/ulink.show.xml">
<!ENTITY use.extensions SYSTEM "../params/use.extensions.xml">
<!ENTITY use.local.olink.style SYSTEM "../params/use.local.olink.style.xml">
<!ENTITY use.role.as.xrefstyle SYSTEM "../params/use.role.as.xrefstyle.xml">
<!ENTITY use.role.for.mediaobject SYSTEM "../params/use.role.for.mediaobject.xml">
<!ENTITY use.svg SYSTEM "../params/use.svg.xml">
<!ENTITY variablelist.as.blocks SYSTEM "../params/variablelist.as.blocks.xml">
<!ENTITY verbatim.properties SYSTEM "../params/verbatim.properties.xml">
<!ENTITY xep.extensions SYSTEM "../params/xep.extensions.xml">
<!ENTITY xep.index.item.properties SYSTEM "../params/xep.index.item.properties.xml">
<!ENTITY xref.properties SYSTEM "../params/xref.properties.xml">
<!ENTITY sidebar.properties SYSTEM "../params/sidebar.properties.xml">
<!ENTITY menuchoice.separator SYSTEM "../params/menuchoice.separator.xml">
<!ENTITY menuchoice.menu.separator SYSTEM "../params/menuchoice.menu.separator.xml">
<!ENTITY bibliography.numbered SYSTEM "../params/bibliography.numbered.xml">
<!ENTITY section.title.level1.properties SYSTEM "../params/section.title.level1.properties.xml">
<!ENTITY section.title.level2.properties SYSTEM "../params/section.title.level2.properties.xml">
<!ENTITY section.title.level3.properties SYSTEM "../params/section.title.level3.properties.xml">
<!ENTITY section.title.level4.properties SYSTEM "../params/section.title.level4.properties.xml">
<!ENTITY section.title.level5.properties SYSTEM "../params/section.title.level5.properties.xml">
<!ENTITY section.title.level6.properties SYSTEM "../params/section.title.level6.properties.xml">
<!ENTITY monospace.properties SYSTEM "../params/monospace.properties.xml">
<!ENTITY make.index.markup SYSTEM "../params/make.index.markup.xml">
<!ENTITY l10n.gentext.language SYSTEM "../params/l10n.gentext.language.xml">
<!ENTITY l10n.gentext.default.language SYSTEM "../params/l10n.gentext.default.language.xml">
<!ENTITY l10n.gentext.use.xref.language SYSTEM "../params/l10n.gentext.use.xref.language.xml">
<!ENTITY default.image.width SYSTEM "../params/default.image.width.xml">
<!ENTITY default.float.class SYSTEM "../params/default.float.class.xml">
<!ENTITY bridgehead.in.toc SYSTEM "../params/bridgehead.in.toc.xml">
<!ENTITY generate.section.toc.level SYSTEM "../params/generate.section.toc.level.xml">
<!ENTITY table.cell.border.color SYSTEM "../params/table.cell.border.color.xml">
<!ENTITY table.cell.border.style SYSTEM "../params/table.cell.border.style.xml">
<!ENTITY table.cell.border.thickness SYSTEM "../params/table.cell.border.thickness.xml">
<!ENTITY table.frame.border.color SYSTEM "../params/table.frame.border.color.xml">
<!ENTITY table.frame.border.style SYSTEM "../params/table.frame.border.style.xml">
<!ENTITY table.frame.border.thickness SYSTEM "../params/table.frame.border.thickness.xml">
<!ENTITY header.content.properties SYSTEM "../params/header.content.properties.xml">
<!ENTITY footer.content.properties SYSTEM "../params/footer.content.properties.xml">
<!ENTITY ignore.image.scaling SYSTEM "../params/ignore.image.scaling.xml">
<!ENTITY figure.properties SYSTEM "../params/figure.properties.xml">
<!ENTITY example.properties SYSTEM "../params/example.properties.xml">
<!ENTITY equation.properties SYSTEM "../params/equation.properties.xml">
<!ENTITY table.properties SYSTEM "../params/table.properties.xml">
<!ENTITY procedure.properties SYSTEM "../params/procedure.properties.xml">
<!ENTITY footnote.number.format SYSTEM "../params/footnote.number.format.xml">
<!ENTITY table.footnote.number.format SYSTEM "../params/table.footnote.number.format.xml">
<!ENTITY footnote.number.symbols SYSTEM "../params/footnote.number.symbols.xml">
<!ENTITY table.footnote.number.symbols SYSTEM "../params/table.footnote.number.symbols.xml">
<!ENTITY glossentry.show.acronym SYSTEM "../params/glossentry.show.acronym.xml">
<!ENTITY ulink.footnote.number.format SYSTEM "../params/ulink.footnote.number.format.xml">
<!ENTITY xref.with.number.and.title SYSTEM "../params/xref.with.number.and.title.xml">
<!ENTITY ebnf.assignment SYSTEM "../params/ebnf.assignment.xml">
<!ENTITY ebnf.statement.terminator SYSTEM "../params/ebnf.statement.terminator.xml">
<!ENTITY root.properties SYSTEM "../params/root.properties.xml">
<!ENTITY column.gap.back SYSTEM "../params/column.gap.back.xml">
<!ENTITY column.gap.body SYSTEM "../params/column.gap.body.xml">
<!ENTITY column.gap.front SYSTEM "../params/column.gap.front.xml">
<!ENTITY column.gap.index SYSTEM "../params/column.gap.index.xml">
<!ENTITY column.gap.lot SYSTEM "../params/column.gap.lot.xml">
<!ENTITY column.gap.titlepage SYSTEM "../params/column.gap.titlepage.xml">
<!ENTITY qanda.title.properties SYSTEM "../params/qanda.title.properties.xml">
<!ENTITY qanda.title.level1.properties SYSTEM "../params/qanda.title.level1.properties.xml">
<!ENTITY qanda.title.level2.properties SYSTEM "../params/qanda.title.level2.properties.xml">
<!ENTITY qanda.title.level3.properties SYSTEM "../params/qanda.title.level3.properties.xml">
<!ENTITY qanda.title.level4.properties SYSTEM "../params/qanda.title.level4.properties.xml">
<!ENTITY qanda.title.level5.properties SYSTEM "../params/qanda.title.level5.properties.xml">
<!ENTITY qanda.title.level6.properties SYSTEM "../params/qanda.title.level6.properties.xml">
<!ENTITY variablelist.max.termlength SYSTEM "../params/variablelist.max.termlength.xml">
<!ENTITY qanda.defaultlabel SYSTEM "../params/qanda.defaultlabel.xml">
<!ENTITY xref.label-title.separator SYSTEM "../params/xref.label-title.separator.xml">
<!ENTITY xref.label-page.separator SYSTEM "../params/xref.label-page.separator.xml">
<!ENTITY xref.title-page.separator SYSTEM "../params/xref.title-page.separator.xml">
<!ENTITY section.properties SYSTEM "../params/section.properties.xml">
<!ENTITY section.level1.properties SYSTEM "../params/section.level1.properties.xml">
<!ENTITY section.level2.properties SYSTEM "../params/section.level2.properties.xml">
<!ENTITY section.level3.properties SYSTEM "../params/section.level3.properties.xml">
<!ENTITY section.level4.properties SYSTEM "../params/section.level4.properties.xml">
<!ENTITY section.level5.properties SYSTEM "../params/section.level5.properties.xml">
<!ENTITY section.level6.properties SYSTEM "../params/section.level6.properties.xml">
<!ENTITY subscript.properties SYSTEM "../params/subscript.properties.xml">
<!ENTITY superscript.properties SYSTEM "../params/superscript.properties.xml">
<!ENTITY table.table.properties SYSTEM "../params/table.table.properties.xml">
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/ebnf.xsl
Index: ebnf.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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 2006/11/10 17:40:17 csuconic 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:block id="{$id}" xsl:use-attribute-sets="formal.object.properties">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="'before'"/>
</xsl:call-template>
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-number="1" column-width="3%"/>
<fo:table-column column-number="2" column-width="15%"/>
<fo:table-column column-number="3" column-width="5%"/>
<fo:table-column column-number="4" column-width="52%"/>
<fo:table-column column-number="5" column-width="25%"/>
<fo:table-body>
<xsl:apply-templates select="production|productionrecap"/>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:table id="{$id}" table-layout="fixed" width="100%">
<fo:table-column column-number="1" column-width="3%"/>
<fo:table-column column-number="2" column-width="15%"/>
<fo:table-column column-number="3" column-width="5%"/>
<fo:table-column column-number="4" column-width="52%"/>
<fo:table-column column-number="5" column-width="25%"/>
<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>
<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>
<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>
<fo:block text-align="center">
<xsl:copy-of select="$ebnf.assignment"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:apply-templates select="rhs"/>
<xsl:copy-of select="$ebnf.statement.terminator"/>
</fo:block>
</fo:table-cell>
<fo:table-cell 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> </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="key('id', at 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="key('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="key('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>/* </xsl:text>
<xsl:apply-templates/>
<xsl:text> */</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="key('id', at 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">
</fo:inline>
</xsl:if>
<xsl:text>[ </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="key('id', at 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="key('id', at linkend)"/>
<xsl:variable name="target" select="$targets[1]"/>
<xsl:apply-templates select="$target" mode="title.markup"/>
</fo:basic-link>
<xsl:text> ]</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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/toc.xsl
Index: toc.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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-reference">
<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-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block xsl: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-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/autotoc.xsl
Index: autotoc.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: autotoc.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="set.toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="nodes" select="book|setindex"/>
<xsl:if test="$nodes">
<fo:block id="toc...{$id}"
xsl:use-attribute-sets="toc.margin.properties">
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">1</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="table.of.contents.titlepage"/>
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template name="division.toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="nodes"
select="$toc-context/part
|$toc-context/reference
|$toc-context/preface
|$toc-context/chapter
|$toc-context/appendix
|$toc-context/article
|$toc-context/bibliography
|$toc-context/glossary
|$toc-context/index"/>
<xsl:if test="$nodes">
<fo:block id="toc...{$cid}"
xsl:use-attribute-sets="toc.margin.properties">
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">1</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="table.of.contents.titlepage"/>
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template name="component.toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="nodes" select="section|sect1|refentry
|article|bibliography|glossary
|appendix"/>
<xsl:if test="$nodes">
<fo:block id="toc...{$id}"
xsl:use-attribute-sets="toc.margin.properties">
<xsl:call-template name="table.of.contents.titlepage"/>
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template name="component.toc.separator">
<!-- Customize to output something between
component.toc and first output -->
</xsl:template>
<xsl:template name="section.toc">
<xsl:param name="toc-context" select="."/>
<xsl:param name="toc.title.p" select="true()"/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="nodes"
select="section|sect1|sect2|sect3|sect4|sect5|refentry
|bridgehead[$bridgehead.in.toc != 0]"/>
<xsl:variable name="level">
<xsl:call-template name="section.level"/>
</xsl:variable>
<xsl:if test="$nodes">
<fo:block id="toc...{$id}"
xsl:use-attribute-sets="toc.margin.properties">
<xsl:if test="$toc.title.p">
<xsl:call-template name="section.heading">
<xsl:with-param name="level" select="$level + 1"/>
<xsl:with-param name="title">
<fo:block space-after="0.5em">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</fo:block>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template name="section.toc.separator">
<!-- Customize to output something between
section.toc and first output -->
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="toc.line">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="label">
<xsl:apply-templates select="." mode="label.markup"/>
</xsl:variable>
<fo:block text-align-last="justify"
end-indent="{$toc.indent.width}pt"
last-line-end-indent="-{$toc.indent.width}pt">
<fo:inline keep-with-next.within-line="always">
<fo:basic-link internal-destination="{$id}">
<xsl:if test="$label != ''">
<xsl:copy-of select="$label"/>
<xsl:value-of select="$autotoc.label.separator"/>
</xsl:if>
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</fo:basic-link>
</fo:inline>
<fo:inline keep-together.within-line="always">
<xsl:text> </xsl:text>
<fo:leader leader-pattern="dots"
leader-pattern-width="3pt"
leader-alignment="reference-area"
keep-with-next.within-line="always"/>
<xsl:text> </xsl:text>
<fo:basic-link internal-destination="{$id}">
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
</fo:inline>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="book|setindex" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="nodes" select="glossary|bibliography|preface|chapter
|reference|part|article|appendix|index"/>
<xsl:if test="$toc.section.depth > 0 and $nodes">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{count(ancestor::*)*$toc.indent.width}pt">
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="part" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="nodes" select="chapter|appendix|preface|reference"/>
<xsl:if test="$toc.section.depth > 0 and $nodes">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{count(ancestor::*)*$toc.indent.width}pt">
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="reference" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:if test="$toc.section.depth > 0 and refentry">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{count(ancestor::*)*$toc.indent.width}pt">
<xsl:apply-templates select="refentry" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="refentry" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="toc.line"/>
</xsl:template>
<xsl:template match="preface|chapter|appendix|article"
mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="nodes" select="section|sect1"/>
<xsl:if test="$toc.section.depth > 0 and $nodes">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{count(ancestor::*)*$toc.indent.width}pt">
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="sect1" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:if test="$toc.section.depth > 1 and sect2">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{count(ancestor::*)*$toc.indent.width}pt">
<xsl:apply-templates select="sect2" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="sect2" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="reldepth"
select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
<xsl:if test="$toc.section.depth > 2 and sect3">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{$reldepth*$toc.indent.width}pt">
<xsl:apply-templates select="sect3" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="sect3" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="reldepth"
select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
<xsl:if test="$toc.section.depth > 3 and sect4">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{$reldepth*$toc.indent.width}pt">
<xsl:apply-templates select="sect4" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="sect4" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="toc.line"/>
<xsl:variable name="reldepth"
select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
<xsl:if test="$toc.section.depth > 4 and sect5">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{$reldepth*$toc.indent.width}pt">
<xsl:apply-templates select="sect5" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="sect5" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="toc.line"/>
</xsl:template>
<xsl:template match="section" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="cid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$toc-context"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="depth" select="count(ancestor::section) + 1"/>
<xsl:variable name="reldepth"
select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
<xsl:if test="$toc.section.depth >= $depth">
<xsl:call-template name="toc.line"/>
<xsl:if test="$toc.section.depth > $depth and section">
<fo:block id="toc.{$cid}.{$id}"
start-indent="{$reldepth*$toc.indent.width}pt">
<xsl:apply-templates select="section" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template match="bibliography|glossary"
mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="toc.line"/>
</xsl:template>
<xsl:template match="index" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:if test="* or $generate.index != 0">
<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:param name="toc-context" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:if test="$nodes">
<fo:block id="lot...{$titles}...{$id}">
<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:when test="$titles='procedure'">
<xsl:call-template name="list.of.procedures.titlepage"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="list.of.unknowns.titlepage"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="figure|table|example|equation|procedure" mode="toc">
<xsl:call-template name="toc.line"/>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/docbook.xsl
Index: docbook.xsl
===================================================================
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="exsl"
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 2006/11/10 17:40:17 csuconic 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="../common/pi.xsl"/>
<xsl:include href="autotoc.xsl"/>
<xsl:include href="autoidx.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="htmltbl.xsl"/>
<xsl:include href="sections.xsl"/>
<xsl:include href="inline.xsl"/>
<xsl:include href="footnote.xsl"/>
<xsl:include href="fo.xsl"/>
<xsl:include href="fo-rtf.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="task.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="docbookng.xsl"/>
<xsl:include href="fop.xsl"/>
<xsl:include href="passivetex.xsl"/>
<xsl:include href="xep.xsl"/>
<xsl:include href="axf.xsl"/>
<xsl:param name="stylesheet.result.type" select="'fo'"/>
<!-- ==================================================================== -->
<xsl:key name="id" match="*" use="@id"/>
<!-- ==================================================================== -->
<xsl:template match="*">
<xsl:message>
<xsl:value-of select="name(.)"/>
<xsl:text> encountered</xsl:text>
<xsl:if test="parent::*">
<xsl:text> in </xsl:text>
<xsl:value-of select="name(parent::*)"/>
</xsl:if>
<xsl:text>, but no template matches.</xsl:text>
</xsl:message>
<fo:block color="red">
<xsl:text><</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>></xsl:text>
<xsl:apply-templates/>
<xsl:text></</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>></xsl:text>
</fo:block>
</xsl:template>
<!-- Update this list if new root elements supported -->
<xsl:variable name="root.elements" select="' appendix article bibliography book chapter colophon dedication glossary index part preface refentry reference sect1 section set setindex '"/>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="function-available('exsl:node-set')
and namespace-uri(*[1]) = 'http://docbook.org/docbook-ng'">
<!-- Hack! If someone hands us a DocBook NG document, toss the namespace -->
<!-- and continue. Someday we may reverse this logic and add the namespace -->
<!-- to documents that don't have one. But not before the whole stylesheet -->
<!-- has been converted to use namespaces. i.e., don't hold your breath -->
<xsl:variable name="nons">
<xsl:apply-templates mode="stripNS"/>
</xsl:variable>
<xsl:apply-templates select="exsl:node-set($nons)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="document.element" select="*[1]"/>
<xsl:if test="not(contains($root.elements,
concat(' ', local-name($document.element), ' ')))">
<xsl:message terminate="yes">
<xsl:text>ERROR: Document root element for FO output </xsl:text>
<xsl:text>must be one of the following elements:</xsl:text>
<xsl:value-of select="$root.elements"/>
</xsl:message>
</xsl:if>
<xsl:call-template name="root.messages"/>
<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 xsl:use-attribute-sets="root.properties">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language">
<xsl:with-param name="target" select="/*[1]"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$xep.extensions != 0">
<xsl:call-template name="xep-document-information"/>
</xsl:if>
<xsl:if test="$axf.extensions != 0">
<xsl:call-template name="axf-document-information"/>
</xsl:if>
<xsl:call-template name="setup.pagemasters"/>
<xsl:choose>
<xsl:when test="$rootid != ''">
<xsl:choose>
<xsl:when test="count(key('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="key('id',$rootid)" mode="fop.outline"/>
</xsl:if>
<xsl:if test="$xep.extensions != 0">
<xsl:variable name="bookmarks">
<xsl:apply-templates select="key('id',$rootid)" mode="xep.outline"/>
</xsl:variable>
<xsl:if test="string($bookmarks) != ''">
<rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
<xsl:copy-of select="$bookmarks"/>
</rx:outline>
</xsl:if>
</xsl:if>
<xsl:apply-templates select="key('id',$rootid)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$fop.extensions != 0">
<xsl:apply-templates mode="fop.outline"/>
</xsl:if>
<xsl:if test="$xep.extensions != 0">
<xsl:variable name="bookmarks">
<xsl:apply-templates mode="xep.outline"/>
</xsl:variable>
<xsl:if test="string($bookmarks) != ''">
<rx:outline xmlns:rx="http://www.renderx.com/XSL/Extensions">
<xsl:copy-of select="$bookmarks"/>
</rx:outline>
</xsl:if>
</xsl:if>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:root>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="root.messages">
<!-- redefine this any way you'd like to output messages -->
<!-- DO NOT OUTPUT ANYTHING FROM THIS TEMPLATE -->
<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:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="stripNS">
<xsl:choose>
<xsl:when test="namespace-uri(.) = 'http://docbook.org/docbook-ng'">
<xsl:element name="{local-name(.)}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="stripNS"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="stripNS"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="comment()|processing-instruction()|text()" mode="stripNS">
<xsl:copy/>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/index.xsl
Index: index.xsl
===================================================================
<?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: index.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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>
<xsl:if test="$generate.index != 0">
<xsl:choose>
<xsl:when test="$make.index.markup != 0">
<fo:block>
<xsl:call-template name="generate-index-markup">
<xsl:with-param name="scope" select="(ancestor::book|/)[last()]"/>
</xsl:call-template>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}">
<xsl:call-template name="index.titlepage"/>
</fo:block>
<xsl:apply-templates/>
<xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
<xsl:call-template name="generate-index">
<xsl:with-param name="scope" select="(ancestor::book|/)[last()]"/>
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template match="book/index|part/index">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:if test="$generate.index != 0">
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass">
<xsl:if test="$make.index.markup != 0">body</xsl:if>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="index.titlepage"/>
</fo:block>
<xsl:apply-templates/>
<xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
<xsl:choose>
<xsl:when test="$make.index.markup != 0">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
xsl:use-attribute-sets="monospace.verbatim.properties"
linefeed-treatment="preserve">
<xsl:call-template name="generate-index-markup">
<xsl:with-param name="scope" select="(ancestor::book|/)[last()]"/>
</xsl:call-template>
</fo:block>
</xsl:when>
<xsl:when test="indexentry|indexdiv/indexentry">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="generate-index">
<xsl:with-param name="scope" select="(ancestor::book|/)[last()]"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</fo:flow>
</fo:page-sequence>
</xsl:if>
</xsl:template>
<xsl:template match="setindex">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:if test="$generate.index != 0">
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass">
<xsl:choose>
<xsl:when test="$make.index.markup != 0">body</xsl:when>
<xsl:otherwise>index</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:if test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="setindex.titlepage"/>
</fo:block>
<xsl:apply-templates/>
<xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
<xsl:choose>
<xsl:when test="$make.index.markup != 0">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
xsl:use-attribute-sets="monospace.verbatim.properties"
linefeed-treatment="preserve">
<xsl:call-template name="generate-index-markup">
<xsl:with-param name="scope" select="/"/>
</xsl:call-template>
</fo:block>
</xsl:when>
<xsl:when test="indexentry|indexdiv/indexentry">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="generate-index">
<xsl:with-param name="scope" select="/"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</fo:flow>
</fo:page-sequence>
</xsl:if>
</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 name="indexdiv.title">
<xsl:param name="title"/>
<xsl:param name="titlecontent"/>
<fo:block margin-left="0pt"
font-size="14.4pt"
font-family="{$title.fontset}"
font-weight="bold"
keep-with-next.within-column="always"
space-before.optimum="{$body.font.master}pt"
space-before.minimum="{$body.font.master * 0.8}pt"
space-before.maximum="{$body.font.master * 1.2}pt">
<xsl:choose>
<xsl:when test="$title">
<xsl:apply-templates select="." mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$titlecontent"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:template>
<xsl:template match="indexdiv">
<fo:block>
<xsl:call-template name="indexdiv.titlepage"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="indexdiv/title"/>
<xsl:template match="indexdiv/subtitle"/>
<xsl:template match="indexdiv/titleabbrev"/>
<!-- ==================================================================== -->
<!-- Text used for distiguishing between normal and significant entries -->
<xsl:variable name="significant.flag">.tnacifingis</xsl:variable>
<xsl:template match="indexterm" name="indexterm">
<!-- Temporal workaround for bug in AXF -->
<xsl:variable name="wrapper.name">
<xsl:choose>
<xsl:when test="$axf.extensions != 0">fo:block</xsl:when>
<xsl:otherwise>fo:wrapper</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$wrapper.name}">
<xsl:attribute name="id">
<xsl:call-template name="object.id"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<xsl:attribute name="rx:key">
<xsl:value-of select="primary"/>
<xsl:if test="@significance='preferred'"><xsl:value-of select="$significant.flag"/></xsl:if>
<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:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:comment>
<xsl:call-template name="comment-escape-string">
<xsl:with-param name="string">
<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:with-param>
</xsl:call-template>
</xsl:comment>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
<xsl:template match="indexterm[@class='startofrange']">
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<rx:begin-index-range>
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:attribute name="rx:key">
<xsl:value-of select="primary"/>
<xsl:if test="@significance='preferred'"><xsl:value-of select="$significant.flag"/></xsl:if>
<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:attribute>
</rx:begin-index-range>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="indexterm"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="indexterm[@class='endofrange']">
<xsl:choose>
<xsl:when test="$xep.extensions != 0">
<rx:end-index-range>
<xsl:attribute name="ref-id">
<xsl:value-of select="@startref"/>
</xsl:attribute>
</rx:end-index-range>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="indexterm"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="indexentry">
<fo:block>
<!-- don't process 'seeie's from here -->
<xsl:apply-templates select="primaryie|secondaryie|tertiaryie|seealsoie"/>
</fo:block>
</xsl:template>
<xsl:template match="primaryie">
<fo:block>
<xsl:apply-templates/>
<xsl:if test="following-sibling::seeie">
<xsl:text> (</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'see'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates select="following-sibling::seeie"/>
<xsl:text>)</xsl:text>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="secondaryie">
<fo:block start-indent="1pc">
<xsl:apply-templates/>
<xsl:if test="following-sibling::seeie">
<xsl:text> (</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'see'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates select="following-sibling::seeie"/>
<xsl:text>)</xsl:text>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="tertiaryie">
<fo:block start-indent="2pc">
<xsl:apply-templates/>
<xsl:if test="following-sibling::seeie">
<xsl:text> (</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'see'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates select="following-sibling::seeie"/>
<xsl:text>)</xsl:text>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="seeie">
<fo:inline>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match="seealsoie">
<fo:block>
<xsl:attribute name="start-indent">
<xsl:choose>
<xsl:when test="preceding-sibling::tertiaryie">3pc</xsl:when>
<xsl:when test="preceding-sibling::secondaryie">2pc</xsl:when>
<xsl:otherwise>1pc</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:text>(</xsl:text>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'seealso'"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
<xsl:text>)</xsl:text>
</fo:block>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/ChangeLog
Index: ChangeLog
===================================================================
2004-03-04 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl, table.xsl: Use table.table.properties on tables
* inline.xsl: Make linked first glossterms italic like all the glossterms
* param.ent, param.xweb: Added table.table.properties
2004-03-02 Jirka Kosek <kosek at users.sourceforge.net>
* xep.xsl: Seems that XEP now supports Unicode characters in bookmarks. There is no further need to strip accents from characters.
2004-02-29 Jirka Kosek <kosek at users.sourceforge.net>
* graphics.xsl: Improved mapping of scalefit attribute to content-width FO property
2004-02-26 Norman Walsh <nwalsh at users.sourceforge.net>
* verbatim.xsl: Bug #875229: add white-space-treatment=preserve
2004-02-11 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: informal.object template now handles informalequation.
2004-02-06 Robert Stayton <bobstayton at users.sourceforge.net>
* component.xsl: Add force-page-count="no-force" to preface when double.sided
is off to prevent extra blank page.
* component.xsl, division.xsl: Added force-page-count="no-force" when double.sided = 0
to prevent extra blank pages.
2004-01-30 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: calsTable template should use table.properties
instead of formal.object.properties.
2004-01-29 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Use titleabbrev in ToC
* biblio.xsl: Support 'info' and 'personblurb'
* docbook.xsl: Support DocBook NG by way of the following hack: if we find an NG document, do an identity transform to throw away the NG namespace and then process the result. Requires exsl:node-set().
* docbookng.xsl: New file.
* qandaset.xsl, titlepage.xsl: Support 'info'
2004-01-29 Robert Stayton <bobstayton at users.sourceforge.net>
* titlepage.xsl: Fix for multiple editor elements running together.
2004-01-26 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl, param.ent, param.xweb: Added header.column.widths and footer.column.widths to
permit adjustment of the header and footer widths.
2004-01-17 Robert Stayton <bobstayton at users.sourceforge.net>
* xep.xsl: Added 'chapter' to test for adding TOC bookmark.
2004-01-16 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: Fixed bug in evaluation of @float in figure.
2004-01-13 Robert Stayton <bobstayton at users.sourceforge.net>
* inline.xsl: Inline sequences now output id attribute if found.
2004-01-08 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Initial support for bibliolist
* table.xsl: Abort if there's no @cols
2003-12-31 Jirka Kosek <kosek at users.sourceforge.net>
* autoidx-ng.xsl: New file.
2003-12-30 Robert Stayton <bobstayton at users.sourceforge.net>
* biblio.xsl, xref.xsl: Changed document($bibliography.collection)
to document($bibliography.collection,.) so it will
look in the current directory instead of
the stylesheet directory.
* graphics.xsl: Fixed test for graphic inside inlineequation.
* xref.xsl: Added refsection to mode="xref-to" to support xref to refsection.
2003-12-16 Robert Stayton <bobstayton at users.sourceforge.net>
* index.xsl, pagesetup.xsl, titlepage.templates.xml: Fixed bug in index title indents when $title.margin.left is
non-zero.
2003-12-15 Robert Stayton <bobstayton at users.sourceforge.net>
* sections.xsl: Now marker respects $marker.section.level parameter.
2003-12-10 Robert Stayton <bobstayton at users.sourceforge.net>
* param.ent, param.xweb: Added marker.section.level to control which sections
are included in running headers or footers.
2003-12-07 Robert Stayton <bobstayton at users.sourceforge.net>
* component.xsl: Fixed bug #605761 where article/appendix title did not respect
the $title.margin.left setting. Use a new
article.appendix.title.properties attribute set.
* param.ent, param.xweb: Added article.appendix.title.properties to fix bug 605761.
2003-12-05 Robert Stayton <bobstayton at users.sourceforge.net>
* param.ent, param.xweb: Added refentry.pagebreak parameter.
* refentry.xsl: refnamediv now uses section.level template to compute title level.
* refentry.xsl: Added $refentry.pagebreak parameter to make page breaks optional.
2003-12-04 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl, param.ent, param.xweb: Support new parameters for superscript/subscript properties
2003-12-02 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Processing of listitems now processes and preserves order of comments and PIs.
2003-11-30 Robert Stayton <bobstayton at users.sourceforge.net>
* htmltbl.xsl, task.xsl: Added CVS $Id.
2003-11-25 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Remove $title.margin.left from the margin-left calculation
when $passivetex.extensions != 0 since it can't do the math.
2003-11-24 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Make sure that fo:list-item-body always contains an fo:block
2003-11-23 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Support code inline
2003-11-05 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: Moved id from fo:table to container block in informaltable
to eliminate duplicate ids when multiple tgroups used.
2003-11-05 Jirka Kosek <kosek at users.sourceforge.net>
* graphics.xsl: Added GIF extensions which is supported by FOP
2003-10-28 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: Add comment about span not working in most FO processor because
not on a child of fo:flow.
2003-10-15 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Added units to margin-left="0" in header and footer templates.
2003-10-11 Robert Stayton <bobstayton at users.sourceforge.net>
* titlepage.xsl: width property added to revhistory table, with
option to use <?dbfo table-width="xx%"?> processing instruction.
2003-10-08 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Removed title.margin.left indent for the index-*-draft
page masters as well.
2003-10-04 Jirka Kosek <kosek at users.sourceforge.net>
* autoidx.xsl, index.xsl, param.ent, param.xweb: Significant index terms can get special rendering in XEP
2003-10-03 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Support stepalternatives
2003-09-29 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Fixed bug in variablelist width calc that was returning zero.
2003-09-28 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Bug #779655: fix PIs and comments in segmented lists
2003-09-27 Norman Walsh <nwalsh at users.sourceforge.net>
* block.xsl, qandaset.xsl: Bug #687783: attempt rudimentary support for blockinfo
2003-09-25 Robert Stayton <bobstayton at users.sourceforge.net>
* sections.xsl: call to section.heading now includes empty titleabbrev
param unless actual titleabbrev element is present.
2003-09-24 Robert Stayton <bobstayton at users.sourceforge.net>
* param.xweb: Fixed typo.
2003-09-18 Robert Stayton <bobstayton at users.sourceforge.net>
* verbatim.xsl: Added text-align='start' in literallayout when
not monospaced.
2003-09-16 Robert Stayton <bobstayton at users.sourceforge.net>
* titlepage.templates.xml: Changed "0" to "0pt" in index margin-left property.
2003-09-12 Robert Stayton <bobstayton at users.sourceforge.net>
* xref.xsl: Add a nonbreaking space before ulink footnote reference.
2003-09-10 Robert Stayton <bobstayton at users.sourceforge.net>
* sections.xsl: Modified template for "section" to handle section.level*.properties
attribute sets.
2003-09-09 Robert Stayton <bobstayton at users.sourceforge.net>
* param.ent, param.xweb: Added section.*.properties.
* sections.xsl: Added section.*.properties to container block for
each section level.
2003-09-08 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Exclude indexterms from calculation of string length
in longest.term template since they are not visible.
2003-09-07 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl: Remove slides from root.elements; let slides stylesheet override root.elements instead
2003-09-05 Robert Stayton <bobstayton at users.sourceforge.net>
* biblio.xsl: Added "part" to list of parents that require a page-sequence
for bibliography.
2003-09-03 Robert Stayton <bobstayton at users.sourceforge.net>
* docbook.xsl: Added slides to the root.elements variable so the slides
customization doesn't break.
2003-09-02 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Turn off procedure/titleabbrev in regular output.
Adjust variablelist termlength from em * 0.50 to em * 0.60
so short terms fit better.
2003-08-29 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Rudimentary support for @dir
2003-08-29 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl, titlepage.templates.xml: For index, turn off $title.margin.left so the index
looks like a normal two-column index.
* qandaset.xsl: Fixed label-length calculation to match variablelist.
2003-08-28 Robert Stayton <bobstayton at users.sourceforge.net>
* callout.xsl, footnote.xsl, formal.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb, titlepage.templates.xml, titlepage.xsl, xref.xsl:
Changed body.font.family to body.fontset and
title.font.family to title.fontset in font-family property
attributes, in order to append symbol.font.family parameter value.
2003-08-27 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl, formal.xsl, htmltbl.xsl: Rudimentary support for HTML tables
* docbook.xsl, task.xsl: Support task
* formal.xsl: Make ugly warnings for HTML tables (not supported yet)
* inline.xsl: Support uri and orgname in para
* verbatim.xsl: Support startinglinenumber and continuation on verbatim environments
2003-08-19 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl: Move root.elements variable to the top level so that other stylesheets (e.g, slides) can override it
* lists.xsl: The parameter is variablelist.max.termlength not vlist.max.termwidth
* param.ent, param.xweb: Add qanda.defaultlabel, xref.label-title.separator, xref.label-page.separator, and xref.title-page.separator
2003-08-14 Robert Stayton <bobstayton at users.sourceforge.net>
* component.xsl: Changed span="all" to span="inherit" when pgwide=1 in
component.title because span attribute must be on direct
child of fo:flow. This eliminates the error message.
* docbook.xsl: Root template now makes sure the root element is
one of those that generates a page-sequence.
* lists.xsl: Improved computation of variablelist indents.
* pagesetup.xsl: Adjusted left margins in page masters to compensate
for $title.margin.left.
* param.ent, param.xweb: Added variablelist.max.termlength parameter to
control maximum list indent.
2003-08-07 Robert Stayton <bobstayton at users.sourceforge.net>
* callout.xsl: Fixed bug in callout numbering when <co> inside an inline.
* component.xsl: Added fotex:bookmark to the separate article/appendix template
which didn't generate Passivetex bookmarks.
2003-07-31 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Removed fop.extensions=0 condition for draft background image
now that FOP 0.20.5 supports background images.
* qandaset.xsl: Several fixes:
extraneous dot when defaultlabel=qanda.
titleabbrev supported.
fixed qandadiv.autolabel.
changed qanda.defaultlabel from variable to parameter.
fixed answer label
added dbfo label-width.
When label used, calculates term width as for variablelist.
2003-07-25 Robert Stayton <bobstayton at users.sourceforge.net>
* xref.xsl: Support insert.xref.page.number = 1 for backwards compatibility,
equivalent to a value of "yes".
* xref.xsl: Standard page citation now checks for xrefstyle attribute.
2003-07-13 Robert Stayton <bobstayton at users.sourceforge.net>
* callout.xsl: Fixed duplicate id bug in coref.
2003-07-10 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Handles titleabbrev on itemizedlist, orderedlist, variablelist.
* lists.xsl: Now variablelists properly handle preamble text that appears
before the first varlistenty.
2003-07-09 Robert Stayton <bobstayton at users.sourceforge.net>
* footnote.xsl: When fop.extensions is on, replace baseline-shift with vertical-align
attribute for footnote numbers.
* inline.xsl: Superscript and subscript now use vertical-align instead of
baseline-shift when fop.extensions is set.
2003-06-25 Robert Stayton <bobstayton at users.sourceforge.net>
* block.xsl: Process formalpara/title to variable so can test for last
char of any generated text.
2003-06-23 Robert Stayton <bobstayton at users.sourceforge.net>
* param.xweb: Added xml fragment for new qanda.title properties.
2003-06-22 Robert Stayton <bobstayton at users.sourceforge.net>
* graphics.xsl: Added BMP, GIF, and TIFF to supported graphics for FOP,
per the FOP documentation.
* param.ent, param.xweb, qandaset.xsl: Separate qanda set title properties from section heading
properties so they can be customized without conflict.
2003-06-21 Norman Walsh <nwalsh at users.sourceforge.net>
* block.xsl: Check for attribution before generating markup for it.
* index.xsl: Whitespace
* pagesetup.xsl: Pass pageclass, sequence, and gentext-key to head.sep.rule and foot.sep.rule.
* pagesetup.xsl, param.ent, param.xweb: Support column gap adjustments
2003-06-19 Robert Stayton <bobstayton at users.sourceforge.net>
* biblio.xsl: Removed duplicate templates for biblioid.
2003-06-10 Robert Stayton <bobstayton at users.sourceforge.net>
* lists.xsl: Added keep-with-next to procedure's step/title so title stays
on same page as step text.
2003-06-05 Robert Stayton <bobstayton at users.sourceforge.net>
* table.xsl: Now colwidth="*" generates proportional-column-width(1.00)
instead of empty argument.
2003-06-03 Norman Walsh <nwalsh at users.sourceforge.net>
* fop.xsl: Bug #719142: make FOP generate ToCs more generously
2003-05-30 Robert Stayton <bobstayton at users.sourceforge.net>
* glossary.xsl: Fixed vertical spacing between glossterm and glossdef when
glossary.as.blocks is set.
2003-05-28 Robert Stayton <bobstayton at users.sourceforge.net>
* sections.xsl: Fixed bridgehead renderas levels to match section level.
This was missed when $level parameter was changed to
match the section level.
2003-05-20 Jirka Kosek <kosek at users.sourceforge.net>
* axf.xsl: New file.
2003-05-15 Jirka Kosek <kosek at users.sourceforge.net>
* autoidx.xsl, autotoc.xsl, component.xsl, division.xsl, docbook.xsl, index.xsl, param.ent, param.xweb, refentry.xsl, sections.xsl:
Added support for AntennaHouse XSL Formatter. You can use axf.extensions=1 setting to generate bookmarks, document info and to merge duplicate page numbers in index.
2003-05-14 Jirka Kosek <kosek at users.sourceforge.net>
* autoidx.xsl, index.xsl, param.ent, param.xweb: Added support for XEP index extensions. If you set xep.extensions to 1 duplicate page numbers in index will be merged using XEP extension to XSL-FO
2003-05-08 Norman Walsh <nwalsh at users.sourceforge.net>
* param.xweb: Added fragref for admon.textlabel
2003-05-07 Robert Stayton <bobstayton at users.sourceforge.net>
* admon.xsl: Now accepts admon.textlabel parameter to turn off Note, Warning,
etc. label.
* param.ent, param.xweb: Added admon.textlabel parameter to enable turning
off Note, Warning, etc.
2003-04-14 Jirka Kosek <kosek at users.sourceforge.net>
* docbook.xsl: Initial support for timestamp PI. From now you can use <?timestamp format="Y-m-d H:M:S"?> to get current datetime in your document. More features like localization and exctracting date from CVS tag will follow.
2003-04-13 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: A few bug fixes for the colsep/rowsep code
* xep.xsl: FeatReq #684561: support more XEP metadata
2003-04-12 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Added hyphenation support
* callout.xsl: Added support for coref
* component.xsl, division.xsl, glossary.xsl, index.xsl, refentry.xsl, sections.xsl, toc.xsl:
Added support for hyphenation-character, hyphenation-push-character-count, and hyphenation-remain-character-count
* docbook.xsl: Use root.properties
* ebnf.xsl: Support ebnf.assignment and ebnf.statement.terminator
* inline.xsl: Support beginpage (does nothing; see TDG)
* param.ent, param.xweb: Added root.properties, ebnf.assignment, and ebnf.statement.terminator
* table.xsl: Support bgcolor PI in table cells; make sure rowsep and colsep don't have any effect on the last row or column
* titlepage.xsl: Handle othercredit on titlepage a little better
* xref.xsl: Make page citations into active links
2003-04-07 Robert Stayton <bobstayton at users.sourceforge.net>
* autoidx.xsl: Applied fix from Jeff Beal that
fixed the bug that put secondary page numbers on primary entries.
Same with tertiary page numbers on secondary entries.
2003-04-01 Jirka Kosek <kosek at users.sourceforge.net>
* glossary.xsl: Added definition of missing variable $collection
2003-03-26 Michael Smith <xmldoc at users.sourceforge.net>
* Makefile: wdocbook.xsl obsoleted by w2docbook.xsl, updated globally
2003-03-25 Michael Smith <xmldoc at users.sourceforge.net>
* Makefile: reverting wdocbook.xsl -> w2docbook.xsl changes
2003-03-24 Michael Smith <xmldoc at users.sourceforge.net>
* Makefile: wrong filename '../../litprog/wdocbook.xsl' broke build, fixed
2003-03-12 Norman Walsh <nwalsh at users.sourceforge.net>
* footnote.xsl: Make footnote formatting 'normal' even when it occurs in a context that has special formatting
2003-03-02 Jirka Kosek <kosek at users.sourceforge.net>
* math.xsl: Fixed several errors related to TeX math processing
2003-02-28 Robert Stayton <bobstayton at users.sourceforge.net>
* glossary.xsl: Added warning when $glossary.collection is not blank, but
it cannot open the specified file.
2003-02-24 <dcramer at users.sourceforge.net>
* formal.xsl: Pick up the frame attribute on table and informaltable.
2003-02-19 <dcramer at users.sourceforge.net>
* index.xsl: indexdiv/title in non-autogenerated indexes are now picked up.
2003-02-17 Norman Walsh <nwalsh at users.sourceforge.net>
* param.ent, param.xweb, param.xweb: Removed component.title.properties
2003-02-10 <dcramer at users.sourceforge.net>
* glossary.xsl: Added keep-with-next and keep-together to block around glossterm(s) in glossary.as.block template to prevent glossterms being widowed from their glossentries.
2003-02-08 Robert Stayton <bobstayton at users.sourceforge.net>
* glossary.xsl: Fixed bug in glosssee and glossseealso using mode="xref" when
should be using mode="xref-to".
2003-01-31 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, component.xsl, division.xsl, glossary.xsl, index.xsl, refentry.xsl, sections.xsl:
Move IDs from page-sequences down to titlepage blocks
* block.xsl, lists.xsl, titlepage.xsl: Use proportional-column-width(1) on more tables
2003-01-30 Robert Stayton <bobstayton at users.sourceforge.net>
* qandaset.xsl: Corrected several references to parameter $qanda.defaultlabel
that were missing the "$".
2003-01-28 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Check for glossterm.auto.link when linking firstterms; don't output gl. prefix on glossterm links
2003-01-23 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Fix bugs associated with toc-context parameter in division.toc
* division.xsl: Generate Part ToCs
* pagesetup.xsl: Use proportional-column-width() for header/footer tables; suppress relative-align when when using FOP
2003-01-22 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Handle alignment correctly when screenshot is used in figure
* xref.xsl: Format chapter and appendix titles consistently in xrefs
2003-01-21 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Attempt to support multiple tgroups (by making multiple tables and placing them right next to each other)
* lists.xsl: Bug #653344: Output fo:table-columns in simplelist tables
2003-01-20 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl, index.xsl: Use titlepage templates for indexdiv title formatting
* biblio.xsl: Bug #640762: Support new biblioentry elements
* component.xsl: Use titleabbrev in markers; use titlepage templates for subtitles; delete bogus component.separator template.
* footnote.xsl: Support {table.}footnote.number.{format,symbols}
* glossary.xsl: Use titlepage templates for glossdiv formatting; support glossentry.show.acronyms
* pagesetup.xsl: Suppress draft page-masters when draft.mode=no
* pagesetup.xsl: Bug #669765: Make blank pages verso not recto
* param.ent, param.xweb: Support xref.with.number.and.title
* param.ent, param.xweb: Added {table.}footnote.number.{format,symbols}, glossentry.show.acronym, and ulink.footnote.number.format
* param.xweb: Fix missing fragref
* qandaset.xsl: QandASet titles use section.title for convenience. Now they don't output fo:markers for those titles.
* sections.xsl: Support titleabbrev for running headers/footers; don't force a section ToC for refentrys
* titlepage.templates.xml: SIGNIFICANT changes to the titlepage template setup. See RELEASE-NOTES.
* titlepage.xsl: Add property sets for glossdiv, bibliodiv, and indexdiv. Improve formatting of authors.
* verbatim.xsl: Arrange to use only a single fo:block for shading to avoid a bug in earlier versions of XEP
* xref.xsl: Change formatting of URL footnotes
* xref.xsl: Improve formatting of ulink footnotes; provide template to override formatting; use ulink.footnote.number.format; support xref to glossentry
2003-01-17 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Output IDs for the first-paras in a listitem
* pagesetup.xsl: Fix bugs in page numbering when double.sided=1
* pagesetup.xsl: Remove region-name from region-body on blank pages
* xref.xsl: Remove duplicated IDs when endterm is used on xref
2003-01-13 Robert Stayton <bobstayton at users.sourceforge.net>
* math.xsl: Added @align value to fo:block containing mediaobject in equation.
2003-01-12 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Make sure that indexdivs are properly scoped. I've done this by adding a test to suppress the division if it contains no terms. It seems like there might be a better way, but I can't see it just at the moment
2003-01-08 Robert Stayton <bobstayton at users.sourceforge.net>
* xref.xsl: In olink, use document($target.database.document, /) so the
olink target database location is relative to the document
instead of the stylesheet.
2003-01-06 Robert Stayton <bobstayton at users.sourceforge.net>
* autoidx.xsl, index.xsl: Removed the unnecessary generate-index-from-terms template
in favor of generate-index, called with scope parameter.
2003-01-02 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl, index.xsl: Rework indexing to avoid XSLT limitation/Saxon bug with context dependencies; finish porting Bob's changes from FO to HTML
* index.xsl, titlepage.templates.xml, titlepage.xsl: Support setindex (there were all sorts of things wrong with it)
2003-01-01 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl, index.xsl: Make index elements always index the book that contains them (if there is one, otherwise the whole document); setindex always indexes the whole document
* autotoc.xsl, division.xsl, titlepage.templates.xml, titlepage.xsl:
Support List of Procedures
* formal.xsl: Support separate property sets for figures, examples, equations, tables, and procedures. This way, they can have different border and other formatting properties.
* graphics.xsl: Support ignore.image.scaling parameter
* param.ent, param.xweb: New parameters
* xref.xsl: Use titleabbrev instead of title in xrefs
2002-12-31 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Make lineannotations italic
* pagesetup.xsl: Added blank.page.content template to allow 'This Page Intentionally Left Blank' blank pages.
2002-12-30 <dcramer at users.sourceforge.net>
* lists.xsl: Fixed spacing problem where step numbers don't line up with the corresponding text.
2002-12-28 Norman Walsh <nwalsh at users.sourceforge.net>
* xref.xsl: Now that xrefstyle is official; make it take priority even when use.role.as.xrefstyle is non-zero.
* xref.xsl: Make endterm on xref higher priority than xreflabel on the target
2002-12-24 Robert Stayton <bobstayton at users.sourceforge.net>
* division.xsl: Fixes bug #655587 to restart page numbering
after a preface.
2002-12-18 Robert Stayton <bobstayton at users.sourceforge.net>
* autoidx.xsl: Changed sort to fold uppercase and lowercase together to fix
odd indexdiv sort order.
* graphics.xsl: Add graphic/@align value to fo:block text-align property
since text-align on external-graphic doesn't seem to work.
2002-12-17 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl, graphics.xsl: Changed selection of mediaobject to be more consistent using
a separate select.mediaobject.index template. Also added
text-align to block containing external-graphic in fo output.
2002-12-17 Jirka Kosek <kosek at users.sourceforge.net>
* param.xweb: Build fixes.
2002-12-17 Robert Stayton <bobstayton at users.sourceforge.net>
* titlepage.templates.xml: Made list.of.tables specifications the same as other list.of.*.
2002-12-13 Robert Stayton <bobstayton at users.sourceforge.net>
* glossary.xsl: Handles missing otherterm target in glosssee and glosseealso.
* inline.xsl: Added the author et al special cases similar to
the HTML inline.xsl templates.
2002-12-12 Robert Stayton <bobstayton at users.sourceforge.net>
* autoidx.xsl: An index now contains only indexterms within its scope
(within its parent element).
* autotoc.xsl, index.xsl: Make sure $generate.index controls whether the index is processed.
* formal.xsl: Change formal.object template to pass $placement parameter
to formal.object.heading template.
* lists.xsl: Fixed bug in segmentedlist title when segmentedlist.as.table set.
2002-12-06 Robert Stayton <bobstayton at users.sourceforge.net>
* block.xsl: Fixed epigraph template so it processes all of its allowed
children, not just para.
* graphics.xsl, param.ent, param.xweb: Enabled support for selecting imageobject using the role attribute.
2002-12-04 Robert Stayton <bobstayton at users.sourceforge.net>
* autotoc.xsl, component.xsl, sections.xsl: Added empty component.toc.separator and section.toc.separator templates
to provide customization opportunity between toc and first content.
2002-11-29 Norman Walsh <nwalsh at users.sourceforge.net>
* pagesetup.xsl: Don't output a footnote-separator for FOP
2002-11-16 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Support abstract in bibliomixed
* biblio.xsl, xref.xsl: Support bibliosource; improve numbered bibliography entries and cross-references to them
* pagesetup.xsl: Added template to create footnote separator rule (if supported by your favorite FO processor)
* sections.xsl: Use value-of instead of copy-of for fo:marker because I haven't thought of a better way to avoid footnotes in markers which are illegal
2002-11-15 Robert Stayton <bobstayton at users.sourceforge.net>
* admon.xsl: Changed graphical.admonition template from an fo:table
to an fo:list-block, so it works in both FOP and XEP.
* lists.xsl: Fixed two bugs in longest.term template that prevented proper
calculation of longest term width in variablelist.
2002-11-15 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Add support for xsltproc adjustColumnWidths extension
2002-11-14 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Use xreflabel (if it's present) on bibliography entries
* component.xsl: Don't restart page numbers on the first preface
* table.xsl: Support entrytbl
2002-11-08 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Corrected left and right page margins for even page masters:
inner and outer were reversed from what they should have been.
2002-10-31 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Support spanning index terms (endofrange/startref)
* lists.xsl: Put para spacing around tabular simplelists
2002-10-21 Norman Walsh <nwalsh at users.sourceforge.net>
* glossary.xsl: Bug #577798: glossentry with multiple glossdefs creates broken FO
* pagesetup.xsl: Updated header/footer properties to avoid missmatched margins caused by title.margin.left
2002-10-20 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Bug #619474: support errortext element
2002-10-19 Norman Walsh <nwalsh at users.sourceforge.net>
* pagesetup.xsl, param.ent, param.xweb: Added property sets to control page header and footer content formatting
2002-10-18 Robert Stayton <bobstayton at users.sourceforge.net>
* param.xweb: Corrected the wording describing the placement of
the header and footer in the region-before and
region-after to match the diagram and stylesheet changes.
2002-10-17 Norman Walsh <nwalsh at users.sourceforge.net>
* refentry.xsl: Fix bug where refentrys in parts were not in a page sequence
2002-10-11 Robert Stayton <bobstayton at users.sourceforge.net>
* inline.xsl: glossterm and firstterm in text now use italicseq
to match the html formatting.
2002-10-09 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Removed debug code.
2002-10-04 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl, sections.xsl: Support optional title on section ToCs. Optional titles for components, books, and sets will be trickier.
* formal.xsl, param.ent, param.xweb, table.xsl: Made separate parameters for table frame and table cell border properties
2002-10-02 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Support continuation of orderedlists and inherited numeration in FO
2002-10-01 Robert Stayton <bobstayton at users.sourceforge.net>
* qandaset.xsl, refentry.xsl, sections.xsl: Changed section.level template to return number that matches
the section level (sect1 = 1, etc.), and adjusted templates
that use section.level accordingly to produce same output
as before.
2002-09-27 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Bug #496294: don't index endofrangeentries. They're no longer indexed, but they aren't handled quite right yet either, they don't generate ranges
* autotoc.xsl, sections.xsl: Support section ToCs
* block.xsl, titlepage.xsl: Bug #582192: support revdescription
* formal.xsl: Bug #497603: fixed and added default.float.class
* param.ent, param.xweb: Use new parameters
* synop.xsl: Fix sbr
2002-09-20 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl: Add context to error message about a missing template
* synop.xsl: Bug #605150: process arg correctly even when it's in a group
2002-09-19 Robert Stayton <bobstayton at users.sourceforge.net>
* formal.xsl: Removed 'keep-with-next' from 'formal.title.properties' attribute set now
that the stylesheets support the option of putting such
titles below the object. Now the $placement value determines
if 'keep-with-next' or 'keep-with-previous' is used in the
title block.
2002-09-19 Norman Walsh <nwalsh at users.sourceforge.net>
* xref.xsl: Use fo-external-image (badly named) to wrap url() around external-destinations
2002-09-15 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Support a PI to rotate table cells
2002-09-08 <dcramer at users.sourceforge.net>
* lists.xsl: Bug #445750: Adding a keep-together and keep-with-next to the block that wraps terms in a varlistentry to keep terms from being orphaned/widowed when variablelists are formatted as blocks.
2002-09-06 <dcramer at users.sourceforge.net>
* component.xsl: Changing the mode in the apply-templates from title.markup to object.title.markup so that appendixes in articles can be formatted as specified in the appropriate lang.xml file.
2002-09-05 Norman Walsh <nwalsh at users.sourceforge.net>
* division.xsl: Restart all books on page 1
2002-09-04 Norman Walsh <nwalsh at users.sourceforge.net>
* param.ent, param.xweb: Reference the l10n.* parameters
2002-09-03 Norman Walsh <nwalsh at users.sourceforge.net>
* graphics.xsl: Support textdata in textobject
* table.xsl: Make sure row-level colsep and rowsep values are 'inherited' onto missing cells
2002-09-01 Norman Walsh <nwalsh at users.sourceforge.net>
* graphics.xsl: Put the url()/no-url() test for external graphics into a named template
* pagesetup.xsl: Add SVG to the list of XEP graphics formats; use the url()/no-url() named template for draft.watermark.image
2002-08-28 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Make inherited attributes work for 'missing' table cells
2002-08-26 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Handle endofrange indexterms properly
* graphics.xsl: Make graphics formats FO-processor aware; support SVG when FOP is being used
* pdf2index: Support page ranges (generated by startofrang/endofrange index entries)
2002-08-22 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Fix serious indexing bug that caused many index terms to be missing from the automatically generated index
2002-08-21 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Support make.index.markup parameter
* index.xsl: Support make.index.markup parameter and hand-crafted indexes
* lists.xsl: Attempt to workaround bug in FOP handling of step content
* param.ent, param.xweb: Remove unused table.entry.padding parameter; add new make.index.markup parameter
* pdf2index: New file.
2002-08-20 <dcramer at users.sourceforge.net>
* block.xsl: Adding missing template for simplemsgentry
2002-08-11 Robert Stayton <bobstayton at users.sourceforge.net>
* pagesetup.xsl: Changed running header/footer rule line dimension from 1px to
0.5pt so passivetex doesn't gack.
2002-08-08 Robert Stayton <bobstayton at users.sourceforge.net>
* autotoc.xsl: Fixed toc.line for FOP to align numbers
by adding leader-pattern-width property
as suggested by Nicolas Nieswandt. Was able to remove
the fop.extensions choose/when structure because
it works for all processors. The numbers in fop
align left rather than right, but at least they
line up.
2002-07-26 Norman Walsh <nwalsh at users.sourceforge.net>
* pagesetup.xsl: Bob's reworked page header/footer ideas. I think there are still some rough edges.
* pagesetup.xsl: A little more tweaking to make things equivalent to the old scheme
2002-07-24 Robert Stayton <bobstayton at users.sourceforge.net>
* sections.xsl: Moved <fo:marker> for section heading to be first child
of its parent block, per bug #586005 (and the XSL-FO spec).
2002-07-19 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, param.ent, param.xweb: Support bibliography.numbered
* inline.xsl, param.ent, param.xweb: Use monospace.properties for inline monospaced items
* inline.xsl, param.ent, param.xweb: Support menuchoice.menu.separator and menuchoice.separator
* param.ent, param.xweb, sections.xsl: Support section.title.levelN.properties to remove hard coding of font sizes in section headings
2002-07-17 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Add keep to bibliodiv titles--they still need more work
* pagesetup.xsl: Add a touch of padding between the page-footer rule and the footer text
* table.xsl: Make header entries bold by default
2002-07-16 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, component.xsl, division.xsl, glossary.xsl, index.xsl, refentry.xsl, sections.xsl, toc.xsl:
Use basic initial-page-number property instead of extended force-page-count property to get components to start on odd pages in double.sided mode; call format.page.number to set the page number format for all page sequences
* division.xsl: Don't include equations w/o titles in the LOT for equations
* pagesetup.xsl: Added foot.empty and page.number.format named templates
2002-07-15 Norman Walsh <nwalsh at users.sourceforge.net>
* pagesetup.xsl: Use named-templates for headers/footers to make customization easier
2002-07-09 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Don't output square brackets if there's no biblioentry label
* synop.xsl: Bug #573726: fix cmdsynopsisref formatting
2002-07-08 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Bug #574840: fix bug where some symbol index terms got lost
* autoidx.xsl: Bug #574841: trim leading and trailing whitespace from primary/secondary/tertiary index terms
* block.xsl, param.ent, param.xweb: Add sidebar.properties to control presentation of Sidebar elements
* graphics.xsl: Work-around bug in xsltproc: explicitly cast scale to a number() before comparing it to 1.0
2002-07-07 Norman Walsh <nwalsh at users.sourceforge.net>
* footnote.xsl, formal.xsl: Fix footnotes in table titles
* lists.xsl: Fix ugly bug: make sure premables to orderedlist and itemizedlist elements are actually formatted
2002-07-06 Norman Walsh <nwalsh at users.sourceforge.net>
* xref.xsl: Added missing parameter to olink.hottext; added missing olink.outline template
2002-07-06 Robert Stayton <bobstayton at users.sourceforge.net>
* xref.xsl: Commented out call to olink.outline for old
style olinks, in case Norm wants to add
support for them.
* xref.xsl: Bug fix: move xsl:param in olink template to be first child.
2002-07-05 Robert Stayton <bobstayton at users.sourceforge.net>
* param.ent, param.xweb: Added four parameters to support new stylesheet olink system:
target.database.document.xml
use.local.olink.style.xml
current.docid.xml
olink.doctitle.xml
* xref.xsl: Modified for the new stylesheet olink system.
Modfified olink template to support the new
targetdoc and targetptr attributes.
Loads target database into keys for fast lookup.
2002-07-04 Norman Walsh <nwalsh at users.sourceforge.net>
* block.xsl, xref.xsl: Feature req #525507: support xref to para by using the nearest containing section as the generated text
* fop.xsl: Patch #530026: suppress whitespace in FOP bookmarks
* glossary.xsl: Fix page number citation code
2002-07-03 Norman Walsh <nwalsh at users.sourceforge.net>
* division.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb:
More hacking on page headers and footers: added toggles for rules and headers on blank pages
* docbook.xsl: Feature Req #502932: added root.messages template for user defined messages
* pagesetup.xsl: Remove silly debugging message
* xref.xsl: Support insert.xref.page.number parameter
2002-07-02 Norman Walsh <nwalsh at users.sourceforge.net>
* component.xsl, division.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb, sections.xsl:
Completely rewrote pagesetup.xsl: more page models, more logical page margin setup
2002-06-29 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl, lists.xsl: Make list/procedure titles use gentext and have consisten formatting
* table.xsl: Patch #514664: keep-together for table-cell if xep
2002-06-27 Norman Walsh <nwalsh at users.sourceforge.net>
* glossary.xsl, param.ent, param.xweb: Make glossary parameters properly documented parameters; support glossary.as.blocks
2002-06-26 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Make sure we don't attempt to set the table width more than once if a table has multiple tgroups
2002-06-11 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl, fo-patch-for-fop.xsl, fo-rtf.xsl, pagesetup.xsl, titlepage.templates.xml:
Add CVS Ids
* biblio.xsl: Add spacing before bibliodivs
* pagesetup.xsl: Put a titlepage at the beginning of the oneside sequence
* param.ent, param.xweb: Added refentry.title.properties, section.title.properties, and use.role.as.xrefstyle
* refentry.xsl: Use titlepage system for refentry (refsynopsisdiv, refsect*) titles
* sections.xsl: Use section.title.properties
* titlepage.templates.xml: Added refentry titlepage elements; tweaked font sizes and some spacing
* titlepage.xsl: Fix copyright year formatting; add *.style attribute sets for refentry elements
* xref.xsl: Experimental support for xrefstyle
2002-06-09 Norman Walsh <nwalsh at users.sourceforge.net>
* index.xsl: Fix bug #496453: make sure comments don't contain illegal chars
2002-06-09 Jirka Kosek <kosek at users.sourceforge.net>
* lists.xsl: Fixed bug #547163. Paragraph after formal paragraph in listitem gets correct spacing.
* refentry.xsl: Fixed bug #554159. Added empty template for refentryinfo
2002-06-03 Jirka Kosek <kosek at users.sourceforge.net>
* Makefile: Added dependencies for profiling stylesheets
2002-06-02 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Support title on step in procedure
2002-06-01 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Bug #560808 make systemitem formatting consistent
2002-05-23 Norman Walsh <nwalsh at users.sourceforge.net>
* param.ent, param.xweb: Support for SVG in HTML
2002-05-21 Norman Walsh <nwalsh at users.sourceforge.net>
* qandaset.xsl: Output '. ' in some contexts (this is a hack)
2002-05-14 Norman Walsh <nwalsh at users.sourceforge.net>
* footnote.xsl: Format footnotes with format.footnote.mark named template for easy customization
2002-05-13 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl, param.ent, param.xweb: Support spacing=compact on itemizedlist and orderedlist (Bug #501063)
2002-05-12 Norman Walsh <nwalsh at users.sourceforge.net>
* block.xsl: Make sure IDs get generated for blockquote and epigraph
* formal.xsl, table.xsl: Make border-collapse='collapse' explicitly (that's the only model that works for CALS tables)
* graphics.xsl: Reworked support for graphic attributes; now support DocBook 4.2CR1 attributes
* lists.xsl: Bug #511965: add formal.title.properties to calloutlist titles
* math.xsl: Support MathML by passing it silently through to the FO result
* sections.xsl: Allow anchors in section titles; improve efforts to prevent page/column breaks immediately after section titles
* xref.xsl: Support xref to refnamediv and all elements with titles (at least when they have titles)
2002-05-06 Norman Walsh <nwalsh at users.sourceforge.net>
* admon.xsl: Fix url() in admonition graphics
* callout.xsl: Fix url() in callout graphics
2002-04-30 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Use title.font.family in bibliodiv
2002-04-20 Norman Walsh <nwalsh at users.sourceforge.net>
* param.ent, param.xweb, verbatim.xsl: Support shade.verbatim in FO; stop using vendor test to decide what extension function to call for line numbering
2002-03-28 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Attempt to fix duplicate-id problem in ToC generation
* xep.xsl: Make XEP point to ToC pages for books, parts, etc. from PDF bookmarks
2002-03-26 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Set maxlength of termlength to 12
* param.xweb: Documentation fix
2002-03-25 Norman Walsh <nwalsh at users.sourceforge.net>
* component.xsl: Handle prefaceinfo
* formal.xsl: Handle textobject in tables
* graphics.xsl: Add template for mediaobjectco
* inline.xsl: Support personname
* math.xsl: Handle alt
* xref.xsl: Support xrefs to editor, othercredit, and personname
2002-03-22 Norman Walsh <nwalsh at users.sourceforge.net>
* titlepage.xsl: Output blocks instead of wrappers around authors
2002-03-21 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, titlepage.xsl: Support biblioid
2002-03-20 Norman Walsh <nwalsh at users.sourceforge.net>
* xep.xsl: Don't output a link to the book title if the book has no title
2002-03-19 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Make sure ToC elements have IDs for links from the PDF ToC
2002-03-18 Norman Walsh <nwalsh at users.sourceforge.net>
* Makefile, component.xsl, division.xsl, fop.xsl, param.ent, param.xweb, xep.xsl:
Replace generate.*.toc and generate.*.lot with single generate.toc parameter.
* block.xsl: Support RevHistory in content; support AckNo in article
* fop.xsl, xep.xsl: Don't generate ToC links if there's nothing to go in the ToC
2002-03-15 Norman Walsh <nwalsh at users.sourceforge.net>
* synop.xsl, verbatim.xsl: Support classsynopsis and friends
2002-03-14 Norman Walsh <nwalsh at users.sourceforge.net>
* .cvsignore: Ignore profiling stylesheets
* admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, ebnf.xsl, fo-patch-for-fop.xsl, fo-rtf.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.ent, param.xweb, passivetex.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xep.xsl, xref.xsl:
Whitespace only: change CR/LF back to LF. Norm was a total moron.
* admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, ebnf.xsl, fo-patch-for-fop.xsl, fo-rtf.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.ent, param.xweb, passivetex.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xep.xsl, xref.xsl:
Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr.
* docbook.xsl, fo-rtf.xsl, footnote.xsl, formal.xsl: Improve formatting of table footnotes and fix numeration of table/non-table footnotes
* formal.xsl, lists.xsl, param.ent, param.xweb: Support formal.title.placement
2002-03-13 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Fix FO markup for rotated tables
* inline.xsl: Support other roles on emphasis; support nested emphasis
* sections.xsl: Give wrapped section titles a hanging indent
* titlepage.templates.xml: Don't shift the margin on article titles; they're supposed to be centered
* verbatim.xsl: Don't force verbatim environments to be start aligned; they should inherit the current text alignment
2002-03-11 Jirka Kosek <kosek at users.sourceforge.net>
* inline.xsl: Fixed bug #522900. Content of <emphasis> is not outputted twice.
2002-03-03 Jirka Kosek <kosek at users.sourceforge.net>
* param.ent, param.xweb: Added new stylesheet parameters for profiling.
2002-03-01 Jirka Kosek <kosek at users.sourceforge.net>
* Makefile: First portion of new profiling code. New stylesheet parameters will come later.
2002-03-01 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Use alternate TOC format for FOP
* docbook.xsl: Move stylesheet.result.type out of param and put it explicitly in each stylesheet because it has to be different
* footnote.xsl: Make footnote numbers smaller and superscripted
* formal.xsl, table.xsl: Improve table border handling
* graphics.xsl: Support TIFF images
* graphics.xsl: Handle the case where graphics in inlineequations are inline
* pagesetup.xsl: Don't put watermarks on FOP; FOP doesn't understand them
* param.ent, param.xweb: Renamed table.border.padding and removed stylesheet.result.type
2002-02-21 Jirka Kosek <kosek at users.sourceforge.net>
* math.xsl, param.ent, param.xweb: Better control over delimiters for TeX equations. Added parameter tex.math.delims, when is set to 0, no delimiters (like $ and $$) are output. Same can be done for single equation by <?dbtex delims="no"?>.
2002-02-20 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Bug #429331: center figure title if image is centered
* lists.xsl: Commented out a debugging message
2002-02-11 Norman Walsh <nwalsh at users.sourceforge.net>
* component.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb, titlepage.templates.xml:
Patch #510996: add support for two-colum indexes
* inline.xsl: Patch #514007: prevent hyphenation of email addresses
2002-02-07 Norman Walsh <nwalsh at users.sourceforge.net>
* autotoc.xsl: Make title a link
* docbook.xsl: Reworked FOP outline mode
* fop.xsl: Reworked outline mode
* formal.xsl, param.ent, param.xweb: Added informal.object.properties
2002-01-29 Norman Walsh <nwalsh at users.sourceforge.net>
* pagesetup.xsl, param.ent, param.xweb: Support 'draft' watermark
2002-01-28 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Allow bibliography to be a root element
* formal.xsl: Make landscape tables actually landscape---if your FO processor supports changes to the reference-orientation
* param.ent, param.xweb, xref.xsl: Provide option to allow URLs to be conditionally hyphenated
2002-01-25 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Fix bug that caused rowsep and colsep to be ignored on empty cells
2002-01-10 Norman Walsh <nwalsh at users.sourceforge.net>
* fo-patch-for-fop.xsl: Allow the fox: prefix; this isn't the right fix, but it's easy and this file is only a workaround for FOP
* inline.xsl: Support emphasis role=bold in FO
* pagesetup.xsl: Set display-alignment on region-before and -after; output warning if the master-references is unrecognized when calculating the page header
* param.ent, param.xweb: Added documentation about page layout and ulink.footnotes and ulink.show
* xref.xsl: Use the ulink.show parameter when rendering ulinks
2002-01-09 Norman Walsh <nwalsh at users.sourceforge.net>
* glossary.xsl: Bug fix: don't generate duplicate IDs on glossentrys
2002-01-04 Norman Walsh <nwalsh at users.sourceforge.net>
* glossary.xsl: Make glossary.collection (usually) work when chunking is used; allow the use of glossdivs to be toggled in the document
* glossary.xsl, inline.xsl, param.ent, param.xweb: First cut at supporting a glossary.collection file
2002-01-03 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Rework variablelist formatting; support lists vs. blocks with new parameters and calculate term-width reasonably
* param.ent, param.xweb: Replace format.variablelist.as.list with variablelist.as.blocks
2002-01-01 Norman Walsh <nwalsh at users.sourceforge.net>
* .cvsignore: Added Makefile.param
* Makefile.param: Autogenerated
* block.xsl: Use blockquote.properties
* lists.xsl: Attempt to support alternate symbols on itemizedlists
* param.ent, param.xweb: Use new parameters: refentry.generate.title and blockquote.properties
* refentry.xsl: Improve formatting of reference pages
* titlepage.xsl: Simplify match pattern; add space in editor formatting
2001-12-15 Jirka Kosek <kosek at users.sourceforge.net>
* math.xsl: Improved support for TeX math inside equations.
2001-12-06 Jirka Kosek <kosek at users.sourceforge.net>
* Makefile.param, math.xsl, param.ent, param.xweb: Added support for TeX math in alt element. When using PassiveTeX, TeX equations can be directly passed to TeX. When using HTML, TeX file with code necessary to produce image equivalents of equations is generated.
2001-12-04 Norman Walsh <nwalsh at users.sourceforge.net>
* Makefile: Fix chunking parameter errors
* Makefile, Makefile.param, param.ent, param.xweb: New parameters; reorganized xweb file; and some checking for consistent param files
* admon.xsl: Feature #454323: customizable font in admonitions
* autotoc.xsl: Feature #445713 TOC customization
* division.xsl: Added set TOC and moved book TOC after dedication
* docbook.xsl: Features #457872 and #479011 language and line-height
* glossary.xsl, inline.xsl: Support glossterm.auto.link
* refentry.xsl, xref.xsl: Feature #481793: support xref to refentry
* xep.xsl: Add bookmark for TOC
2001-12-02 Norman Walsh <nwalsh at users.sourceforge.net>
* component.xsl: Allow inlines and anchors in titles
2001-12-01 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Patch #468462: hot page numbers in the index
* division.xsl: Patch #470480: make part title formatting obey localization rules
* docbook.xsl, xep.xsl: Make sure bookmarks are never empty
* formal.xsl, table.xsl: Bug #487576: table/indexterm problems
* synop.xsl: Patch #462556: Improve func synopsis
* titlepage.templates.xml: Don't offset margin when using 'center' alignment
* xep.xsl: Fix bug in TOC title formatting
2001-11-30 Norman Walsh <nwalsh at users.sourceforge.net>
* component.xsl, division.xsl: Bug #451265: page number of first part is wrong
2001-11-29 Norman Walsh <nwalsh at users.sourceforge.net>
* fo-patch-for-fop.xsl: New file.
* lists.xsl: Patch #478068: procedures with one step
* lists.xsl: Patch #482482: margin-start should be margin-left
* xep.xsl: Patch #479140: bookmarks w/xep missing
* xep.xsl: Patch #479145: top-level bookmarks in xep
* xep.xsl: Fix it the right way: always test for top-level elements
2001-11-28 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl, param.ent, param.xweb: Support formatting segmented lists as tables
* pagesetup.xsl: Bug #483364: wrong inner/outer margins
* param.ent, param.xweb: Added punct.honorific parameter
* pi.xsl: Use common pi-attribute template
2001-11-21 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, component.xsl, division.xsl, glossary.xsl, index.xsl, pagesetup.xsl, refentry.xsl, sections.xsl, toc.xsl:
Updated master-name/master-reference per the XSL 1.0 Recommendation
2001-11-15 Jirka Kosek <kosek at users.sourceforge.net>
* docbook.xsl, passivetex.xsl: When passivetex.extensions=1 character ​ is inserted between all occurences of --. This stops TeX ligature mechanism which converted all -- to endash and --- to emdash (this is ill especially in source code listings containing XML comments or decrementation operator). Performance cost of evaluating condition for each text node is under 5 %. This shouldn't annoy anyone.
2001-11-12 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl, ebnf.xsl, footnote.xsl, lists.xsl, synop.xsl, xref.xsl:
Support well-formed documents, use key() instead of id()
2001-11-10 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Moved table frame code to a common named template; handle frame=none
* pagesetup.xsl: Added message if the master-name is unrecognized
2001-11-09 Norman Walsh <nwalsh at users.sourceforge.net>
* param.xweb: Move the obvious ID value from the src:fragment to the refentry in parameter reference pages
2001-11-03 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl, inline.xsl: Support pubwork=article on citetitle
* formal.xsl, table.xsl: Table updates
* synop.xsl: Added block wrapper around paramdef in kr mode
* xref.xsl: Remove anchor name on anchor; it erroneously duplicates the html anchor template
2001-10-16 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Table support improvements
2001-10-15 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Fix formatting of keycombo
* param.ent, param.xweb, table.xsl: Fix calculation of rowsep and colsep; added experimental support for table.borders.with.css in HTML; calculation of alignments needs to be added along the same lines
2001-10-14 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Fixed a number of significant outstanding table problems; I think HTML and FO now format all combinations of spans and missing cells correctly. But the border drawing isn't perfect on FO tables yet.
2001-10-12 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Tweaked bibliography formatting to include the labels
* block.xsl: Improve formatting of block quotes
* param.xweb: Fixed bogus attribute name
2001-10-11 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl, docbook.xsl, index.xsl: Always use automatic indexing
2001-10-09 Norman Walsh <nwalsh at users.sourceforge.net>
* Makefile: Fix typo
* titlepage.templates.xml, titlepage.xsl: Make sure authorgroup doesn't output IDs on both recto and verso pages
2001-10-08 Norman Walsh <nwalsh at users.sourceforge.net>
* .cvsignore, Makefile, param.ent, param.xsl, param.xweb:
Removed param.xsl; it's now generated from param.xweb
* fo.xsl: Added an anchor named template
* table.xsl: Moved several params to param.xsl; also changed hyphens to periods for consistency
* titlepage.templates.xml: Made margin-left a parameter so it's easier to tweak along with page.margin.outer
* titlepage.xsl: Keep section titles together with their sections
* xref.xsl: Added names to the link templates
2001-09-25 Norman Walsh <nwalsh at users.sourceforge.net>
* param.xsl, titlepage.xsl: Support automatic collation of year ranges in copyright
2001-09-24 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Whitespace changes
2001-09-23 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Patch #460123, fix for <step>s 2 ff. in <procedure>
2001-09-22 Norman Walsh <nwalsh at users.sourceforge.net>
* xref.xsl: Bug #463033: allow xref to list items (in orderedlists) and varlistentrys
* xref.xsl: Bug #462830: allow %p in templates
2001-09-09 Norman Walsh <nwalsh at users.sourceforge.net>
* formal.xsl: Added keep-together.within-column
2001-08-29 Norman Walsh <nwalsh at users.sourceforge.net>
* lists.xsl: Fix orderedlist numerations
2001-08-09 Norman Walsh <nwalsh at 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 at 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 at 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 at 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 at users.sourceforge.net>
* fop.xsl, xep.xsl: Fixes for PDF bookmarks by Pavel Zampach
2001-07-21 Norman Walsh <nwalsh at users.sourceforge.net>
* block.xsl, param.xsl: Fix title-end punctuation problems on formalparas
2001-07-16 Norman Walsh <nwalsh at users.sourceforge.net>
* table.xsl: Add template for tfoot
* table.xsl: Process thead/tbody/tfoot in the right order (thead/tfoot/tbody)
2001-07-15 Norman Walsh <nwalsh at 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 at 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 at users.sourceforge.net>
* lists.xsl, param.xsl: Added format.variablelist.as.list parameter
2001-07-04 <uid48421 at 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 at 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 at 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 at 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 at users.sourceforge.net>
* formal.xsl, param.xsl: Fix formatting of formal object titles.
2001-06-15 Norman Walsh <nwalsh at users.sourceforge.net>
* graphics.xsl: Remove file:; why was I doing this?
2001-06-14 Norman Walsh <nwalsh at 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 at 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 at users.sourceforge.net>
* callout.xsl, inline.xsl, synop.xsl: Fixed some unparameterized references to specific font families
2001-06-04 Norman Walsh <nwalsh at 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 at users.sourceforge.net>
* graphics.xsl: Fix dup. template bug with is.graphic.*
* titlepage.xsl: Add template for publisher
2001-05-21 Norman Walsh <nwalsh at 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 at users.sourceforge.net>
* sections.xsl: Fix subtitle bug
2001-05-12 Norman Walsh <nwalsh at users.sourceforge.net>
* sections.xsl: Calculate the heading level for bridgeheads
2001-05-04 Norman Walsh <nwalsh at users.sourceforge.net>
* docbook.xsl: Replace hardcoded values on fo:root with parameters
2001-05-03 Norman Walsh <nwalsh at users.sourceforge.net>
* biblio.xsl: Render author names correctly in bibliomixed mode
* graphics.xsl: Tweak available graphics formats
2001-05-03 Jirka Kosek <kosek at users.sourceforge.net>
* inline.xsl: Added support for class="xmlpi" and "emptytag".
Rendering of attributes is in sync with HTML stylesheet (monospace instead of normal).
2001-05-03 Norman Walsh <nwalsh at users.sourceforge.net>
* 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 at users.sourceforge.net>
* lists.xsl: Improve procedure step/substep enumeration
2001-04-21 Norman Walsh <nwalsh at users.sourceforge.net>
* qandaset.xsl: My first crude attempts at support for qandaset
2001-04-20 Norman Walsh <nwalsh at users.sourceforge.net>
* autoidx.xsl: Remove variable references from key functions; use entities instead.
2001-04-19 Norman Walsh <nwalsh at users.sourceforge.net>
* inline.xsl: Add template for constant
2001-04-17 Norman Walsh <nwalsh at 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 at 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 at 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 at 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 at 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
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/titlepage.xsl
Index: titlepage.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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.fontset"/>
</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="bibliodiv.titlepage.recto.style"/>
<xsl:attribute-set name="bibliodiv.titlepage.verso.style"/>
<xsl:attribute-set name="glossary.titlepage.recto.style"/>
<xsl:attribute-set name="glossary.titlepage.verso.style"/>
<xsl:attribute-set name="glossdiv.titlepage.recto.style"/>
<xsl:attribute-set name="glossdiv.titlepage.verso.style"/>
<xsl:attribute-set name="index.titlepage.recto.style"/>
<xsl:attribute-set name="index.titlepage.verso.style"/>
<xsl:attribute-set name="setindex.titlepage.recto.style"/>
<xsl:attribute-set name="setindex.titlepage.verso.style"/>
<xsl:attribute-set name="indexdiv.titlepage.recto.style"/>
<xsl:attribute-set name="indexdiv.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 name="keep-together">always</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.titlepage.verso.style">
<xsl:attribute name="keep-together">always</xsl:attribute>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set>
<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="refsynopsisdiv.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style"
use-attribute-sets="section.titlepage.verso.style"/>
<xsl:attribute-set name="refsection.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refsection.titlepage.verso.style"
use-attribute-sets="section.titlepage.verso.style"/>
<xsl:attribute-set name="refsect1.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refsect1.titlepage.verso.style"
use-attribute-sets="section.titlepage.verso.style"/>
<xsl:attribute-set name="refsect2.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refsect2.titlepage.verso.style"
use-attribute-sets="section.titlepage.verso.style"/>
<xsl:attribute-set name="refsect3.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refsect3.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.procedures.titlepage.recto.style"/>
<xsl:attribute-set name="list.of.procedures.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:block>
<xsl:call-template name="anchor"/>
<xsl:call-template name="person.name"/>
<xsl:if test="affiliation/orgname">
<xsl:text>, </xsl:text>
<xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
</xsl:if>
<xsl:if test="email|affiliation/address/email">
<xsl:text> </xsl:text>
<xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
</xsl:if>
</fo:block>
</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: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:call-template name="copyright.years">
<xsl:with-param name="years" select="year"/>
<xsl:with-param name="print.ranges" select="$make.year.ranges"/>
<xsl:with-param name="single.year.ranges"
select="$make.single.year.ranges"/>
</xsl:call-template>
<xsl:call-template name="gentext.space"/>
<xsl:apply-templates select="holder" mode="titlepage.mode"/>
</xsl:template>
<xsl:template match="year" 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">
<!-- The first editor is dealt with in the following template,
which in turn displays all editors of the same mode. -->
</xsl:template>
<xsl:template match="editor[1]" priority="2" mode="titlepage.mode">
<xsl:call-template name="gentext.edited.by"/>
<xsl:call-template name="gentext.space"/>
<xsl:call-template name="person.name.list">
<xsl:with-param name="person.list" select="../editor"/>
</xsl:call-template>
</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="biblioid" 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">
<xsl:apply-templates mode="titlepage.mode"/>
</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">
<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>
<fo:table table-layout="fixed" width="{$table.width}">
<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
<fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
<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|.//revdescription"/>
<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="revision/revdescription" 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|info/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:apply-templates mode="titlepage.mode"/>
</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::info/subtitle
|following-sibling::bookinfo/subtitle">
<xsl:text>: </xsl:text>
<xsl:apply-templates select="(following-sibling::subtitle
|following-sibling::info/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 name="verso.authorgroup">
<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.list">
<xsl:with-param name="person.list" select="author|corpauthor|editor"/>
</xsl:call-template>
</fo:block>
<xsl:apply-templates select="othercredit" mode="titlepage.mode"/>
</xsl:template>
<xsl:template match="bookinfo/author|info/author"
mode="titlepage.mode" priority="2">
<fo:block>
<xsl:call-template name="person.name"/>
</fo:block>
</xsl:template>
<xsl:template match="bookinfo/corpauthor|info/corpauthor"
mode="titlepage.mode" priority="2">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="bookinfo/pubdate|info/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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/division.xsl
Index: division.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: division.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="object.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:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:choose>
<xsl:when test="count($node/ancestor::*) > 0">
<xsl:value-of select="count($node/ancestor::*)"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="axf:outline-expand">false</xsl:attribute>
<xsl:attribute name="axf:outline-title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="set">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="preamble"
select="*[not(self::book or self::setindex)]"/>
<xsl:variable name="content" select="book|setindex"/>
<xsl:variable name="titlepage-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'titlepage'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="lot-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'lot'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$preamble">
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$titlepage-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="set.titlepage"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</xsl:if>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="set.toc"/>
</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="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<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="titlepage-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'titlepage'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="lot-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'lot'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$preamble">
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$titlepage-master-reference}"
initial-page-number="1">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="book.titlepage"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</xsl:if>
<xsl:apply-templates select="dedication" mode="dedication"/>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'TableofContents'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'TableofContents'"/>
</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="contains($toc.params,'figure') and .//figure">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofFigures'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofFigures'"/>
</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="contains($toc.params,'table') and .//table">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofTables'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofTables'"/>
</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="contains($toc.params,'example') and .//example">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofExamples'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofExamples'"/>
</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="contains($toc.params,'equation') and .//equation">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofEquations'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofEquations'"/>
</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[title]"/>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:if>
<xsl:if test="contains($toc.params,'procedure') and .//procedure">
<fo:page-sequence hyphenate="{$hyphenate}"
format="i"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofProcedures'"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
<xsl:with-param name="gentext-key" select="'ListofProcedures'"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="list.of.titles">
<xsl:with-param name="titles" select="'procedure'"/>
<xsl:with-param name="nodes" select=".//procedure[title]"/>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:if>
<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:apply-templates select="." mode="part.titlepage.mode"/>
<xsl:call-template name="generate.part.toc"/>
</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:param name="additional.content"/>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="titlepage-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'titlepage'"/>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$titlepage-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="not(preceding::chapter)
and not(preceding::part)">
<!-- if there is a preceding chapter or part, page numbering will already -->
<!-- be adjusted, otherwise restart the page numbers -->
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:when>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="$double.sided = 0">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:if>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="." mode="running.head.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$titlepage-master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="part.titlepage"/>
</fo:block>
<xsl:copy-of select="$additional.content"/>
</fo:flow>
</fo:page-sequence>
</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 name="generate.part.toc">
<xsl:param name="part" select="."/>
<xsl:variable name="lot-master-reference">
<xsl:call-template name="select.pagemaster">
<xsl:with-param name="pageclass" select="'lot'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="node" select="$part"/>
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')">
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$lot-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:attribute name="format">
<xsl:call-template name="page.number.format">
<xsl:with-param name="element" select="'toc'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$double.sided != 0">
<xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="hyphenation-character">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-character'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-push-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-push-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="hyphenation-remain-character-count">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'hyphenation-remain-character-count'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:apply-templates select="$part" mode="running.head.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
</xsl:apply-templates>
<xsl:apply-templates select="$part" mode="running.foot.mode">
<xsl:with-param name="master-reference" select="$lot-master-reference"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="division.toc">
<xsl:with-param name="toc-context" select="$part"/>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:if>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="part/partintro">
<xsl:apply-templates select=".." mode="part.titlepage.mode">
<xsl:with-param name="additional.content">
<xsl:if test="title">
<xsl:call-template name="partintro.titlepage"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:with-param>
</xsl:apply-templates>
<xsl:call-template name="generate.part.toc">
<xsl:with-param name="part" select=".."/>
</xsl:call-template>
</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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/table.xsl
Index: table.xsl
===================================================================
<?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"
xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table"
exclude-result-prefixes="doc stbl xtbl lxslt ptbl"
version='1.0'>
<xsl:include href="../common/table.xsl"/>
<!-- ********************************************************************
$Id: table.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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 2006/11/10 17:40:17 csuconic 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:template name="empty.table.cell">
<xsl:param name="colnum" select="0"/>
<xsl:variable name="rowsep">
<xsl:choose>
<!-- If this is the last row, rowsep never applies. -->
<xsl:when test="not(ancestor-or-self::row[1]/following-sibling::row
or ancestor-or-self::thead/following-sibling::tbody
or ancestor-or-self::tbody/preceding-sibling::tfoot)">
<xsl:value-of select="0"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
<xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'rowsep'"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="colsep">
<xsl:choose>
<!-- If this is the last column, colsep never applies. -->
<xsl:when test="$colnum >= ancestor::tgroup/@cols">0</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
<xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'colsep'"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:table-cell text-align="center"
display-align="center"
xsl:use-attribute-sets="table.cell.padding">
<xsl:if test="$xep.extensions != 0">
<!-- Suggested by RenderX to workaround a bug in their implementation -->
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:if>
<xsl:if test="$rowsep > 0">
<xsl:call-template name="border">
<xsl:with-param name="side" select="'bottom'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$colsep > 0 and $colnum < ancestor::tgroup/@cols">
<xsl:call-template name="border">
<xsl:with-param name="side" select="'right'"/>
</xsl:call-template>
</xsl:if>
<!-- fo:table-cell should not be empty -->
<fo:block/>
</fo:table-cell>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="border">
<xsl:param name="side" select="'left'"/>
<xsl:attribute name="border-{$side}-width">
<xsl:value-of select="$table.cell.border.thickness"/>
</xsl:attribute>
<xsl:attribute name="border-{$side}-style">
<xsl:value-of select="$table.cell.border.style"/>
</xsl:attribute>
<xsl:attribute name="border-{$side}-color">
<xsl:value-of select="$table.cell.border.color"/>
</xsl:attribute>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="tgroup" name="tgroup">
<xsl:if test="not(@cols)">
<xsl:message terminate="yes">
<xsl:text>Error: CALS tables must specify the number of columns.</xsl:text>
</xsl:message>
</xsl:if>
<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">
<!-- If this is the first tgroup, output the width attribute for the -->
<!-- surrounding fo:table. (If this isn't the first tgroup, trying -->
<!-- to output the attribute will cause an error.) -->
<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="function-available('stbl:adjustColumnWidths')">
<xsl:copy-of select="stbl:adjustColumnWidths($colspecs)"/>
</xsl:when>
<xsl:when test="function-available('xtbl:adjustColumnWidths')">
<xsl:copy-of select="xtbl:adjustColumnWidths($colspecs)"/>
</xsl:when>
<xsl:when test="function-available('ptbl:adjustColumnWidths')">
<xsl:copy-of select="ptbl:adjustColumnWidths($colspecs)"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
<xsl:text>No adjustColumnWidths function available.</xsl:text>
</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::*"/>
<fo:table-header>
<xsl:apply-templates select="row[1]">
<xsl:with-param name="spans">
<xsl:call-template name="blank.spans">
<xsl:with-param name="cols" select="../@cols"/>
</xsl:call-template>
</xsl:with-param>
</xsl:apply-templates>
</fo:table-header>
</xsl:template>
<xsl:template match="tfoot">
<xsl:variable name="tgroup" select="parent::*"/>
<fo:table-footer>
<xsl:apply-templates select="row[1]">
<xsl:with-param name="spans">
<xsl:call-template name="blank.spans">
<xsl:with-param name="cols" select="../@cols"/>
</xsl:call-template>
</xsl:with-param>
</xsl:apply-templates>
</fo:table-footer>
</xsl:template>
<xsl:template match="tbody">
<xsl:variable name="tgroup" select="parent::*"/>
<fo:table-body>
<xsl:apply-templates select="row[1]">
<xsl:with-param name="spans">
<xsl:call-template name="blank.spans">
<xsl:with-param name="cols" select="../@cols"/>
</xsl:call-template>
</xsl:with-param>
</xsl:apply-templates>
</fo:table-body>
</xsl:template>
<xsl:template match="row">
<xsl:param name="spans"/>
<fo:table-row>
<xsl:call-template name="anchor"/>
<xsl:apply-templates select="(entry|entrytbl)[1]">
<xsl:with-param name="spans" select="$spans"/>
</xsl:apply-templates>
</fo:table-row>
<xsl:if test="following-sibling::row">
<xsl:variable name="nextspans">
<xsl:apply-templates select="(entry|entrytbl)[1]" mode="span">
<xsl:with-param name="spans" select="$spans"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:apply-templates select="following-sibling::row[1]">
<xsl:with-param name="spans" select="$nextspans"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
<xsl:template match="entry|entrytbl" name="entry">
<xsl:param name="col" select="1"/>
<xsl:param name="spans"/>
<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="empty.cell" select="count(node()) = 0"/>
<xsl:variable name="named.colnum">
<xsl:call-template name="entry.colnum"/>
</xsl:variable>
<xsl:variable name="entry.colnum">
<xsl:choose>
<xsl:when test="$named.colnum > 0">
<xsl:value-of select="$named.colnum"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$col"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="entry.colspan">
<xsl:choose>
<xsl:when test="@spanname or @namest">
<xsl:call-template name="calculate.colspan"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="following.spans">
<xsl:call-template name="calculate.following.spans">
<xsl:with-param name="colspan" select="$entry.colspan"/>
<xsl:with-param name="spans" select="$spans"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="rowsep">
<xsl:choose>
<!-- If this is the last row, rowsep never applies. -->
<xsl:when test="not(ancestor-or-self::row[1]/following-sibling::row
or ancestor-or-self::thead/following-sibling::tbody
or ancestor-or-self::tbody/preceding-sibling::tfoot)">
<xsl:value-of select="0"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'rowsep'"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!--
<xsl:message><xsl:value-of select="."/>: <xsl:value-of select="$rowsep"/></xsl:message>
-->
<xsl:variable name="colsep">
<xsl:choose>
<!-- If this is the last column, colsep never applies. -->
<xsl:when test="$following.spans = ''">0</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'colsep'"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="valign">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'valign'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="align">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'align'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="char">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'char'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="charoff">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
<xsl:with-param name="colnum" select="$entry.colnum"/>
<xsl:with-param name="attribute" select="'charoff'"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$spans != '' and not(starts-with($spans,'0:'))">
<xsl:call-template name="entry">
<xsl:with-param name="col" select="$col+1"/>
<xsl:with-param name="spans" select="substring-after($spans,':')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$entry.colnum > $col">
<xsl:call-template name="empty.table.cell">
<xsl:with-param name="colnum" select="$col"/>
</xsl:call-template>
<xsl:call-template name="entry">
<xsl:with-param name="col" select="$col+1"/>
<xsl:with-param name="spans" select="substring-after($spans,':')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="cell.content">
<fo:block>
<!-- highlight this entry? -->
<xsl:if test="ancestor::thead">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:if>
<!-- are we missing any indexterms? -->
<xsl:if test="not(preceding-sibling::entry)
and not(parent::row/preceding-sibling::row)">
<!-- this is the first entry of the first row -->
<xsl:if test="ancestor::thead or
(ancestor::tbody
and not(ancestor::tbody/preceding-sibling::thead
or ancestor::tbody/preceding-sibling::tbody))">
<!-- of the thead or the first tbody -->
<xsl:apply-templates select="ancestor::tgroup/preceding-sibling::indexterm"/>
</xsl:if>
</xsl:if>
<!--
<xsl:text>(</xsl:text>
<xsl:value-of select="$rowsep"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="$colsep"/>
<xsl:text>)</xsl:text>
-->
<xsl:choose>
<xsl:when test="$empty.cell">
<xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="self::entrytbl">
<xsl:variable name="prop-columns"
select=".//colspec[contains(@colwidth, '*')]"/>
<fo:table xsl:use-attribute-sets="table.table.properties">
<xsl:if test="count($prop-columns) != 0">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:if>
<xsl:call-template name="tgroup"/>
</fo:table>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:variable>
<xsl:variable name="cell-orientation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="ancestor-or-self::entry/processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'orientation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="row-orientation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="ancestor-or-self::row/processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'orientation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="cell-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="ancestor-or-self::entry/processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'rotated-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="row-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="ancestor-or-self::row/processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'rotated-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="orientation">
<xsl:choose>
<xsl:when test="$cell-orientation != ''">
<xsl:value-of select="$cell-orientation"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$row-orientation"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="rotated-width">
<xsl:choose>
<xsl:when test="$cell-width != ''">
<xsl:value-of select="$cell-width"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$row-width"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="bgcolor">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="ancestor-or-self::entry/processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'bgcolor'"/>
</xsl:call-template>
</xsl:variable>
<fo:table-cell xsl:use-attribute-sets="table.cell.padding">
<xsl:if test="$xep.extensions != 0">
<!-- Suggested by RenderX to workaround a bug in their implementation -->
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:if>
<xsl:if test="$bgcolor != ''">
<xsl:attribute name="background-color">
<xsl:value-of select="$bgcolor"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="anchor"/>
<xsl:if test="$rowsep > 0">
<xsl:call-template name="border">
<xsl:with-param name="side" select="'bottom'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$colsep > 0 and $col < ancestor::tgroup/@cols">
<xsl:call-template name="border">
<xsl:with-param name="side" select="'right'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="@morerows">
<xsl:attribute name="number-rows-spanned">
<xsl:value-of select="@morerows+1"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$entry.colspan > 1">
<xsl:attribute name="number-columns-spanned">
<xsl:value-of select="$entry.colspan"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$valign != ''">
<xsl:attribute name="display-align">
<xsl:choose>
<xsl:when test="$valign='top'">before</xsl:when>
<xsl:when test="$valign='middle'">center</xsl:when>
<xsl:when test="$valign='bottom'">after</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>Unexpected valign value: </xsl:text>
<xsl:value-of select="$valign"/>
<xsl:text>, center used.</xsl:text>
</xsl:message>
<xsl:text>center</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:if test="$align != ''">
<xsl:attribute name="text-align">
<xsl:value-of select="$align"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$char != ''">
<xsl:attribute name="text-align">
<xsl:value-of select="$char"/>
</xsl:attribute>
</xsl:if>
<!--
<xsl:if test="@charoff">
<xsl:attribute name="charoff">
<xsl:value-of select="@charoff"/>
</xsl:attribute>
</xsl:if>
-->
<xsl:choose>
<xsl:when test="$xep.extensions != 0 and $orientation != ''">
<fo:block-container reference-orientation="{$orientation}">
<xsl:if test="$rotated-width != ''">
<xsl:attribute name="width">
<xsl:value-of select="$rotated-width"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$cell.content"/>
</fo:block-container>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$cell.content"/>
</xsl:otherwise>
</xsl:choose>
</fo:table-cell>
<xsl:choose>
<xsl:when test="following-sibling::entry|following-sibling::entrytbl">
<xsl:apply-templates select="(following-sibling::entry
|following-sibling::entrytbl)[1]">
<xsl:with-param name="col" select="$col+$entry.colspan"/>
<xsl:with-param name="spans" select="$following.spans"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="finaltd">
<xsl:with-param name="spans" select="$following.spans"/>
<xsl:with-param name="col" select="$col+$entry.colspan"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="entry|entrytbl" name="sentry" mode="span">
<xsl:param name="col" select="1"/>
<xsl:param name="spans"/>
<xsl:variable name="entry.colnum">
<xsl:call-template name="entry.colnum"/>
</xsl:variable>
<xsl:variable name="entry.colspan">
<xsl:choose>
<xsl:when test="@spanname or @namest">
<xsl:call-template name="calculate.colspan"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="following.spans">
<xsl:call-template name="calculate.following.spans">
<xsl:with-param name="colspan" select="$entry.colspan"/>
<xsl:with-param name="spans" select="$spans"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$spans != '' and not(starts-with($spans,'0:'))">
<xsl:value-of select="substring-before($spans,':')-1"/>
<xsl:text>:</xsl:text>
<xsl:call-template name="sentry">
<xsl:with-param name="col" select="$col+1"/>
<xsl:with-param name="spans" select="substring-after($spans,':')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$entry.colnum > $col">
<xsl:text>0:</xsl:text>
<xsl:call-template name="sentry">
<xsl:with-param name="col" select="$col+$entry.colspan"/>
<xsl:with-param name="spans" select="$following.spans"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="copy-string">
<xsl:with-param name="count" select="$entry.colspan"/>
<xsl:with-param name="string">
<xsl:choose>
<xsl:when test="@morerows">
<xsl:value-of select="@morerows"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
<xsl:text>:</xsl:text>
</xsl:with-param>
</xsl:call-template>
<xsl:choose>
<xsl:when test="following-sibling::entry|following-sibling::entrytbl">
<xsl:apply-templates select="(following-sibling::entry
|following-sibling::entrytbl)[1]"
mode="span">
<xsl:with-param name="col" select="$col+$entry.colspan"/>
<xsl:with-param name="spans" select="$following.spans"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="sfinaltd">
<xsl:with-param name="spans" select="$following.spans"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</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 -->
<!-- * = same as 1* -->
<!-- 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:choose>
<xsl:when test="substring-before($colwidth, '*') != ''">
<xsl:value-of select="substring-before($colwidth, '*')"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>1.00</xsl:text>
</xsl:otherwise>
</xsl:choose>
<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:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/block.xsl
Index: block.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://nwalsh.com/docbook/xsl/ for copyright
and other information.
******************************************************************** -->
<!-- ==================================================================== -->
<!-- What should we do about styling blockinfo? -->
<xsl:template match="blockinfo">
<!-- suppress -->
</xsl:template>
<!-- ==================================================================== -->
<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:call-template name="anchor"/>
<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">
<xsl:apply-templates/>
</xsl:variable>
<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:copy-of select="$titleStr"/>
<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> </xsl:text>
</fo:inline>
</xsl:template>
<xsl:template match="formalpara/para">
<xsl:apply-templates/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="blockquote">
<fo:block xsl:use-attribute-sets="blockquote.properties">
<xsl:call-template name="anchor"/>
<fo:block>
<xsl:if test="title">
<fo:block xsl:use-attribute-sets="formal.title.properties">
<xsl:apply-templates select="." mode="object.title.markup"/>
</fo:block>
</xsl:if>
<xsl:apply-templates select="*[local-name(.) != 'title'
and local-name(.) != 'attribution']"/>
</fo:block>
<xsl:if test="attribution">
<fo:block text-align="right">
<!-- mdash -->
<xsl:text>—</xsl:text>
<xsl:apply-templates select="attribution"/>
</fo:block>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="epigraph">
<fo:block>
<xsl:call-template name="anchor"/>
<xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
<xsl:if test="attribution">
<fo:inline>
<xsl:text>--</xsl:text>
<xsl:apply-templates select="attribution"/>
</fo:inline>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="attribution">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="sidebar">
<fo:block xsl:use-attribute-sets="sidebar.properties">
<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="simplemsgentry">
<xsl:call-template name="block.object"/>
</xsl:template>
<xsl:template match="msg">
<xsl:call-template name="block.object"/>
</xsl:template>
<xsl:template match="msgmain">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="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>
<!-- ==================================================================== -->
<!-- For better or worse, revhistory is allowed in content... -->
<xsl:template match="revhistory">
<fo:table table-layout="fixed">
<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
<fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
<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/>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="revhistory/revision">
<xsl:variable name="revnumber" select=".//revnumber"/>
<xsl:variable name="revdate" select=".//date"/>
<xsl:variable name="revauthor" select=".//authorinitials"/>
<xsl:variable name="revremark" select=".//revremark|.//revdescription"/>
<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]"/>
</xsl:if>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:apply-templates select="$revdate[1]"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:apply-templates select="$revauthor[1]"/>
</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]"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:if>
</xsl:template>
<xsl:template match="revision/revnumber">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revision/date">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revision/authorinitials">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revision/revremark">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revision/revdescription">
<xsl:apply-templates/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="ackno">
<fo:block xsl:use-attribute-sets="normal.para.spacing">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="highlights">
<xsl:call-template name="block.object"/>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/autoidx-ng.xsl
Index: autoidx-ng.xsl
===================================================================
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
<!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
<!ENTITY secondary 'normalize-space(concat(secondary/@sortas, secondary[not(@sortas)]))'>
<!ENTITY tertiary 'normalize-space(concat(tertiary/@sortas, tertiary[not(@sortas)]))'>
<!ENTITY sep '" "'>
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())'>
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0"
xmlns:func="http://exslt.org/functions"
exclude-result-prefixes="i"
xmlns:i="urn:cz-kosek:functions:index">
<!-- ********************************************************************
$Id: autoidx-ng.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<xsl:include href="../common/autoidx-ng.xsl"/>
<!-- Modified original code is using index group codes instead of just first letter
to gain better grouping -->
<xsl:template name="generate-index">
<xsl:param name="scope" select="(ancestor::book|/)[last()]"/>
<xsl:variable name="terms"
select="//indexterm[count(.|key('group-code',
i:group-index(&primary;))[&scope;][1]) = 1
and not(@class = 'endofrange')]"/>
<xsl:apply-templates select="$terms" mode="index-div">
<xsl:with-param name="scope" select="$scope"/>
<xsl:sort select="i:group-index(&primary;)" data-type="number"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="indexterm" mode="index-div">
<xsl:param name="scope" select="."/>
<xsl:variable name="key"
select="i:group-index(&primary;)"/>
<xsl:if test="key('group-code', $key)[&scope;]
[count(.|key('primary', &primary;)[&scope;][1]) = 1]">
<fo:block>
<xsl:call-template name="indexdiv.title">
<xsl:with-param name="titlecontent">
<xsl:value-of select="i:group-letter($key)"/>
</xsl:with-param>
</xsl:call-template>
<fo:block>
<xsl:apply-templates select="key('group-code', $key)[&scope;]
[count(.|key('primary', &primary;)[&scope;][1])=1]"
mode="index-primary">
<xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
<xsl:with-param name="scope" select="$scope"/>
</xsl:apply-templates>
</fo:block>
</fo:block>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/pagesetup.xsl
Index: pagesetup.xsl
===================================================================
<?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: pagesetup.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<!-- ==================================================================== -->
<xsl:param name="body.fontset">
<xsl:value-of select="$body.font.family"/>
<xsl:if test="$body.font.family != ''
and $symbol.font.family != ''">,</xsl:if>
<xsl:value-of select="$symbol.font.family"/>
</xsl:param>
<xsl:param name="title.fontset">
<xsl:value-of select="$title.font.family"/>
<xsl:if test="$title.font.family != ''
and $symbol.font.family != ''">,</xsl:if>
<xsl:value-of select="$symbol.font.family"/>
</xsl:param>
<!-- PassiveTeX can't handle the math expression for
title.margin.left being negative, so ignore it.
margin-left="{$page.margin.outer} - {$title.margin.left}"
-->
<xsl:param name="margin.left.outer">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">
<xsl:value-of select="$page.margin.outer"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$page.margin.outer"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="$title.margin.left"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="margin.left.inner">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">
<xsl:value-of select="$page.margin.inner"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$page.margin.inner"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="$title.margin.left"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:template name="setup.pagemasters">
<fo:layout-master-set>
<!-- blank pages -->
<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="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body display-align="center"
margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="region-name">blank-body</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-blank"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-blank"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- title pages -->
<fo:simple-page-master master-name="titlepage-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="titlepage-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="titlepage-even"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- list-of-title pages -->
<fo:simple-page-master master-name="lot-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="lot-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="lot-even"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- frontmatter pages -->
<fo:simple-page-master master-name="front-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="front-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="front-even"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- body pages -->
<fo:simple-page-master master-name="body-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="body-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="body-even"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- backmatter pages -->
<fo:simple-page-master master-name="back-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="back-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="back-even"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- index pages -->
<fo:simple-page-master master-name="index-first"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$page.margin.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="index-odd"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$page.margin.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="index-even"
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}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<xsl:if test="$draft.mode != 'no'">
<!-- draft blank pages -->
<fo:simple-page-master master-name="blank-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-blank"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-blank"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft title pages -->
<fo:simple-page-master master-name="titlepage-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="titlepage-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="titlepage-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft list-of-title pages -->
<fo:simple-page-master master-name="lot-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="lot-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="lot-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.lot}"
column-count="{$column.count.lot}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft frontmatter pages -->
<fo:simple-page-master master-name="front-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="front-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="front-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.front}"
column-count="{$column.count.front}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft body pages -->
<fo:simple-page-master master-name="body-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="body-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="body-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.body}"
column-count="{$column.count.body}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft backmatter pages -->
<fo:simple-page-master master-name="back-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="back-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="back-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$margin.left.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.back}"
column-count="{$column.count.back}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- draft index pages -->
<fo:simple-page-master master-name="index-first-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$page.margin.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-first"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-first"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="index-odd-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$page.margin.inner}"
margin-right="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-odd"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-odd"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="index-even-draft"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-right="{$page.margin.inner}"
margin-left="{$page.margin.outer}">
<fo:region-body margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}"
column-gap="{$column.gap.index}"
column-count="{$column.count.index}">
<xsl:if test="$draft.watermark.image != ''">
<xsl:attribute name="background-image">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$draft.watermark.image"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="background-attachment">fixed</xsl:attribute>
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute name="background-position-vertical">center</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-even"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-even"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
</xsl:if>
<!-- setup for title page(s) -->
<fo:page-sequence-master master-name="titlepage">
<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="titlepage-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="titlepage-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="titlepage-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup for lots -->
<fo:page-sequence-master master-name="lot">
<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="lot-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="lot-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="lot-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup front matter -->
<fo:page-sequence-master master-name="front">
<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="front-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="front-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="front-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup for body pages -->
<fo:page-sequence-master master-name="body">
<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="body-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="body-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="body-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup back matter -->
<fo:page-sequence-master master-name="back">
<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="back-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="back-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="back-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup back matter -->
<fo:page-sequence-master master-name="index">
<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="index-first"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="index-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="index-even"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<xsl:if test="$draft.mode != 'no'">
<!-- setup for draft title page(s) -->
<fo:page-sequence-master master-name="titlepage-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="titlepage-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="titlepage-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="titlepage-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup for draft lots -->
<fo:page-sequence-master master-name="lot-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="lot-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="lot-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="lot-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup draft front matter -->
<fo:page-sequence-master master-name="front-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="front-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="front-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="front-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup for draft body pages -->
<fo:page-sequence-master master-name="body-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="body-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="body-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="body-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup draft back matter -->
<fo:page-sequence-master master-name="back-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="back-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="back-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="back-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<!-- setup draft index pages -->
<fo:page-sequence-master master-name="index-draft">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank-draft"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference master-reference="index-first-draft"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="index-odd-draft"
odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="index-even-draft"
odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</xsl:if>
<xsl:call-template name="user.pagemasters"/>
</fo:layout-master-set>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="user.pagemasters"/> <!-- intentionally empty -->
<!-- ==================================================================== -->
<xsl:template name="select.pagemaster">
<xsl:param name="element" select="local-name(.)"/>
<xsl:param name="pageclass" select="''"/>
<xsl:variable name="pagemaster">
<xsl:choose>
<xsl:when test="$pageclass != ''">
<xsl:value-of select="$pageclass"/>
</xsl:when>
<xsl:when test="$pageclass = 'lot'">lot</xsl:when>
<xsl:when test="$element = 'dedication'">front</xsl:when>
<xsl:when test="$element = 'preface'">front</xsl:when>
<xsl:when test="$element = 'appendix'">back</xsl:when>
<xsl:when test="$element = 'glossary'">back</xsl:when>
<xsl:when test="$element = 'bibliography'">back</xsl:when>
<xsl:when test="$element = 'index'">index</xsl:when>
<xsl:when test="$element = 'colophon'">back</xsl:when>
<xsl:otherwise>body</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$draft.mode = 'yes'">
<xsl:text>-draft</xsl:text>
</xsl:when>
<xsl:when test="$draft.mode = 'no'">
<!-- nop -->
</xsl:when>
<xsl:when test="ancestor-or-self::*[@status][1]/@status = 'draft'">
<xsl:text>-draft</xsl:text>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="select.user.pagemaster">
<xsl:with-param name="element" select="$element"/>
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="default-pagemaster" select="$pagemaster"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="select.user.pagemaster">
<xsl:param name="element"/>
<xsl:param name="pageclass"/>
<xsl:param name="default-pagemaster"/>
<!-- by default, return the default. But if you've created your own
pagemasters in user.pagemasters, you might want to select one here. -->
<xsl:value-of select="$default-pagemaster"/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="head.sep.rule">
<xsl:param name="pageclass"/>
<xsl:param name="sequence"/>
<xsl:param name="gentext-key"/>
<xsl:if test="$header.rule != 0">
<xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
<xsl:attribute name="border-bottom-color">black</xsl:attribute>
</xsl:if>
</xsl:template>
<xsl:template name="foot.sep.rule">
<xsl:param name="pageclass"/>
<xsl:param name="sequence"/>
<xsl:param name="gentext-key"/>
<xsl:if test="$footer.rule != 0">
<xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-top-style">solid</xsl:attribute>
<xsl:attribute name="border-top-color">black</xsl:attribute>
</xsl:if>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="running.head.mode">
<xsl:param name="master-reference" select="'unknown'"/>
<xsl:param name="gentext-key" select="name(.)"/>
<!-- remove -draft from reference -->
<xsl:variable name="pageclass">
<xsl:choose>
<xsl:when test="contains($master-reference, '-draft')">
<xsl:value-of select="substring-before($master-reference, '-draft')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$master-reference"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:static-content flow-name="xsl-region-before-first">
<fo:block xsl:use-attribute-sets="header.content.properties">
<xsl:call-template name="header.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'first'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before-odd">
<fo:block xsl:use-attribute-sets="header.content.properties">
<xsl:call-template name="header.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'odd'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before-even">
<fo:block xsl:use-attribute-sets="header.content.properties">
<xsl:call-template name="header.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'even'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before-blank">
<fo:block xsl:use-attribute-sets="header.content.properties">
<xsl:call-template name="header.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'blank'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<xsl:if test="$fop.extensions = 0">
<xsl:call-template name="footnote-separator"/>
<xsl:call-template name="blank.page.content"/>
</xsl:if>
</xsl:template>
<xsl:template name="footnote-separator">
<fo:static-content flow-name="xsl-footnote-separator">
<fo:block>
<fo:leader color="black" leader-pattern="rule" leader-length="1in"/>
</fo:block>
</fo:static-content>
</xsl:template>
<xsl:template name="blank.page.content">
<fo:static-content flow-name="blank-body">
<fo:block text-align="center"/>
</fo:static-content>
</xsl:template>
<xsl:template name="header.table">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<!-- default is a single table style for all headers -->
<!-- Customize it for different page classes or sequence location -->
<xsl:choose>
<xsl:when test="$pageclass = 'index'">
<xsl:attribute name="margin-left">0pt</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:variable name="column1">
<xsl:choose>
<xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
<xsl:otherwise>3</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="column3">
<xsl:choose>
<xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="candidate">
<fo:table table-layout="fixed" width="100%">
<xsl:call-template name="head.sep.rule">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
<fo:table-column column-number="1">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">header</xsl:with-param>
<xsl:with-param name="position" select="$column1"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="2">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">header</xsl:with-param>
<xsl:with-param name="position" select="2"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="3">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">header</xsl:with-param>
<xsl:with-param name="position" select="$column3"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-body>
<fo:table-row height="14pt">
<fo:table-cell text-align="left"
display-align="before">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="header.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'left'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center"
display-align="before">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="header.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'center'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="right"
display-align="before">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="header.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'right'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:variable>
<!-- Really output a header? -->
<xsl:choose>
<xsl:when test="$pageclass = 'titlepage' and $gentext-key = 'book'
and $sequence='first'">
<!-- no, book titlepages have no headers at all -->
</xsl:when>
<xsl:when test="$sequence = 'blank' and $headers.on.blank.pages = 0">
<!-- no output -->
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$candidate"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="header.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="position" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<!--
<fo:block>
<xsl:value-of select="$pageclass"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$sequence"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$position"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$gentext-key"/>
</fo:block>
-->
<fo:block>
<!-- sequence can be odd, even, first, blank -->
<!-- position can be left, center, right -->
<xsl:choose>
<xsl:when test="$sequence = 'blank'">
<!-- nothing -->
</xsl:when>
<xsl:when test="$position='left'">
<!-- Same for odd, even, empty, and blank sequences -->
<xsl:call-template name="draft.text"/>
</xsl:when>
<xsl:when test="($sequence='odd' or $sequence='even') and $position='center'">
<xsl:if test="$pageclass != 'titlepage'">
<xsl:choose>
<xsl:when test="ancestor::book and ($double.sided != 0)">
<fo:retrieve-marker retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:when>
<xsl:when test="$position='center'">
<!-- nothing for empty and blank sequences -->
</xsl:when>
<xsl:when test="$position='right'">
<!-- Same for odd, even, empty, and blank sequences -->
<xsl:call-template name="draft.text"/>
</xsl:when>
<xsl:when test="$sequence = 'first'">
<!-- nothing for first pages -->
</xsl:when>
<xsl:when test="$sequence = 'blank'">
<!-- nothing for blank pages -->
</xsl:when>
</xsl:choose>
</fo:block>
</xsl:template>
<xsl:template name="header.footer.width">
<xsl:param name="location" select="'header'"/>
<xsl:param name="position" select="1"/>
<xsl:variable name="width.set">
<xsl:choose>
<xsl:when test="$location = 'header'">
<xsl:value-of select="normalize-space($header.column.widths)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($footer.column.widths)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="$position = 1">
<xsl:value-of select="substring-before($width.set, ' ')"/>
</xsl:when>
<xsl:when test="$position = 2">
<xsl:value-of select="substring-before(substring-after($width.set, ' '), ' ')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after(substring-after($width.set, ' '), ' ')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Make sure it is a number -->
<xsl:choose>
<xsl:when test = "$width = number($width)">
<xsl:value-of select="$width"/>
</xsl:when>
<xsl:otherwise>
<xsl:message>Error: value in <xsl:value-of select="$location"/>.column.widths at position <xsl:value-of select="$position"/> is not a number.</xsl:message>
<xsl:text>1</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="draft.text">
<xsl:choose>
<xsl:when test="$draft.mode = 'yes'">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'Draft'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$draft.mode = 'no'">
<!-- nop -->
</xsl:when>
<xsl:when test="ancestor-or-self::*[@status][1]/@status = 'draft'">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'Draft'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="running.foot.mode">
<xsl:param name="master-reference" select="'unknown'"/>
<xsl:param name="gentext-key" select="name(.)"/>
<!-- remove -draft from reference -->
<xsl:variable name="pageclass">
<xsl:choose>
<xsl:when test="contains($master-reference, '-draft')">
<xsl:value-of select="substring-before($master-reference, '-draft')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$master-reference"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:static-content flow-name="xsl-region-after-first">
<fo:block xsl:use-attribute-sets="footer.content.properties">
<xsl:call-template name="footer.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'first'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after-odd">
<fo:block xsl:use-attribute-sets="footer.content.properties">
<xsl:call-template name="footer.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'odd'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after-even">
<fo:block xsl:use-attribute-sets="footer.content.properties">
<xsl:call-template name="footer.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'even'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after-blank">
<fo:block xsl:use-attribute-sets="footer.content.properties">
<xsl:call-template name="footer.table">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="'blank'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:static-content>
</xsl:template>
<xsl:template name="footer.table">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<!-- default is a single table style for all footers -->
<!-- Customize it for different page classes or sequence location -->
<xsl:choose>
<xsl:when test="$pageclass = 'index'">
<xsl:attribute name="margin-left">0pt</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:variable name="column1">
<xsl:choose>
<xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
<xsl:otherwise>3</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="column3">
<xsl:choose>
<xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="candidate">
<fo:table table-layout="fixed" width="100%">
<xsl:call-template name="foot.sep.rule">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
<fo:table-column column-number="1">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="$column1"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="2">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="2"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="3">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="$column3"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-body>
<fo:table-row height="14pt">
<fo:table-cell text-align="left"
display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'left'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center"
display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'center'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="right"
display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="position" select="'right'"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:variable>
<!-- Really output a footer? -->
<xsl:choose>
<xsl:when test="$pageclass='titlepage' and $gentext-key='book'
and $sequence='first'">
<!-- no, book titlepages have no footers at all -->
</xsl:when>
<xsl:when test="$sequence = 'blank' and $footers.on.blank.pages = 0">
<!-- no output -->
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$candidate"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="position" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<!--
<fo:block>
<xsl:value-of select="$pageclass"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$sequence"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$position"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$gentext-key"/>
</fo:block>
-->
<fo:block>
<!-- pageclass can be front, body, back -->
<!-- sequence can be odd, even, first, blank -->
<!-- position can be left, center, right -->
<xsl:choose>
<xsl:when test="$pageclass = 'titlepage'">
<!-- nop; no footer on title pages -->
</xsl:when>
<xsl:when test="$double.sided != 0 and $sequence = 'even'
and $position='left'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$double.sided != 0 and ($sequence = 'odd' or $sequence = 'first')
and $position='right'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$double.sided = 0 and $position='center'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$sequence='blank'">
<xsl:choose>
<xsl:when test="$double.sided != 0 and $position = 'left'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$double.sided = 0 and $position = 'center'">
<fo:page-number/>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="page.number.format">
<xsl:param name="element" select="local-name(.)"/>
<xsl:choose>
<xsl:when test="$element = 'toc'">i</xsl:when>
<xsl:when test="$element = 'preface'">i</xsl:when>
<xsl:when test="$element = 'dedication'">i</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/axf.xsl
Index: axf.xsl
===================================================================
<?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:axf="http://www.antennahouse.com/names/XSL/Extensions"
version='1.0'>
<!-- ********************************************************************
$Id: axf.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
******************************************************************** -->
<xsl:template name="axf-document-information">
<xsl:if test="//author[1]">
<xsl:element name="axf:document-info">
<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>
<axf:document-info name="title" value="{$title}"/>
<xsl:if test="//keyword">
<xsl:element name="axf:document-info">
<xsl:attribute name="name">keywords</xsl:attribute>
<xsl:attribute name="value">
<xsl:for-each select="//keyword">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:attribute>
</xsl:element>
</xsl:if>
<xsl:if test="//subjectterm">
<xsl:element name="axf:document-info">
<xsl:attribute name="name">subject</xsl:attribute>
<xsl:attribute name="value">
<xsl:for-each select="//subjectterm">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:attribute>
</xsl:element>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/math.xsl
Index: math.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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:choose>
<xsl:when test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
<xsl:apply-templates select="alt[@role='tex'] | inlinemediaobject/textobject[@role='tex']">
<xsl:with-param name="output.delims">
<xsl:call-template name="tex.math.output.delims"/>
</xsl:with-param>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="alt">
</xsl:template>
<!-- "Support" for MathML -->
<xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="equation/graphic | informalequation/graphic">
<xsl:if test="$passivetex.extensions = 0 or $tex.math.in.alt = ''">
<fo:block>
<xsl:call-template name="process.image"/>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="inlineequation/alt[@role='tex'] |
inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1">
<xsl:param name="output.delims" select="1"/>
<xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
<xsl:processing-instruction name="xmltex">
<xsl:if test="$output.delims != 0">
<xsl:text>$</xsl:text>
</xsl:if>
<xsl:value-of select="."/>
<xsl:if test="$output.delims != 0">
<xsl:text>$</xsl:text>
</xsl:if>
</xsl:processing-instruction>
</xsl:if>
</xsl:template>
<xsl:template match="equation/alt[@role='tex'] | informalequation/alt[@role='tex'] |
equation/mediaobject/textobject[@role='tex'] |
informalequation/mediaobject/textobject[@role='tex']" priority="1">
<xsl:variable name="output.delims">
<xsl:call-template name="tex.math.output.delims"/>
</xsl:variable>
<xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
<xsl:processing-instruction name="xmltex">
<xsl:if test="$output.delims != 0">
<xsl:text>$$</xsl:text>
</xsl:if>
<xsl:value-of select="."/>
<xsl:if test="$output.delims != 0">
<xsl:text>$$</xsl:text>
</xsl:if>
</xsl:processing-instruction>
</xsl:if>
</xsl:template>
<xsl:template match="alt[@role='tex']">
<xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
<xsl:message>
Your equation is misplaced. It should be in inlineequation, equation or informalequation.
</xsl:message>
</xsl:if>
</xsl:template>
<xsl:template name="tex.math.output.delims">
<xsl:variable name="pi.delims">
<xsl:call-template name="pi-attribute">
<xsl:with-param name="pis" select=".//processing-instruction('dbtex')"/>
<xsl:with-param name="attribute" select="'delims'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="result">
<xsl:choose>
<xsl:when test="$pi.delims = 'no'">0</xsl:when>
<xsl:when test="$pi.delims = '' and $tex.math.delims = 0">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$result"/>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/inline.xsl
Index: inline.xsl
===================================================================
<?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'
exclude-result-prefixes="xlink"
version='1.0'>
<!-- ********************************************************************
$Id: inline.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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="simple.xlink">
<xsl:param name="node" select="."/>
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<xsl:choose>
<xsl:when test="$node/@xlink:type='simple' and $node/@xlink:href">
<fo:basic-link>
<xsl:attribute name="href">
<xsl:choose>
<!-- if the href starts with # and does not contain an "(" -->
<!-- or if the href starts with #xpointer(id(, it's just an ID -->
<xsl:when test="starts-with(@xlink:href,'#')
and (not(contains(@xlink:href,'('))
or starts-with(@xlink:href,'#xpointer(id('))">
<xsl:variable name="idref">
<xsl:call-template name="xpointer.idref">
<xsl:with-param name="xpointer" select="@xlink:href"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="targets" select="key('id',$idref)"/>
<xsl:variable name="target" select="$targets[1]"/>
<xsl:call-template name="check.id.unique">
<xsl:with-param name="linkend" select="@linkend"/>
</xsl:call-template>
<xsl:choose>
<xsl:when test="count($target) = 0">
<xsl:message>
<xsl:text>XLink to nonexistent id: </xsl:text>
<xsl:value-of select="$idref"/>
</xsl:message>
<xsl:text>???</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="internal-destination">
<xsl:value-of select="$target/@id"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- otherwise it's a URI -->
<xsl:otherwise>
<xsl:attribute name="internal-destination">
<xsl:value-of select="@xlink.href"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$content"/>
</fo:basic-link>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$content"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="inline.charseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<xsl:choose>
<xsl:when test="@dir">
<fo:inline>
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$content"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$content"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="inline.monoseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline xsl:use-attribute-sets="monospace.properties">
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<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:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<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:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<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" xsl:use-attribute-sets="monospace.properties">
<xsl:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<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" xsl:use-attribute-sets="monospace.properties">
<xsl:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<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 xsl:use-attribute-sets="superscript.properties">
<xsl:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$fop.extensions != 0">
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="baseline-shift">super</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<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 xsl:use-attribute-sets="subscript.properties">
<xsl:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$fop.extensions != 0">
<xsl:attribute name="vertical-align">sub</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="baseline-shift">sub</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:copy-of select="$content"/>
</fo:inline>
</xsl:template>
<!-- ==================================================================== -->
<!-- some special cases -->
<xsl:template match="author">
<xsl:call-template name="person.name"/>
</xsl:template>
<xsl:template match="editor">
<xsl:call-template name="person.name"/>
</xsl:template>
<xsl:template match="othercredit">
<xsl:call-template name="person.name"/>
</xsl:template>
<xsl:template match="authorinitials">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="accel">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="action">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="application">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="classname">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="exceptionname">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="interfacename">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="methodname">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="command">
<xsl:call-template name="inline.boldseq"/>
</xsl:template>
<xsl:template match="computeroutput">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="constant">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="database">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="errorcode">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="errorname">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="errortype">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="errortext">
<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:choose>
<xsl:when test="$function.parens != '0'
and (parameter or function or replaceable)">
<xsl:variable name="nodes" select="text()|*"/>
<xsl:call-template name="inline.monoseq">
<xsl:with-param name="content">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
<xsl:apply-templates select="$nodes[1]"/>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="$nodes[position()>1]"/>
<xsl:text>)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inline.monoseq"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="function/parameter" priority="2">
<xsl:call-template name="inline.italicmonoseq"/>
<xsl:if test="following-sibling::*">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="function/replaceable" priority="2">
<xsl:call-template name="inline.italicmonoseq"/>
<xsl:if test="following-sibling::*">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="guibutton">
<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="code">
<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.monoseq"/>
</xsl:template>
<xsl:template match="token">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="type">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="userinput">
<xsl:call-template name="inline.boldmonoseq"/>
</xsl:template>
<xsl:template match="abbrev">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="acronym">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="citerefentry">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="citetitle">
<xsl:choose>
<xsl:when test="@pubwork = 'article'">
<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="inline.italicseq"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="emphasis">
<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="@role='bold'">
<xsl:call-template name="inline.boldseq"/>
</xsl:when>
<xsl:when test="@role='underline'">
<fo:inline text-decoration="underline">
<xsl:call-template name="inline.charseq"/>
</fo:inline>
</xsl:when>
<xsl:when test="@role='strikethrough'">
<fo:inline text-decoration="line-through">
<xsl:call-template name="inline.charseq"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$depth mod 2 = 1">
<fo:inline font-style="normal">
<xsl:apply-templates/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inline.italicseq"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</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">
<fo:inline font-style="italic">
<xsl:call-template name="inline.charseq"/>
</fo:inline>
</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="glossterm">
<xsl:with-param name="firstterm" select="1"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="glossterm" name="glossterm">
<xsl:param name="firstterm" select="0"/>
<xsl:choose>
<xsl:when test="($firstterm.only.link = 0 or $firstterm = 1) and @linkend">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:call-template name="inline.italicseq"/>
</fo:basic-link>
</xsl:when>
<xsl:when test="not(@linkend)
and ($firstterm.only.link = 0 or $firstterm = 1)
and ($glossterm.auto.link != 0)
and $glossary.collection != ''">
<xsl:variable name="term">
<xsl:choose>
<xsl:when test="@baseform"><xsl:value-of select="@baseform"/></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="cterm"
select="(document($glossary.collection,.)//glossentry[glossterm=$term])[1]"/>
<xsl:choose>
<xsl:when test="not($cterm)">
<xsl:message>
<xsl:text>There's no entry for </xsl:text>
<xsl:value-of select="$term"/>
<xsl:text> in </xsl:text>
<xsl:value-of select="$glossary.collection"/>
</xsl:message>
<xsl:call-template name="inline.italicseq"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id">
<xsl:choose>
<xsl:when test="$cterm/@id">
<xsl:value-of select="$cterm/@id"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="generate-id($cterm)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:basic-link internal-destination="{$id}"
xsl:use-attribute-sets="xref.properties">
<xsl:call-template name="inline.italicseq"/>
</fo:basic-link>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="not(@linkend)
and ($firstterm.only.link = 0 or $firstterm = 1)
and $glossterm.auto.link != 0">
<xsl:variable name="term">
<xsl:choose>
<xsl:when test="@baseform">
<xsl:value-of select="@baseform"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="targets"
select="//glossentry[glossterm=$term or glossterm/@baseform=$term]"/>
<xsl:variable name="target" select="$targets[1]"/>
<xsl:choose>
<xsl:when test="count($targets)=0">
<xsl:message>
<xsl:text>Error: no glossentry for glossterm: </xsl:text>
<xsl:value-of select="."/>
<xsl:text>.</xsl:text>
</xsl:message>
<xsl:call-template name="inline.italicseq"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="termid">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$target"/>
</xsl:call-template>
</xsl:variable>
<fo:basic-link internal-destination="{$termid}"
xsl:use-attribute-sets="xref.properties">
<xsl:call-template name="inline.charseq"/>
</fo:basic-link>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inline.italicseq"/>
</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></</xsl:text>
<xsl:apply-templates/>
<xsl:text>></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>&</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>&#</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><?</xsl:text>
<xsl:apply-templates/>
<xsl:text>></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><?</xsl:text>
<xsl:apply-templates/>
<xsl:text>?></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><</xsl:text>
<xsl:apply-templates/>
<xsl:text>></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><</xsl:text>
<xsl:apply-templates/>
<xsl:text>/></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><!--</xsl:text>
<xsl:apply-templates/>
<xsl:text>--></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">
<fo:inline keep-together.within-line="always" hyphenate="false">
<xsl:text><</xsl:text>
<xsl:apply-templates/>
<xsl:text>></xsl:text>
</fo:inline>
</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 select="."/>
</xsl:for-each>
</xsl:template>
<xsl:template match="orgname">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:template match="uri">
<xsl:call-template name="inline.monoseq"/>
</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:value-of select="$menuchoice.menu.separator"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$menuchoice.separator"/>
</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:template match="personname">
<xsl:call-template name="anchor"/>
<xsl:call-template name="person.name"/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="beginpage">
<!-- does nothing; this *is not* markup to force a page break. -->
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/callout.xsl
Index: callout.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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="coref">
<!-- tricky; this relies on the fact that we can process the "co" that's -->
<!-- "over there" as if it were "right here" -->
<xsl:variable name="co" select="key('id', @linkend)"/>
<xsl:variable name="id" select="@id"/>
<xsl:choose>
<xsl:when test="not($co)">
<xsl:message>
<xsl:text>Error: coref link is broken: </xsl:text>
<xsl:value-of select="@linkend"/>
</xsl:message>
</xsl:when>
<xsl:when test="local-name($co) != 'co'">
<xsl:message>
<xsl:text>Error: coref doesn't point to a co: </xsl:text>
<xsl:value-of select="@linkend"/>
</xsl:message>
</xsl:when>
<xsl:otherwise>
<fo:inline>
<xsl:if test="$id != ''">
<xsl:attribute name="id">
<xsl:value-of select="$id"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="$co" mode="callout-bug"/>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="co" mode="callout-bug">
<xsl:call-template name="callout-bug">
<xsl:with-param name="conum">
<xsl:number count="co"
level="any"
from="programlisting|screen|literallayout|synopsis"
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 <= $callout.graphics.number.limit">
<xsl:variable name="filename"
select="concat($callout.graphics.path,$conum,$callout.graphics.extension)"/>
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0
or $fop.extensions != 0
or $arbortext.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>url(</xsl:text>
<xsl:value-of select="$filename"/>
<xsl:text>)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</fo:external-graphic>
</xsl:when>
<xsl:when test="$callout.unicode != 0
and $conum <= $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">❶</xsl:when>
<xsl:when test="$conum = 2">❷</xsl:when>
<xsl:when test="$conum = 3">❸</xsl:when>
<xsl:when test="$conum = 4">❹</xsl:when>
<xsl:when test="$conum = 5">❺</xsl:when>
<xsl:when test="$conum = 6">❻</xsl:when>
<xsl:when test="$conum = 7">❼</xsl:when>
<xsl:when test="$conum = 8">❽</xsl:when>
<xsl:when test="$conum = 9">❾</xsl:when>
<xsl:when test="$conum = 10">❿</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.fontset}"
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.fontset}"
font-weight="bold"
font-size="75%">
<xsl:value-of select="$conum"/>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/admon.xsl
Index: admon.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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:variable name="filename">
<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:variable>
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0
or $fop.extensions != 0
or $arbortext.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>url(</xsl:text>
<xsl:value-of select="$filename"/>
<xsl:text>)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="graphical.admonition">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="graphic.width">
<xsl:call-template name="admon.graphic.width"/>
</xsl:variable>
<fo:block id="{$id}">
<fo:list-block provisional-distance-between-starts="{$graphic.width} + 18pt"
provisional-label-separation="18pt"
xsl:use-attribute-sets="list.block.spacing">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
<fo:external-graphic width="auto" height="auto"
content-width="{$graphic.width}" >
<xsl:attribute name="src">
<xsl:call-template name="admon.graphic"/>
</xsl:attribute>
</fo:external-graphic>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<xsl:if test="$admon.textlabel != 0 or title">
<fo:block xsl:use-attribute-sets="admonition.title.properties">
<xsl:apply-templates select="." mode="object.title.markup"/>
</fo:block>
</xsl:if>
<fo:block xsl:use-attribute-sets="admonition.properties">
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</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}">
<xsl:if test="$admon.textlabel != 0 or title">
<fo:block keep-with-next='always'
xsl:use-attribute-sets="admonition.title.properties">
<xsl:apply-templates select="." mode="object.title.markup"/>
</fo:block>
</xsl:if>
<fo:block xsl:use-attribute-sets="admonition.properties">
<xsl:apply-templates/>
</fo:block>
</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:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/fo.xsl
Index: fo.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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="anchor">
<xsl:param name="node" select="."/>
<xsl:param name="conditional" select="1"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$node"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$conditional = 0 or $node/@id">
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
</xsl:if>
</xsl:template>
<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'">©</xsl:when>
<xsl:when test="$dingbat='trademark'">™</xsl:when>
<xsl:when test="$dingbat='trade'">™</xsl:when>
<xsl:when test="$dingbat='registered'">®</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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/docbookng.xsl
Index: docbookng.xsl
===================================================================
<?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 match="info"/>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/synop.xsl
Index: synop.xsl
===================================================================
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY RE " ">
<!ENTITY nbsp " ">
]>
<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 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://nwalsh.com/docbook/xsl/ for copyright
and other information.
******************************************************************** -->
<!-- ==================================================================== -->
<!-- synopsis is in verbatim -->
<!-- ==================================================================== -->
<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" name="group-or-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:call-template name="group-or-arg"/>
</xsl:template>
<xsl:template match="sbr">
<fo:block/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="synopfragmentref">
<xsl:variable name="target" select="key('id', at linkend)"/>
<xsl:variable name="snum">
<xsl:apply-templates select="$target" mode="synopfragment.number"/>
</xsl:variable>
<fo:inline font-style="italic">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:text>(</xsl:text>
<xsl:value-of select="$snum"/>
<xsl:text>)</xsl:text>
</fo:basic-link>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
</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 space-after.minimum="0.8em"
space-after.optimum="1em"
space-after.maximum="1.2em">
<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">
<fo:block>
<xsl:apply-templates/>
<xsl:text>;</xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="funcparams">
<xsl:text>(</xsl:text>
<xsl:apply-templates/>
<xsl:text>)</xsl:text>
</xsl:template>
<!-- ==================================================================== -->
<xsl:variable name="default-classsynopsis-language">java</xsl:variable>
<xsl:template match="classsynopsis
|fieldsynopsis
|methodsynopsis
|constructorsynopsis
|destructorsynopsis">
<xsl:param name="language">
<xsl:choose>
<xsl:when test="@language">
<xsl:value-of select="@language"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$default-classsynopsis-language"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:message>process <xsl:value-of select="name(.)"/> in <xsl:value-of select="$language"/></xsl:message>
<xsl:choose>
<xsl:when test="$language='java'">
<xsl:apply-templates select="." mode="java"/>
</xsl:when>
<xsl:when test="$language='perl'">
<xsl:apply-templates select="." mode="perl"/>
</xsl:when>
<xsl:when test="$language='idl'">
<xsl:apply-templates select="." mode="idl"/>
</xsl:when>
<xsl:when test="$language='cpp'">
<xsl:apply-templates select="." mode="cpp"/>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>Unrecognized language on </xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>: </xsl:text>
<xsl:value-of select="$language"/>
</xsl:message>
<xsl:apply-templates select=".">
<xsl:with-param name="language"
select="$default-classsynopsis-language"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="synop-break">
<xsl:if test="parent::classsynopsis
or (following-sibling::fieldsynopsis
|following-sibling::methodsynopsis
|following-sibling::constructorsynopsis
|following-sibling::destructorsynopsis)">
<fo:inline>&RE;</fo:inline>
</xsl:if>
</xsl:template>
<!-- ===== Java ======================================================== -->
<xsl:template match="classsynopsis" mode="java">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:apply-templates select="ooclass[1]" mode="java"/>
<xsl:if test="ooclass[position() > 1]">
<xsl:text> extends</xsl:text>
<xsl:apply-templates select="ooclass[position() > 1]" mode="java"/>
<xsl:if test="oointerface|ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="oointerface">
<xsl:text>implements</xsl:text>
<xsl:apply-templates select="oointerface" mode="java"/>
<xsl:if test="ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="ooexception">
<xsl:text>throws</xsl:text>
<xsl:apply-templates select="ooexception" mode="java"/>
</xsl:if>
<xsl:text> {&RE;</xsl:text>
<xsl:apply-templates select="constructorsynopsis
|destructorsynopsis
|fieldsynopsis
|methodsynopsis
|classsynopsisinfo" mode="java"/>
<xsl:text>}</xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="classsynopsisinfo" mode="java">
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="ooclass|oointerface|ooexception" mode="java">
<xsl:choose>
<xsl:when test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="modifier" mode="java">
<xsl:apply-templates mode="java"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="classname" mode="java">
<xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="interfacename" mode="java">
<xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="exceptionname" mode="java">
<xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="fieldsynopsis" mode="java">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates mode="java"/>
<xsl:text>;</xsl:text>
<xsl:call-template name="synop-break"/>
</fo:block>
</xsl:template>
<xsl:template match="type" mode="java">
<xsl:apply-templates mode="java"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="varname" mode="java">
<xsl:apply-templates mode="java"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="initializer" mode="java">
<xsl:text>= </xsl:text>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="void" mode="java">
<xsl:text>void </xsl:text>
</xsl:template>
<xsl:template match="methodname" mode="java">
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="methodparam" mode="java">
<xsl:param name="indent">0</xsl:param>
<xsl:if test="position() > 1">
<xsl:text>,&RE;</xsl:text>
<xsl:if test="$indent > 0">
<xsl:call-template name="copy-string">
<xsl:with-param name="string"> </xsl:with-param>
<xsl:with-param name="count" select="$indent + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template match="parameter" mode="java">
<xsl:apply-templates mode="java"/>
</xsl:template>
<xsl:template mode="java"
match="constructorsynopsis|destructorsynopsis|methodsynopsis">
<xsl:variable name="modifiers" select="modifier"/>
<xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
<xsl:variable name="decl">
<xsl:text> </xsl:text>
<xsl:apply-templates select="$modifiers" mode="java"/>
<!-- type -->
<xsl:if test="name($notmod[1]) != 'methodname'">
<xsl:apply-templates select="$notmod[1]" mode="java"/>
</xsl:if>
<xsl:apply-templates select="methodname" mode="java"/>
</xsl:variable>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:copy-of select="$decl"/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="methodparam" mode="java">
<xsl:with-param name="indent" select="string-length($decl)"/>
</xsl:apply-templates>
<xsl:text>)</xsl:text>
<xsl:if test="exceptionname">
<xsl:text>&RE; throws </xsl:text>
<xsl:apply-templates select="exceptionname" mode="java"/>
</xsl:if>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<!-- ===== C++ ========================================================= -->
<xsl:template match="classsynopsis" mode="cpp">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:apply-templates select="ooclass[1]" mode="cpp"/>
<xsl:if test="ooclass[position() > 1]">
<xsl:text>: </xsl:text>
<xsl:apply-templates select="ooclass[position() > 1]" mode="cpp"/>
<xsl:if test="oointerface|ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="oointerface">
<xsl:text> implements</xsl:text>
<xsl:apply-templates select="oointerface" mode="cpp"/>
<xsl:if test="ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="ooexception">
<xsl:text> throws</xsl:text>
<xsl:apply-templates select="ooexception" mode="cpp"/>
</xsl:if>
<xsl:text> {&RE;</xsl:text>
<xsl:apply-templates select="constructorsynopsis
|destructorsynopsis
|fieldsynopsis
|methodsynopsis
|classsynopsisinfo" mode="cpp"/>
<xsl:text>}</xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="classsynopsisinfo" mode="cpp">
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="ooclass|oointerface|ooexception" mode="cpp">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="modifier" mode="cpp">
<xsl:apply-templates mode="cpp"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="classname" mode="cpp">
<xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="interfacename" mode="cpp">
<xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="exceptionname" mode="cpp">
<xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="fieldsynopsis" mode="cpp">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates mode="cpp"/>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<xsl:template match="type" mode="cpp">
<xsl:apply-templates mode="cpp"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="varname" mode="cpp">
<xsl:apply-templates mode="cpp"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="initializer" mode="cpp">
<xsl:text>= </xsl:text>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="void" mode="cpp">
<xsl:text>void </xsl:text>
</xsl:template>
<xsl:template match="methodname" mode="cpp">
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="methodparam" mode="cpp">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template match="parameter" mode="cpp">
<xsl:apply-templates mode="cpp"/>
</xsl:template>
<xsl:template mode="cpp"
match="constructorsynopsis|destructorsynopsis|methodsynopsis">
<xsl:variable name="modifiers" select="modifier"/>
<xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates select="$modifiers" mode="cpp"/>
<!-- type -->
<xsl:if test="name($notmod[1]) != 'methodname'">
<xsl:apply-templates select="$notmod[1]" mode="cpp"/>
</xsl:if>
<xsl:apply-templates select="methodname" mode="cpp"/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="methodparam" mode="cpp"/>
<xsl:text>)</xsl:text>
<xsl:if test="exceptionname">
<xsl:text>&RE; throws </xsl:text>
<xsl:apply-templates select="exceptionname" mode="cpp"/>
</xsl:if>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<!-- ===== IDL ========================================================= -->
<xsl:template match="classsynopsis" mode="idl">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text>interface </xsl:text>
<xsl:apply-templates select="ooclass[1]" mode="idl"/>
<xsl:if test="ooclass[position() > 1]">
<xsl:text>: </xsl:text>
<xsl:apply-templates select="ooclass[position() > 1]" mode="idl"/>
<xsl:if test="oointerface|ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="oointerface">
<xsl:text> implements</xsl:text>
<xsl:apply-templates select="oointerface" mode="idl"/>
<xsl:if test="ooexception">
<xsl:text>&RE; </xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="ooexception">
<xsl:text> throws</xsl:text>
<xsl:apply-templates select="ooexception" mode="idl"/>
</xsl:if>
<xsl:text> {&RE;</xsl:text>
<xsl:apply-templates select="constructorsynopsis
|destructorsynopsis
|fieldsynopsis
|methodsynopsis
|classsynopsisinfo" mode="idl"/>
<xsl:text>}</xsl:text>
</fo:block>
</xsl:template>
<xsl:template match="classsynopsisinfo" mode="idl">
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="ooclass|oointerface|ooexception" mode="idl">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="modifier" mode="idl">
<xsl:apply-templates mode="idl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="classname" mode="idl">
<xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="interfacename" mode="idl">
<xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="exceptionname" mode="idl">
<xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="fieldsynopsis" mode="idl">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates mode="idl"/>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<xsl:template match="type" mode="idl">
<xsl:apply-templates mode="idl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="varname" mode="idl">
<xsl:apply-templates mode="idl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="initializer" mode="idl">
<xsl:text>= </xsl:text>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="void" mode="idl">
<xsl:text>void </xsl:text>
</xsl:template>
<xsl:template match="methodname" mode="idl">
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="methodparam" mode="idl">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template match="parameter" mode="idl">
<xsl:apply-templates mode="idl"/>
</xsl:template>
<xsl:template mode="idl"
match="constructorsynopsis|destructorsynopsis|methodsynopsis">
<xsl:variable name="modifiers" select="modifier"/>
<xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates select="$modifiers" mode="idl"/>
<!-- type -->
<xsl:if test="name($notmod[1]) != 'methodname'">
<xsl:apply-templates select="$notmod[1]" mode="idl"/>
</xsl:if>
<xsl:apply-templates select="methodname" mode="idl"/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="methodparam" mode="idl"/>
<xsl:text>)</xsl:text>
<xsl:if test="exceptionname">
<xsl:text>&RE; raises(</xsl:text>
<xsl:apply-templates select="exceptionname" mode="idl"/>
<xsl:text>)</xsl:text>
</xsl:if>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<!-- ===== Perl ======================================================== -->
<xsl:template match="classsynopsis" mode="perl">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text>package </xsl:text>
<xsl:apply-templates select="ooclass[1]" mode="perl"/>
<xsl:text>;&RE;</xsl:text>
<xsl:if test="ooclass[position() > 1]">
<xsl:text>@ISA = (</xsl:text>
<xsl:apply-templates select="ooclass[position() > 1]" mode="perl"/>
<xsl:text>);&RE;</xsl:text>
</xsl:if>
<xsl:apply-templates select="constructorsynopsis
|destructorsynopsis
|fieldsynopsis
|methodsynopsis
|classsynopsisinfo" mode="perl"/>
</fo:block>
</xsl:template>
<xsl:template match="classsynopsisinfo" mode="perl">
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="ooclass|oointerface|ooexception" mode="perl">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="modifier" mode="perl">
<xsl:apply-templates mode="perl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="classname" mode="perl">
<xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="interfacename" mode="perl">
<xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="exceptionname" mode="perl">
<xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="fieldsynopsis" mode="perl">
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text> </xsl:text>
<xsl:apply-templates mode="perl"/>
<xsl:text>;</xsl:text>
</fo:block>
<xsl:call-template name="synop-break"/>
</xsl:template>
<xsl:template match="type" mode="perl">
<xsl:apply-templates mode="perl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="varname" mode="perl">
<xsl:apply-templates mode="perl"/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="initializer" mode="perl">
<xsl:text>= </xsl:text>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="void" mode="perl">
<xsl:text>void </xsl:text>
</xsl:template>
<xsl:template match="methodname" mode="perl">
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="methodparam" mode="perl">
<xsl:if test="position() > 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template match="parameter" mode="perl">
<xsl:apply-templates mode="perl"/>
</xsl:template>
<xsl:template mode="perl"
match="constructorsynopsis|destructorsynopsis|methodsynopsis">
<xsl:variable name="modifiers" select="modifier"/>
<xsl:variable name="notmod" select="*[name(.) != 'modifier']"/>
<fo:block wrap-option='no-wrap'
white-space-collapse='false'
linefeed-treatment="preserve"
xsl:use-attribute-sets="monospace.verbatim.properties">
<xsl:text>sub </xsl:text>
<xsl:apply-templates select="methodname" mode="perl"/>
<xsl:text> { ... };</xsl:text>
<xsl:call-template name="synop-break"/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/param.xsl
Index: param.xsl
===================================================================
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" exclude-result-prefixes="src" version="1.0">
<!-- This file is generated from param.xweb; do not edit this file! -->
<!-- ********************************************************************
$Id: param.xsl,v 1.1 2006/11/10 17:40:17 csuconic 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:param name="admon.graphics.extension" select="'.png'"/>
<xsl:param name="admon.graphics" select="0"/>
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.textlabel" select="1"/>
<xsl:attribute-set name="admonition.properties"/>
<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>
<xsl:param name="alignment">justify</xsl:param>
<xsl:param name="appendix.autolabel" select="1"/>
<xsl:param name="arbortext.extensions" select="0"/>
<xsl:attribute-set name="article.appendix.title.properties" use-attribute-sets="section.title.properties section.title.level1.properties">
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"/>
</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="author.othername.in.middle" select="1"/>
<xsl:param name="autotoc.label.separator" select="'. '"/>
<xsl:param name="axf.extensions" select="0"/>
<xsl:param name="biblioentry.item.separator">. </xsl:param>
<xsl:param name="bibliography.collection" select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"/>
<xsl:param name="bibliography.numbered" select="0"/>
<xsl:attribute-set name="blockquote.properties">
<xsl:attribute name="start-indent">0.5in</xsl:attribute>
<xsl:attribute name="end-indent">0.5in</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:param name="body.font.family" select="'serif'"/>
<xsl:param name="body.font.master">10</xsl:param>
<xsl:param name="body.font.size">
<xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
</xsl:param>
<xsl:param name="body.margin.bottom" select="'0.5in'"/>
<xsl:param name="body.margin.top" select="'0.5in'"/>
<xsl:param name="bridgehead.in.toc" select="0"/>
<xsl:param name="callout.defaultcolumn" select="'60'"/>
<xsl:param name="callout.graphics.extension" select="'.png'"/>
<xsl:param name="callout.graphics" select="'1'"/>
<xsl:param name="callout.graphics.number.limit" select="'10'"/>
<xsl:param name="callout.graphics.path" select="'images/callouts/'"/>
<xsl:param name="callout.unicode.font" select="'ZapfDingbats'"/>
<xsl:param name="callout.unicode" select="0"/>
<xsl:param name="callout.unicode.number.limit" select="'10'"/>
<xsl:param name="callout.unicode.start.character" select="10102"/>
<xsl:param name="callouts.extension" select="'1'"/>
<xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="column.count.back" select="1"/>
<xsl:param name="column.count.body" select="1"/>
<xsl:param name="column.count.front" select="1"/>
<xsl:param name="column.count.index" select="2"/>
<xsl:param name="column.count.lot" select="1"/>
<xsl:param name="column.count.titlepage" select="1"/>
<xsl:param name="column.gap.back" select="'12pt'"/>
<xsl:param name="column.gap.body" select="'12pt'"/>
<xsl:param name="column.gap.front" select="'12pt'"/>
<xsl:param name="column.gap.index" select="'12pt'"/>
<xsl:param name="column.gap.lot" select="'12pt'"/>
<xsl:param name="column.gap.titlepage" select="'12pt'"/>
<xsl:attribute-set name="compact.list.item.spacing">
<xsl:attribute name="space-before.optimum">0em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.2em</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="current.docid" select="''"/>
<xsl:param name="default.float.class" select="'before'"/>
<xsl:param name="default.image.width" select="''"/>
<xsl:param name="default.table.width" select="''"/>
<xsl:param name="default.units" select="'pt'"/>
<xsl:param name="dingbat.font.family" select="'serif'"/>
<xsl:param name="double.sided" select="0"/>
<xsl:param name="draft.mode" select="'maybe'"/>
<xsl:param name="draft.watermark.image" select="'http://docbook.sourceforge.net/release/images/draft.png'"/>
<xsl:param xmlns:fo="http://www.w3.org/1999/XSL/Format" name="ebnf.assignment">
<fo:inline font-family="{$monospace.font.family}">
<xsl:text>::=</xsl:text>
</fo:inline>
</xsl:param>
<xsl:param name="ebnf.statement.terminator"/>
<xsl:attribute-set name="equation.properties" use-attribute-sets="formal.object.properties"/>
<xsl:attribute-set name="example.properties" use-attribute-sets="formal.object.properties"/>
<xsl:attribute-set name="figure.properties" use-attribute-sets="formal.object.properties"/>
<xsl:param name="firstterm.only.link" select="0"/>
<xsl:attribute-set name="footer.content.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"/>
</xsl:attribute>
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"/>
</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="footer.rule" select="1"/>
<xsl:param name="footer.column.widths" select="'1 1 1'"/>
<xsl:param name="footers.on.blank.pages" select="1"/>
<xsl:param name="footnote.font.size">
<xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
</xsl:param>
<xsl:param name="footnote.number.format" select="'1'"/>
<xsl:param name="footnote.number.symbols" select="''"/>
<xsl:param name="fop.extensions" select="0"/>
<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-together.within-column">always</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="formal.procedures" select="1"/>
<xsl:param name="formal.title.placement">
figure before
example before
equation before
table before
procedure before
task before
</xsl:param>
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
<xsl:attribute name="hyphenate">false</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
<xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="funcsynopsis.decoration" select="1"/>
<xsl:param name="funcsynopsis.style">kr</xsl:param>
<xsl:param name="function.parens">0</xsl:param>
<xsl:param name="generate.index" select="1"/>
<xsl:param name="generate.section.toc.level" select="0"/>
<xsl:param name="generate.toc">
/appendix toc,title
article/appendix nop
/article toc,title
book toc,title,figure,table,example,equation
/chapter toc,title
part toc,title
/preface toc,title
qandadiv toc
qandaset toc
reference toc,title
/sect1 toc
/sect2 toc
/sect3 toc
/sect4 toc
/sect5 toc
/section toc
set toc,title
</xsl:param>
<xsl:param name="glossary.as.blocks" select="0"/>
<xsl:param name="glossary.collection" select="''"/>
<xsl:param name="glossentry.show.acronym" select="'no'"/>
<xsl:param name="glosslist.as.blocks" select="0"/>
<xsl:param name="glossterm.auto.link" select="0"/>
<xsl:param name="glossterm.separation" select="'0.25in'"/>
<xsl:param name="glossterm.width" select="'2in'"/>
<xsl:param name="graphic.default.extension"/>
<xsl:attribute-set name="header.content.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"/>
</xsl:attribute>
<xsl:attribute name="margin-left">
<xsl:value-of select="$title.margin.left"/>
</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="header.rule" select="1"/>
<xsl:param name="header.column.widths" select="'1 1 1'"/>
<xsl:param name="headers.on.blank.pages" select="1"/>
<xsl:param name="hyphenate">true</xsl:param>
<xsl:param name="ignore.image.scaling" select="0"/>
<xsl:attribute-set name="informal.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-set>
<xsl:attribute-set name="index.preferred.page.properties">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="insert.xref.page.number">no</xsl:param>
<xsl:param name="l10n.gentext.default.language" select="'en'"/>
<xsl:param name="l10n.gentext.language" select="''"/>
<xsl:param name="l10n.gentext.use.xref.language" select="0"/>
<xsl:param name="label.from.part" select="'0'"/>
<xsl:param name="line-height" select="'normal'"/>
<xsl:param name="linenumbering.everyNth" select="'5'"/>
<xsl:param name="linenumbering.extension" select="'1'"/>
<xsl:param name="linenumbering.separator" select="' '"/>
<xsl:param name="linenumbering.width" select="'3'"/>
<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 name="space-after.optimum">1em</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
</xsl: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>
<xsl:param name="make.index.markup" select="0"/>
<xsl:param name="make.single.year.ranges" select="0"/>
<xsl:param name="make.year.ranges" select="0"/>
<xsl:param name="marker.section.level" select="2"/>
<xsl:param name="menuchoice.menu.separator" select="'->'"/>
<xsl:param name="menuchoice.separator" select="'+'"/>
<xsl:param name="monospace.font.family" select="'monospace'"/>
<xsl:attribute-set name="monospace.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$monospace.font.family"/>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
<xsl:attribute name="text-align">start</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="nominal.table.width" select="'6in'"/>
<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>
<xsl:param name="olink.doctitle" select="0"/>
<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>
<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>
<xsl:param name="page.margin.bottom" select="'0.5in'"/>
<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>
<xsl:param name="page.margin.outer">
<xsl:choose>
<xsl:when test="$double.sided != 0">0.75in</xsl:when>
<xsl:otherwise>1in</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="page.margin.top" select="'0.5in'"/>
<xsl:param name="page.orientation" select="'portrait'"/>
<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>
<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>
<xsl:param name="paper.type" select="'USletter'"/>
<xsl:param name="part.autolabel" select="1"/>
<xsl:param name="passivetex.extensions" select="0"/>
<xsl:param name="preface.autolabel" select="0"/>
<xsl:param name="preferred.mediaobject.role"/>
<xsl:attribute-set name="procedure.properties" use-attribute-sets="formal.object.properties"/>
<xsl:param name="process.empty.source.toc" select="0"/>
<xsl:param name="process.source.toc" select="0"/>
<xsl:param name="profile.arch" select="''"/>
<xsl:param name="profile.attribute" select="''"/>
<xsl:param name="profile.condition" select="''"/>
<xsl:param name="profile.conformance" select="''"/>
<xsl:param name="profile.lang" select="''"/>
<xsl:param name="profile.os" select="''"/>
<xsl:param name="profile.revision" select="''"/>
<xsl:param name="profile.revisionflag" select="''"/>
<xsl:param name="profile.role" select="''"/>
<xsl:param name="profile.security" select="''"/>
<xsl:param name="profile.separator" select="';'"/>
<xsl:param name="profile.userlevel" select="''"/>
<xsl:param name="profile.value" select="''"/>
<xsl:param name="profile.vendor" select="''"/>
<xsl:param name="punct.honorific" select="'.'"/>
<xsl:param name="qanda.defaultlabel">number</xsl:param>
<xsl:param name="qanda.inherit.numeration" select="1"/>
<xsl:param name="qandadiv.autolabel" select="1"/>
<xsl:attribute-set name="qanda.title.level1.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 2.0736"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.level2.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.728"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.level3.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.44"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.level4.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.level5.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.level6.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="qanda.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"/>
</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<!-- font size is calculated dynamically by qanda.heading template -->
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="refentry.generate.name" select="1"/>
<xsl:param name="refentry.generate.title" select="0"/>
<xsl:param name="refentry.pagebreak" select="1"/>
<xsl:attribute-set name="refentry.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"/>
</xsl:attribute>
<xsl:attribute name="font-size">18pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="space-after">1em</xsl:attribute>
<xsl:attribute name="hyphenate">false</xsl:attribute>
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
<xsl:attribute name="space-after.optimum">0.5em</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.6em</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="refentry.xref.manvolnum" select="1"/>
<xsl:param name="region.after.extent" select="'0.4in'"/>
<xsl:param name="region.before.extent" select="'0.4in'"/>
<xsl:attribute-set name="root.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$body.fontset"/>
</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.size"/>
</xsl:attribute>
<xsl:attribute name="text-align">
<xsl:value-of select="$alignment"/>
</xsl:attribute>
<xsl:attribute name="line-height">
<xsl:value-of select="$line-height"/>
</xsl:attribute>
<xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="rootid" select="''"/>
<xsl:param name="runinhead.default.title.end.punct" select="'.'"/>
<xsl:param name="runinhead.title.end.punct" select="'.!?:'"/>
<xsl:param name="sans.font.family" select="'sans-serif'"/>
<xsl:param name="section.autolabel" select="0"/>
<xsl:param name="section.label.includes.component.label" select="0"/>
<xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 2.0736"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level2.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.728"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level3.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.44"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level4.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.2"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level5.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level6.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.properties">
<xsl:attribute name="font-family">
<xsl:value-of select="$title.font.family"/>
</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<!-- font size is calculated dynamically by section.heading template -->
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.level1.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.level2.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.level3.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.level4.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.level5.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.level6.properties" use-attribute-sets="section.properties">
</xsl:attribute-set>
<xsl:attribute-set name="section.properties">
</xsl:attribute-set>
<xsl:param name="segmentedlist.as.table" select="0"/>
<xsl:param name="shade.verbatim" select="0"/>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="show.comments">1</xsl:param>
<xsl:attribute-set name="sidebar.properties" use-attribute-sets="formal.object.properties">
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">1pt</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
<xsl:attribute name="padding-left">12pt</xsl:attribute>
<xsl:attribute name="padding-right">12pt</xsl:attribute>
<xsl:attribute name="padding-top">6pt</xsl:attribute>
<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
<!--
<xsl:attribute name="margin-left">12pt</xsl:attribute>
<xsl:attribute name="margin-right">12pt</xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
-->
</xsl:attribute-set>
<xsl:attribute-set name="subscript.properties">
<xsl:attribute name="font-size">75%</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="superscript.properties">
<xsl:attribute name="font-size">75%</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="symbol.font.family" select="'Symbol,ZapfDingbats'"/>
<xsl:param name="table.cell.border.color" select="'black'"/>
<xsl:param name="table.cell.border.style" select="'solid'"/>
<xsl:param name="table.cell.border.thickness" select="'0.5pt'"/>
<xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">2pt</xsl:attribute>
<xsl:attribute name="padding-right">2pt</xsl:attribute>
<xsl:attribute name="padding-top">2pt</xsl:attribute>
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="table.footnote.number.format" select="'a'"/>
<xsl:param name="table.footnote.number.symbols" select="''"/>
<xsl:param name="table.frame.border.color" select="'black'"/>
<xsl:param name="table.frame.border.style" select="'solid'"/>
<xsl:param name="table.frame.border.thickness" select="'0.5pt'"/>
<xsl:attribute-set name="table.properties" use-attribute-sets="formal.object.properties"/>
<xsl:param name="tablecolumns.extension" select="'1'"/>
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="border-before-width.conditionality">retain</xsl:attribute>
<xsl:attribute name="border-collapse">collapse</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="target.database.document" select="''"/>
<xsl:param name="tex.math.delims" select="'1'"/>
<xsl:param name="tex.math.in.alt" select="''"/>
<xsl:param name="textinsert.extension" select="'1'"/>
<xsl:param name="title.font.family" select="'sans-serif'"/>
<xsl:param name="title.margin.left">
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
<xsl:otherwise>-4pc</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="toc.indent.width" select="24"/>
<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:param name="toc.section.depth">2</xsl:param>
<xsl:param name="ulink.footnote.number.format" select="'1'"/>
<xsl:param name="ulink.footnotes" select="0"/>
<xsl:param name="ulink.hyphenate" select="''"/>
<xsl:param name="ulink.show" select="1"/>
<xsl:param name="use.extensions" select="'0'"/>
<xsl:param name="use.local.olink.style" select="0"/>
<xsl:param name="use.role.as.xrefstyle" select="1"/>
<xsl:param name="use.role.for.mediaobject" select="1"/>
<xsl:param name="use.svg" select="1"/>
<xsl:param name="variablelist.as.blocks" select="0"/>
<xsl:param name="variablelist.max.termlength">24</xsl:param>
<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 name="space-after.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="xep.extensions" select="0"/>
<xsl:attribute-set name="xep.index.item.properties">
<xsl:attribute name="merge-subsequent-page-numbers">true</xsl:attribute>
<xsl:attribute name="link-back">true</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="xref.label-page.separator"><xsl:text> </xsl:text></xsl:param>
<xsl:param name="xref.label-title.separator">: </xsl:param>
<xsl:attribute-set name="xref.properties">
</xsl:attribute-set>
<xsl:param name="xref.title-page.separator"><xsl:text> </xsl:text></xsl:param>
<xsl:param name="xref.with.number.and.title" select="1"/>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/titlepage.templates.xsl
Index: titlepage.templates.xsl
===================================================================
<?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="info/title">
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="article.titlepage.recto.auto.mode" select="info/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" font-family="{$title.fontset}">
<fo:block text-align="center">
<xsl:call-template name="article.titlepage.before.recto"/>
<xsl:call-template name="article.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="article.titlepage.before.verso"/>
<xsl:call-template name="article.titlepage.verso"/>
</fo:block>
<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" keep-with-next="always" font-size="24.8832pt" font-weight="bold">
<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">
<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" space-before="0.5em" font-size="14.4pt">
<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" space-before="0.5em" font-size="14.4pt">
<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" space-before="0.5em" font-size="14.4pt">
<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" space-before="0.5em">
<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" space-before="0.5em">
<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" space-before="0.5em">
<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" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
<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" space-before="0.5em">
<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" space-before="0.5em">
<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" space-before="0.5em">
<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" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
<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="info/title">
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="set.titlepage.before.recto"/>
<xsl:call-template name="set.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="set.titlepage.before.verso"/>
<xsl:call-template name="set.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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.fontset}" 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="info/title">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/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="info/title">
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/abstract"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="book.titlepage.before.recto"/>
<xsl:call-template name="book.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="book.titlepage.before.verso"/>
<xsl:call-template name="book.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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.fontset}">
<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.fontset}">
<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:call-template name="verso.authorgroup">
</xsl:call-template>
</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="info/title">
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="part.titlepage.before.recto"/>
<xsl:call-template name="part.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="part.titlepage.before.verso"/>
<xsl:call-template name="part.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="partintro.titlepage.before.recto"/>
<xsl:call-template name="partintro.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="partintro.titlepage.before.verso"/>
<xsl:call-template name="partintro.titlepage.verso"/>
</fo:block>
<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="24.8832pt" font-weight="bold" space-before="1em" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="reference.titlepage.before.recto"/>
<xsl:call-template name="reference.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="reference.titlepage.before.verso"/>
<xsl:call-template name="reference.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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.fontset}" 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="refsynopsisdiv.titlepage.recto">
<xsl:choose>
<xsl:when test="refsynopsisdivinfo/title">
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="refsynopsisdivinfo/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="refsynopsisdiv.titlepage.verso">
</xsl:template>
<xsl:template name="refsynopsisdiv.titlepage.separator">
</xsl:template>
<xsl:template name="refsynopsisdiv.titlepage.before.recto">
</xsl:template>
<xsl:template name="refsynopsisdiv.titlepage.before.verso">
</xsl:template>
<xsl:template name="refsynopsisdiv.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/>
<xsl:call-template name="refsynopsisdiv.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/>
<xsl:call-template name="refsynopsisdiv.titlepage.verso"/>
</fo:block>
<xsl:call-template name="refsynopsisdiv.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="refsynopsisdiv.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="refsynopsisdiv.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="refsynopsisdiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="refsection.titlepage.recto">
<xsl:choose>
<xsl:when test="refsectioninfo/title">
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="refsectioninfo/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="refsection.titlepage.verso">
</xsl:template>
<xsl:template name="refsection.titlepage.separator">
</xsl:template>
<xsl:template name="refsection.titlepage.before.recto">
</xsl:template>
<xsl:template name="refsection.titlepage.before.verso">
</xsl:template>
<xsl:template name="refsection.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="refsection.titlepage.before.recto"/>
<xsl:call-template name="refsection.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="refsection.titlepage.before.verso"/>
<xsl:call-template name="refsection.titlepage.verso"/>
</fo:block>
<xsl:call-template name="refsection.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="refsection.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="refsection.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="refsection.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="refsect1.titlepage.recto">
<xsl:choose>
<xsl:when test="refsect1info/title">
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="refsect1info/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="refsect1.titlepage.verso">
</xsl:template>
<xsl:template name="refsect1.titlepage.separator">
</xsl:template>
<xsl:template name="refsect1.titlepage.before.recto">
</xsl:template>
<xsl:template name="refsect1.titlepage.before.verso">
</xsl:template>
<xsl:template name="refsect1.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="refsect1.titlepage.before.recto"/>
<xsl:call-template name="refsect1.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="refsect1.titlepage.before.verso"/>
<xsl:call-template name="refsect1.titlepage.verso"/>
</fo:block>
<xsl:call-template name="refsect1.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="refsect1.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="refsect1.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="refsect1.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="refsect2.titlepage.recto">
<xsl:choose>
<xsl:when test="refsect2info/title">
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="refsect2info/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="refsect2.titlepage.verso">
</xsl:template>
<xsl:template name="refsect2.titlepage.separator">
</xsl:template>
<xsl:template name="refsect2.titlepage.before.recto">
</xsl:template>
<xsl:template name="refsect2.titlepage.before.verso">
</xsl:template>
<xsl:template name="refsect2.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="refsect2.titlepage.before.recto"/>
<xsl:call-template name="refsect2.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="refsect2.titlepage.before.verso"/>
<xsl:call-template name="refsect2.titlepage.verso"/>
</fo:block>
<xsl:call-template name="refsect2.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="refsect2.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="refsect2.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="refsect2.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="refsect3.titlepage.recto">
<xsl:choose>
<xsl:when test="refsect3info/title">
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="refsect3info/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="refsect3.titlepage.verso">
</xsl:template>
<xsl:template name="refsect3.titlepage.separator">
</xsl:template>
<xsl:template name="refsect3.titlepage.before.recto">
</xsl:template>
<xsl:template name="refsect3.titlepage.before.verso">
</xsl:template>
<xsl:template name="refsect3.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="refsect3.titlepage.before.recto"/>
<xsl:call-template name="refsect3.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="refsect3.titlepage.before.verso"/>
<xsl:call-template name="refsect3.titlepage.verso"/>
</fo:block>
<xsl:call-template name="refsect3.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="refsect3.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="refsect3.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="refsect3.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="refsect3.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="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" 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="info/subtitle">
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="dedication.titlepage.before.recto"/>
<xsl:call-template name="dedication.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="dedication.titlepage.before.verso"/>
<xsl:call-template name="dedication.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" 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="info/subtitle">
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="preface.titlepage.before.recto"/>
<xsl:call-template name="preface.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="preface.titlepage.before.verso"/>
<xsl:call-template name="preface.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/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" font-family="{$title.fontset}">
<fo:block margin-left="{$title.margin.left}">
<xsl:call-template name="chapter.titlepage.before.recto"/>
<xsl:call-template name="chapter.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="chapter.titlepage.before.verso"/>
<xsl:call-template name="chapter.titlepage.verso"/>
</fo:block>
<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" font-size="24.8832pt" font-weight="bold">
<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" font-style="italic" font-size="14.4pt" font-weight="bold">
<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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
<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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
<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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
<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="info/title">
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="appendix.titlepage.before.recto"/>
<xsl:call-template name="appendix.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="appendix.titlepage.before.verso"/>
<xsl:call-template name="appendix.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="section.titlepage.before.recto"/>
<xsl:call-template name="section.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="section.titlepage.before.verso"/>
<xsl:call-template name="section.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="sect1.titlepage.before.recto"/>
<xsl:call-template name="sect1.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="sect1.titlepage.before.verso"/>
<xsl:call-template name="sect1.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="sect2.titlepage.before.recto"/>
<xsl:call-template name="sect2.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="sect2.titlepage.before.verso"/>
<xsl:call-template name="sect2.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="sect3.titlepage.before.recto"/>
<xsl:call-template name="sect3.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="sect3.titlepage.before.verso"/>
<xsl:call-template name="sect3.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="sect4.titlepage.before.recto"/>
<xsl:call-template name="sect4.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="sect4.titlepage.before.verso"/>
<xsl:call-template name="sect4.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/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="info/corpauthor"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/authorgroup"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/author"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/othercredit"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/releaseinfo"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/copyright"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/legalnotice"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/pubdate"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revision"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="sect5.titlepage.before.recto"/>
<xsl:call-template name="sect5.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="sect5.titlepage.before.verso"/>
<xsl:call-template name="sect5.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="info/title">
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/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="info/subtitle">
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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="info/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:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="simplesect.titlepage.before.recto"/>
<xsl:call-template name="simplesect.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="simplesect.titlepage.before.verso"/>
<xsl:call-template name="simplesect.titlepage.verso"/>
</fo:block>
<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="{$title.margin.left}" font-family="{$title.fontset}">
<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.fontset}">
<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="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" 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="info/subtitle">
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="bibliography.titlepage.before.recto"/>
<xsl:call-template name="bibliography.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="bibliography.titlepage.before.verso"/>
<xsl:call-template name="bibliography.titlepage.verso"/>
</fo:block>
<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.fontset}">
<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="bibliodiv.titlepage.recto">
<xsl:choose>
<xsl:when test="bibliodivinfo/title">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="bibliodivinfo/subtitle">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/subtitle"/>
</xsl:when>
<xsl:when test="docinfo/subtitle">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
</xsl:when>
<xsl:when test="info/subtitle">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="info/subtitle"/>
</xsl:when>
<xsl:when test="subtitle">
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="subtitle"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="bibliodiv.titlepage.verso">
</xsl:template>
<xsl:template name="bibliodiv.titlepage.separator">
</xsl:template>
<xsl:template name="bibliodiv.titlepage.before.recto">
</xsl:template>
<xsl:template name="bibliodiv.titlepage.before.verso">
</xsl:template>
<xsl:template name="bibliodiv.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="bibliodiv.titlepage.before.recto"/>
<xsl:call-template name="bibliodiv.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="bibliodiv.titlepage.before.verso"/>
<xsl:call-template name="bibliodiv.titlepage.verso"/>
</fo:block>
<xsl:call-template name="bibliodiv.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="bibliodiv.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="bibliodiv.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="bibliodiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::bibliodiv[1]"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<xsl:template match="subtitle" mode="bibliodiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="bibliodiv.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="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" 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="info/subtitle">
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="glossary.titlepage.before.recto"/>
<xsl:call-template name="glossary.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="glossary.titlepage.before.verso"/>
<xsl:call-template name="glossary.titlepage.verso"/>
</fo:block>
<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.fontset}">
<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="glossdiv.titlepage.recto">
<xsl:choose>
<xsl:when test="glossdivinfo/title">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/title"/>
</xsl:when>
<xsl:when test="docinfo/title">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/title"/>
</xsl:when>
<xsl:when test="info/title">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="info/title"/>
</xsl:when>
<xsl:when test="title">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="title"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="glossdivinfo/subtitle">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/subtitle"/>
</xsl:when>
<xsl:when test="docinfo/subtitle">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
</xsl:when>
<xsl:when test="info/subtitle">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="info/subtitle"/>
</xsl:when>
<xsl:when test="subtitle">
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="subtitle"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="glossdiv.titlepage.verso">
</xsl:template>
<xsl:template name="glossdiv.titlepage.separator">
</xsl:template>
<xsl:template name="glossdiv.titlepage.before.recto">
</xsl:template>
<xsl:template name="glossdiv.titlepage.before.verso">
</xsl:template>
<xsl:template name="glossdiv.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="glossdiv.titlepage.before.recto"/>
<xsl:call-template name="glossdiv.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="glossdiv.titlepage.before.verso"/>
<xsl:call-template name="glossdiv.titlepage.verso"/>
</fo:block>
<xsl:call-template name="glossdiv.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="glossdiv.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="glossdiv.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="glossdiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::glossdiv[1]"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<xsl:template match="subtitle" mode="glossdiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="glossdiv.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="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
<xsl:with-param name="pagewide" select="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="info/subtitle">
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="index.titlepage.before.recto"/>
<xsl:call-template name="index.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="index.titlepage.before.verso"/>
<xsl:call-template name="index.titlepage.verso"/>
</fo:block>
<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.fontset}">
<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="indexdiv.titlepage.recto">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style">
<xsl:call-template name="indexdiv.title">
<xsl:with-param name="title" select="title"/>
</xsl:call-template></fo:block>
<xsl:choose>
<xsl:when test="indexdivinfo/subtitle">
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="indexdivinfo/subtitle"/>
</xsl:when>
<xsl:when test="docinfo/subtitle">
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
</xsl:when>
<xsl:when test="info/subtitle">
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="info/subtitle"/>
</xsl:when>
<xsl:when test="subtitle">
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="subtitle"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="indexdiv.titlepage.verso">
</xsl:template>
<xsl:template name="indexdiv.titlepage.separator">
</xsl:template>
<xsl:template name="indexdiv.titlepage.before.recto">
</xsl:template>
<xsl:template name="indexdiv.titlepage.before.verso">
</xsl:template>
<xsl:template name="indexdiv.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="indexdiv.titlepage.before.recto"/>
<xsl:call-template name="indexdiv.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="indexdiv.titlepage.before.verso"/>
<xsl:call-template name="indexdiv.titlepage.verso"/>
</fo:block>
<xsl:call-template name="indexdiv.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="indexdiv.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="indexdiv.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="indexdiv.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
<xsl:template name="setindex.titlepage.recto">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" margin-left="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/>
<xsl:with-param name="pagewide" select="1"/>
</xsl:call-template></fo:block>
<xsl:choose>
<xsl:when test="setindexinfo/subtitle">
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/>
</xsl:when>
<xsl:when test="docinfo/subtitle">
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
</xsl:when>
<xsl:when test="info/subtitle">
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="info/subtitle"/>
</xsl:when>
<xsl:when test="subtitle">
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="setindex.titlepage.verso">
</xsl:template>
<xsl:template name="setindex.titlepage.separator">
</xsl:template>
<xsl:template name="setindex.titlepage.before.recto">
</xsl:template>
<xsl:template name="setindex.titlepage.before.verso">
</xsl:template>
<xsl:template name="setindex.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="setindex.titlepage.before.recto"/>
<xsl:call-template name="setindex.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="setindex.titlepage.before.verso"/>
<xsl:call-template name="setindex.titlepage.verso"/>
</fo:block>
<xsl:call-template name="setindex.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="setindex.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="setindex.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="setindex.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" font-family="{$title.fontset}">
<xsl:apply-templates select="." mode="setindex.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="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" 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="info/subtitle">
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="info/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">
<fo:block>
<xsl:call-template name="colophon.titlepage.before.recto"/>
<xsl:call-template name="colophon.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="colophon.titlepage.before.verso"/>
<xsl:call-template name="colophon.titlepage.verso"/>
</fo:block>
<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.fontset}">
<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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="table.of.contents.titlepage.before.recto"/>
<xsl:call-template name="table.of.contents.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="table.of.contents.titlepage.before.verso"/>
<xsl:call-template name="table.of.contents.titlepage.verso"/>
</fo:block>
<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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="list.of.tables.titlepage.before.recto"/>
<xsl:call-template name="list.of.tables.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.tables.titlepage.before.verso"/>
<xsl:call-template name="list.of.tables.titlepage.verso"/>
</fo:block>
<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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="list.of.figures.titlepage.before.recto"/>
<xsl:call-template name="list.of.figures.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.figures.titlepage.before.verso"/>
<xsl:call-template name="list.of.figures.titlepage.verso"/>
</fo:block>
<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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="list.of.examples.titlepage.before.recto"/>
<xsl:call-template name="list.of.examples.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.examples.titlepage.before.verso"/>
<xsl:call-template name="list.of.examples.titlepage.verso"/>
</fo:block>
<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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="list.of.equations.titlepage.before.recto"/>
<xsl:call-template name="list.of.equations.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.equations.titlepage.before.verso"/>
<xsl:call-template name="list.of.equations.titlepage.verso"/>
</fo:block>
<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.procedures.titlepage.recto">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.procedures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'ListofProcedures'"/>
</xsl:call-template></fo:block>
</xsl:template>
<xsl:template name="list.of.procedures.titlepage.verso">
</xsl:template>
<xsl:template name="list.of.procedures.titlepage.separator">
</xsl:template>
<xsl:template name="list.of.procedures.titlepage.before.recto">
</xsl:template>
<xsl:template name="list.of.procedures.titlepage.before.verso">
</xsl:template>
<xsl:template name="list.of.procedures.titlepage">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>
<xsl:call-template name="list.of.procedures.titlepage.before.recto"/>
<xsl:call-template name="list.of.procedures.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.procedures.titlepage.before.verso"/>
<xsl:call-template name="list.of.procedures.titlepage.verso"/>
</fo:block>
<xsl:call-template name="list.of.procedures.titlepage.separator"/>
</fo:block>
</xsl:template>
<xsl:template match="*" mode="list.of.procedures.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.procedures.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-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
<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">
<fo:block>
<xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
<xsl:call-template name="list.of.unknowns.titlepage.recto"/>
</fo:block>
<fo:block>
<xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
<xsl:call-template name="list.of.unknowns.titlepage.verso"/>
</fo:block>
<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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/lists.xsl
Index: lists.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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:variable name="label-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'label-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="title">
<xsl:apply-templates select="title" mode="list.title.mode"/>
</xsl:if>
<!-- Preserve order of PIs and comments -->
<xsl:apply-templates
select="*[not(self::listitem
or self::title
or self::titleabbrev)]
|comment()[not(preceding-sibling::listitem)]
|processing-instruction()[not(preceding-sibling::listitem)]"/>
<fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
provisional-label-separation="0.2em">
<xsl:attribute name="provisional-distance-between-starts">
<xsl:choose>
<xsl:when test="$label-width != ''">
<xsl:value-of select="$label-width"/>
</xsl:when>
<xsl:otherwise>1.5em</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates
select="listitem
|comment()[preceding-sibling::listitem]
|processing-instruction()[preceding-sibling::listitem]"/>
</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/titleabbrev|orderedlist/titleabbrev">
<!--nop-->
</xsl:template>
<xsl:template match="procedure/titleabbrev">
<!--nop-->
</xsl:template>
<xsl:template match="variablelist/titleabbrev" mode="vl.as.list">
<!--nop-->
</xsl:template>
<xsl:template match="variablelist/titleabbrev" mode="vl.as.blocks">
<!--nop-->
</xsl:template>
<xsl:template match="itemizedlist/listitem">
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="itemsymbol">
<xsl:call-template name="list.itemsymbol">
<xsl:with-param name="node" select="parent::itemizedlist"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="item.contents">
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:choose>
<xsl:when test="$itemsymbol='disc'">•</xsl:when>
<xsl:when test="$itemsymbol='bullet'">•</xsl:when>
<!-- why do these symbols not work? -->
<!--
<xsl:when test="$itemsymbol='circle'">∘</xsl:when>
<xsl:when test="$itemsymbol='round'">∘</xsl:when>
<xsl:when test="$itemsymbol='square'">☐</xsl:when>
<xsl:when test="$itemsymbol='box'">☐</xsl:when>
-->
<xsl:otherwise>•</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</xsl:variable>
<xsl:choose>
<xsl:when test="parent::*/@spacing = 'compact'">
<fo:list-item id="{$id}" xsl:use-attribute-sets="compact.list.item.spacing">
<xsl:copy-of select="$item.contents"/>
</fo:list-item>
</xsl:when>
<xsl:otherwise>
<fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
<xsl:copy-of select="$item.contents"/>
</fo:list-item>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="orderedlist">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="label-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'label-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="title">
<xsl:apply-templates select="title" mode="list.title.mode"/>
</xsl:if>
<!-- Preserve order of PIs and comments -->
<xsl:apply-templates
select="*[not(self::listitem
or self::title
or self::titleabbrev)]
|comment()[not(preceding-sibling::listitem)]
|processing-instruction()[not(preceding-sibling::listitem)]"/>
<fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
provisional-label-separation="0.2em">
<xsl:attribute name="provisional-distance-between-starts">
<xsl:choose>
<xsl:when test="$label-width != ''">
<xsl:value-of select="$label-width"/>
</xsl:when>
<xsl:otherwise>2em</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates
select="listitem
|comment()[preceding-sibling::listitem]
|processing-instruction()[preceding-sibling::listitem]"/>
</fo:list-block>
</xsl:template>
<xsl:template match="orderedlist/listitem" mode="item-number">
<xsl:variable name="numeration">
<xsl:call-template name="list.numeration">
<xsl:with-param name="node" select="parent::orderedlist"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="type">
<xsl:choose>
<xsl:when test="$numeration='arabic'">1.</xsl:when>
<xsl:when test="$numeration='loweralpha'">a.</xsl:when>
<xsl:when test="$numeration='lowerroman'">i.</xsl:when>
<xsl:when test="$numeration='upperalpha'">A.</xsl:when>
<xsl:when test="$numeration='upperroman'">I.</xsl:when>
<!-- What!? This should never happen -->
<xsl:otherwise>
<xsl:message>
<xsl:text>Unexpected numeration: </xsl:text>
<xsl:value-of select="$numeration"/>
</xsl:message>
<xsl:value-of select="1."/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="item-number">
<xsl:call-template name="orderedlist-item-number"/>
</xsl:variable>
<xsl:if test="parent::orderedlist/@inheritnum='inherit'
and ancestor::listitem[parent::orderedlist]">
<xsl:apply-templates select="ancestor::listitem[parent::orderedlist][1]"
mode="item-number"/>
</xsl:if>
<xsl:number value="$item-number" format="{$type}"/>
</xsl:template>
<xsl:template match="orderedlist/listitem">
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<xsl:variable name="item.contents">
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:apply-templates select="." mode="item-number"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</xsl:variable>
<xsl:choose>
<xsl:when test="parent::*/@spacing = 'compact'">
<fo:list-item id="{$id}" xsl:use-attribute-sets="compact.list.item.spacing">
<xsl:copy-of select="$item.contents"/>
</fo:list-item>
</xsl:when>
<xsl:otherwise>
<fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
<xsl:copy-of select="$item.contents"/>
</fo:list-item>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="listitem/*[1][local-name()='para' or
local-name()='simpara' or
local-name()='formalpara']
|step/*[1][local-name()='para' or
local-name()='simpara' or
local-name()='formalpara']
|callout/*[1][local-name()='para' or
local-name()='simpara' or
local-name()='formalpara']"
priority="2">
<fo:block>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="variablelist">
<xsl:variable name="presentation">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'list-presentation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$presentation = 'list'">
<xsl:apply-templates select="." mode="vl.as.list"/>
</xsl:when>
<xsl:when test="$presentation = 'blocks'">
<xsl:apply-templates select="." mode="vl.as.blocks"/>
</xsl:when>
<xsl:when test="$variablelist.as.blocks != 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="term-width">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'term-width'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="termlength">
<xsl:choose>
<xsl:when test="$term-width != ''">
<xsl:value-of select="$term-width"/>
</xsl:when>
<xsl:when test="@termlength">
<xsl:variable name="termlength.is.number">
<xsl:value-of select="@termlength + 0"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$termlength.is.number = 'NaN'">
<!-- if the term length isn't just a number, assume it's a measurement -->
<xsl:value-of select="@termlength"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@termlength"/>
<xsl:text>em * 0.60</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="longest.term">
<xsl:with-param name="terms" select="varlistentry/term"/>
<xsl:with-param name="maxlength" select="$variablelist.max.termlength"/>
</xsl:call-template>
<xsl:text>em * 0.60</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!--
<xsl:message>
<xsl:text>term width: </xsl:text>
<xsl:value-of select="$termlength"/>
</xsl:message>
-->
<xsl:variable name="label-separation">1em</xsl:variable>
<xsl:if test="title">
<xsl:apply-templates select="title" mode="list.title.mode"/>
</xsl:if>
<!-- Preserve order of PIs and comments -->
<xsl:apply-templates
select="*[not(self::varlistentry
or self::title
or self::titleabbrev)]
|comment()[not(preceding-sibling::varlistentry)]
|processing-instruction()[not(preceding-sibling::varlistentry)]"/>
<fo:list-block id="{$id}"
provisional-distance-between-starts=
"{$termlength}+{$label-separation}"
provisional-label-separation="{$label-separation}"
xsl:use-attribute-sets="list.block.spacing">
<xsl:apply-templates mode="vl.as.list"
select="varlistentry
|comment()[preceding-sibling::varlistentry]
|processing-instruction()[preceding-sibling::varlistentry]"/>
</fo:list-block>
</xsl:template>
<xsl:template name="longest.term">
<xsl:param name="longest" select="0"/>
<xsl:param name="terms" select="."/>
<xsl:param name="maxlength" select="-1"/>
<xsl:choose>
<xsl:when test="$longest > $maxlength and $maxlength > 0">
<xsl:value-of select="$maxlength"/>
</xsl:when>
<xsl:when test="not($terms)">
<xsl:value-of select="$longest"/>
</xsl:when>
<xsl:when test="string-length($terms[1]/node()[not(indexterm)]) > $longest">
<xsl:call-template name="longest.term">
<xsl:with-param name="longest"
select="string-length($terms[1]/node()[not(indexterm)])"/>
<xsl:with-param name="maxlength" select="$maxlength"/>
<xsl:with-param name="terms" select="$terms[position() > 1]"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="longest.term">
<xsl:with-param name="longest" select="$longest"/>
<xsl:with-param name="maxlength" select="$maxlength"/>
<xsl:with-param name="terms" select="$terms[position() > 1]"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</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()" text-align="start">
<fo:block>
<xsl:apply-templates select="term"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates select="listitem"/>
</fo:block>
</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>
<!-- Preserve order of PIs and comments -->
<xsl:apply-templates
select="*[not(self::varlistentry
or self::title
or self::titleabbrev)]
|comment()[not(preceding-sibling::varlistentry)]
|processing-instruction()[not(preceding-sibling::varlistentry)]"/>
<fo:block id="{$id}" xsl:use-attribute-sets="list.block.spacing">
<xsl:apply-templates mode="vl.as.blocks"
select="varlistentry
|comment()[preceding-sibling::varlistentry]
|processing-instruction()[preceding-sibling::varlistentry]"/>
</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"
keep-together.within-column="always"
keep-with-next.within-column="always">
<xsl:apply-templates select="term"/>
</fo:block>
<fo:block margin-left="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">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="object" select=".."/>
</xsl:call-template>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="simplelist">
<!-- with no type specified, the default is 'vert' -->
<fo:table xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="simplelist.table.columns">
<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>
<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 xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="simplelist.table.columns">
<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>
<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 xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="simplelist.table.columns">
<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>
<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.table.columns">
<xsl:param name="cols" select="1"/>
<xsl:param name="curcol" select="1"/>
<fo:table-column column-number="{$curcol}"
column-width="proportional-column-width(1)"/>
<xsl:if test="$curcol < $cols">
<xsl:call-template name="simplelist.table.columns">
<xsl:with-param name="cols" select="$cols"/>
<xsl:with-param name="curcol" select="$curcol + 1"/>
</xsl:call-template>
</xsl:if>
</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 <= 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 <= $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 <= $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 <= $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="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
<xsl:variable name="placement">
<xsl:choose>
<xsl:when test="contains($param.placement, ' ')">
<xsl:value-of select="substring-before($param.placement, ' ')"/>
</xsl:when>
<xsl:when test="$param.placement = ''">before</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$param.placement"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Preserve order of PIs and comments -->
<xsl:variable name="preamble"
select="*[not(self::step
or self::title
or self::titleabbrev)]
|comment()[not(preceding-sibling::step)]
|processing-instruction()[not(preceding-sibling::step)]"/>
<xsl:variable name="steps"
select="step
|comment()[preceding-sibling::step]
|processing-instruction()[preceding-sibling::step]"/>
<fo:block id="{$id}" xsl:use-attribute-sets="list.block.spacing">
<xsl:if test="./title and $placement = 'before'">
<!-- n.b. gentext code tests for $formal.procedures and may make an "informal" -->
<!-- heading even though we called formal.object.heading. odd but true. -->
<xsl:call-template name="formal.object.heading"/>
</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>
<xsl:if test="./title and $placement != 'before'">
<!-- n.b. gentext code tests for $formal.procedures and may make an "informal" -->
<!-- heading even though we called formal.object.heading. odd but true. -->
<xsl:call-template name="formal.object.heading"/>
</xsl:if>
</fo:block>
</xsl:template>
<xsl:template match="procedure/title">
</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="procedure/step|substeps/step">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:list-item xsl:use-attribute-sets="list.item.spacing">
<fo:list-item-label end-indent="label-end()">
<fo:block id="{$id}">
<!-- dwc: fix for one step procedures. Use a bullet if there's no step 2 -->
<xsl:choose>
<xsl:when test="count(../step) = 1">
<xsl:text>•</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="number">
<xsl:with-param name="recursive" select="0"/>
</xsl:apply-templates>.
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
<xsl:template match="stepalternatives">
<fo:list-block provisional-distance-between-starts="2em"
provisional-label-separation="0.2em">
<xsl:apply-templates select="step"/>
</fo:list-block>
</xsl:template>
<xsl:template match="stepalternatives/step">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:list-item xsl:use-attribute-sets="list.item.spacing">
<fo:list-item-label end-indent="label-end()">
<fo:block id="{$id}">
<xsl:text>•</xsl:text>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
<xsl:template match="step/title">
<fo:block font-weight="bold"
keep-together.within-column="always"
keep-with-next.within-column="always">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="segmentedlist">
<xsl:variable name="presentation">
<xsl:call-template name="pi-attribute">
<xsl:with-param name="pis"
select="processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'list-presentation'"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$presentation = 'table'">
<xsl:apply-templates select="." mode="seglist-table"/>
</xsl:when>
<xsl:when test="$presentation = 'list'">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="$segmentedlist.as.table != 0">
<xsl:apply-templates select="." mode="seglist-table"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="segmentedlist/title">
<xsl:apply-templates select="." mode="list.title.mode" />
</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="count(preceding-sibling::seg)+1"/>
<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="segmentedlist" mode="seglist-table">
<xsl:apply-templates select="title" mode="list.title.mode" />
<fo:table>
<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
<fo:table-header>
<fo:table-row>
<xsl:apply-templates select="segtitle" mode="seglist-table"/>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates select="seglistitem" mode="seglist-table"/>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="segtitle" mode="seglist-table">
<fo:table-cell>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="seglistitem" mode="seglist-table">
<fo:table-row>
<xsl:apply-templates mode="seglist-table"/>
</fo:table-row>
</xsl:template>
<xsl:template match="seg" mode="seglist-table">
<fo:table-cell>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</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">
<xsl:apply-templates select="title" mode="list.title.mode"/>
</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="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()">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</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="key('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>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/fo-rtf.xsl
Index: fo-rtf.xsl
===================================================================
<?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:exsl="http://exslt.org/common"
xmlns:set="http://exslt.org/sets"
exclude-result-prefixes="exsl set"
version="1.0">
<!-- ********************************************************************
$Id: fo-rtf.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the DocBook XSL Stylesheet distribution.
See ../README or http://docbook.sf.net/ for copyright
and other information.
******************************************************************** -->
<!-- This module contains templates that match against FO nodes. It is used
to post-process result tree fragments for some sorts of cleanup.
These templates can only ever be fired by a processor that supports
exslt:node-set(). -->
<!-- ==================================================================== -->
<!-- insert.fo.fnum mode templates insert a particular RTF at the beginning
of the first paragraph in the primary RTF. In fact, they are inserting
a footnote-number, so we tinker a few other things too, like spacing and
font-sizes. -->
<xsl:template match="/" mode="insert.fo.fnum">
<xsl:param name="mark" select="'?'"/>
<xsl:apply-templates mode="insert.fo.fnum">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="*" mode="insert.fo.fnum">
<xsl:param name="mark" select="'?'"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="insert.fo.fnum">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="fo:block" mode="insert.fo.fnum">
<xsl:param name="mark" select="'?'"/>
<xsl:copy>
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="starts-with(name(.), 'space-before')"/>
<xsl:when test="starts-with(name(.), 'space-after')"/>
<xsl:when test="starts-with(name(.), 'font-size')"/>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:if test="not(preceding::fo:block)">
<xsl:copy-of select="$mark"/>
</xsl:if>
<xsl:apply-templates mode="insert.fo.fnum">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="text()|processing-instruction()|comment()" mode="insert.fo.fnum">
<xsl:param name="mark" select="'?'"/>
<xsl:copy/>
</xsl:template>
<!-- ==================================================================== -->
<!-- insert.fo.block mode templates insert a particular RTF at the beginning
of the first paragraph in the primary RTF. -->
<xsl:template match="/" mode="insert.fo.block">
<xsl:param name="mark" select="'?'"/>
<xsl:apply-templates mode="insert.fo.block">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="*" mode="insert.fo.block">
<xsl:param name="mark" select="'?'"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="insert.fo.block">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="fo:block" mode="insert.fo.block">
<xsl:param name="mark" select="'?'"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:if test="not(preceding::fo:block)">
<xsl:copy-of select="$mark"/>
</xsl:if>
<xsl:apply-templates mode="insert.fo.block">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="text()|processing-instruction()|comment()" mode="insert.fo.block">
<xsl:param name="mark" select="'?'"/>
<xsl:copy/>
</xsl:template>
<!-- ==================================================================== -->
<!-- insert.fo.text mode templates insert a particular RTF at the beginning
of the first text-node in the primary RTF. -->
<xsl:template match="/" mode="insert.fo.text">
<xsl:param name="mark" select="'?'"/>
<xsl:apply-templates mode="insert.fo.text">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="*" mode="insert.fo.text">
<xsl:param name="mark" select="'?'"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="insert.fo.text">
<xsl:with-param name="mark" select="$mark"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="text()|processing-instruction()|comment()" mode="insert.fo.text">
<xsl:param name="mark" select="'?'"/>
<xsl:if test="not(preceding::text())">
<xsl:copy-of select="$mark"/>
</xsl:if>
<xsl:copy/>
</xsl:template>
<xsl:template match="processing-instruction()|comment()" mode="insert.fo.text">
<xsl:param name="mark" select="'?'"/>
<xsl:copy/>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/xref.xsl
Index: xref.xsl
===================================================================
<?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:exsl="http://exslt.org/common"
exclude-result-prefixes="exsl"
version='1.0'>
<!-- ********************************************************************
$Id: xref.xsl,v 1.1 2006/11/10 17:40:17 csuconic Exp $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://nwalsh.com/docbook/xsl/ for copyright
and other information.
******************************************************************** -->
<!-- Create keys for quickly looking up olink targets -->
<xsl:key name="targetdoc-key" match="document" use="@targetdoc" />
<xsl:key name="targetptr-key" match="div|obj"
use="concat(ancestor::document/@targetdoc, '/', @targetptr)" />
<!-- ==================================================================== -->
<xsl:template match="anchor">
<fo:wrapper id="{@id}"/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="xref" name="xref">
<xsl:variable name="targets" select="key('id', at 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="@endterm">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:variable name="etargets" select="key('id', at 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>
</fo:basic-link>
</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:apply-templates select="$target" mode="xref-to">
<xsl:with-param name="referrer" select="."/>
<xsl:with-param name="xrefstyle">
<xsl:choose>
<xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0">
<xsl:value-of select="@role"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@xrefstyle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:apply-templates>
</fo:basic-link>
</xsl:otherwise>
</xsl:choose>
<!-- Add standard page reference? -->
<xsl:if test="not(starts-with(normalize-space(@xrefstyle), 'select:') != ''
and (contains(@xrefstyle, 'page')
or contains(@xrefstyle, 'Page')))
and ( $insert.xref.page.number = 'yes'
or $insert.xref.page.number = '1')
or local-name($target) = 'para'">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:apply-templates select="$target" mode="page.citation">
<xsl:with-param name="id" select="@linkend"/>
</xsl:apply-templates>
</fo:basic-link>
</xsl:if>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="endterm">
<!-- Process the children of the endterm element -->
<xsl:variable name="endterm">
<xsl:apply-templates select="child::node()"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="function-available('exsl:node-set')">
<xsl:apply-templates select="exsl:node-set($endterm)" mode="remove-ids"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$endterm"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="*" mode="remove-ids">
<xsl:copy>
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name(.) != 'id'">
<xsl:copy/>
</xsl:when>
<xsl:otherwise>
<xsl:message>removing <xsl:value-of select="name(.)"/></xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates mode="remove-ids"/>
</xsl:copy>
</xsl:template>
<!--- ==================================================================== -->
<xsl:template match="*" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:message>
<xsl:text>Don't know what gentext to create for xref to: "</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>"</xsl:text>
</xsl:message>
<xsl:text>???</xsl:text>
</xsl:template>
<xsl:template match="title" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<!-- if you xref to a title, xref to the parent... -->
<xsl:choose>
<!-- FIXME: how reliable is this? -->
<xsl:when test="contains(local-name(parent::*), 'info')">
<xsl:apply-templates select="parent::*[2]" mode="xref-to">
<xsl:with-param name="referrer" select="$referrer"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="parent::*" mode="xref-to">
<xsl:with-param name="referrer" select="$referrer"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="abstract|article|authorblurb|bibliodiv|bibliomset
|biblioset|blockquote|calloutlist|caution|colophon
|constraintdef|formalpara|glossdiv|important|indexdiv
|itemizedlist|legalnotice|lot|msg|msgexplan|msgmain
|msgrel|msgset|msgsub|note|orderedlist|partintro
|productionset|qandadiv|refsynopsisdiv|segmentedlist
|set|setindex|sidebar|tip|toc|variablelist|warning"
mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<!-- catch-all for things with (possibly optional) titles -->
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="author|editor|othercredit|personname" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:call-template name="person.name"/>
</xsl:template>
<xsl:template match="authorgroup" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:call-template name="person.name.list"/>
</xsl:template>
<xsl:template match="figure|example|table|equation" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="procedure" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="cmdsynopsis" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="(.//command)[1]" mode="xref"/>
</xsl:template>
<xsl:template match="funcsynopsis" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="(.//function)[1]" mode="xref"/>
</xsl:template>
<xsl:template match="dedication|preface|chapter|appendix" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="bibliography" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="biblioentry|bibliomixed" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<!-- 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="$bibliography.numbered != 0">
<xsl:number from="bibliography" count="biblioentry|bibliomixed"
level="any" format="1"/>
</xsl:when>
<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="$bibliography.numbered != 0">
<xsl:number from="bibliography" count="biblioentry|bibliomixed"
level="any" format="1"/>
</xsl:when>
<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:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="glossentry" mode="xref-to">
<xsl:choose>
<xsl:when test="$glossentry.show.acronym = 'primary'">
<xsl:choose>
<xsl:when test="acronym|abbrev">
<xsl:apply-templates select="(acronym|abbrev)[1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="glossterm" mode="xref-to">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="index" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="listitem" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="section|simplesect
|sect1|sect2|sect3|sect4|sect5
|refsect1|refsect2|refsect3|refsection" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
<!-- What about "in Chapter X"? -->
</xsl:template>
<xsl:template match="bridgehead" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
<!-- What about "in Chapter X"? -->
</xsl:template>
<xsl:template match="qandaset" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="qandadiv" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="qandaentry" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="question[1]" mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="question|answer" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="part|reference" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="refentry" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:choose>
<xsl:when test="refmeta/refentrytitle">
<xsl:apply-templates select="refmeta/refentrytitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refnamediv/refname[1]"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="refmeta/manvolnum"/>
</xsl:template>
<xsl:template match="refnamediv" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="refname[1]" mode="xref-to">
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="refname" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates mode="xref-to">
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="step" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<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="varlistentry" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="term[1]" mode="xref-to">
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="varlistentry/term" mode="xref-to">
<!-- to avoid the comma that will be generated if there are several terms -->
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="co" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="callout-bug"/>
</xsl:template>
<xsl:template match="book" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="para" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:variable name="context" select="(ancestor::simplesect
|ancestor::section
|ancestor::sect1
|ancestor::sect2
|ancestor::sect3
|ancestor::sect4
|ancestor::sect5
|ancestor::refsection
|ancestor::refsect1
|ancestor::refsect2
|ancestor::refsect3
|ancestor::chapter
|ancestor::appendix
|ancestor::preface
|ancestor::partintro
|ancestor::dedication
|ancestor::colophon
|ancestor::bibliography
|ancestor::index
|ancestor::glossary
|ancestor::glossentry
|ancestor::listitem
|ancestor::varlistentry)[last()]"/>
<xsl:apply-templates select="$context" mode="xref-to"/>
<!--
<xsl:apply-templates select="." mode="object.xref.markup">
<xsl:with-param name="purpose" select="'xref'"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
</xsl:apply-templates>
-->
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="link" name="link">
<xsl:variable name="targets" select="key('id', at 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()) > 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="key('id', at 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" name="ulink">
<fo:basic-link xsl:use-attribute-sets="xref.properties">
<xsl:attribute name="external-destination">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="@url"/>
</xsl:call-template>
</xsl:attribute>
<xsl:choose>
<xsl:when test="count(child::node())=0">
<xsl:call-template name="hyphenate-url">
<xsl:with-param name="url" select="@url"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
<xsl:if test="count(child::node()) != 0
and string(.) != @url
and $ulink.show != 0">
<!-- yes, show the URI -->
<xsl:choose>
<xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)">
<xsl:text> </xsl:text>
<fo:footnote>
<xsl:call-template name="ulink.footnote.number"/>
<fo:footnote-body font-family="{$body.fontset}"
font-size="{$footnote.font.size}">
<fo:block>
<xsl:call-template name="ulink.footnote.number"/>
<xsl:text> </xsl:text>
<fo:inline>
<xsl:value-of select="@url"/>
</fo:inline>
</fo:block>
</fo:footnote-body>
</fo:footnote>
</xsl:when>
<xsl:otherwise>
<fo:inline hyphenate="false">
<xsl:text> [</xsl:text>
<xsl:call-template name="hyphenate-url">
<xsl:with-param name="url" select="@url"/>
</xsl:call-template>
<xsl:text>]</xsl:text>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template name="ulink.footnote.number">
<fo:inline font-size="90%">
<!-- FIXME: this isn't going to be perfect! -->
<xsl:text>[</xsl:text>
<xsl:number level="any"
from="chapter|appendix|preface|article|refentry"
format="{$ulink.footnote.number.format}"/>
<xsl:text>]</xsl:text>
</fo:inline>
</xsl:template>
<xsl:template name="hyphenate-url">
<xsl:param name="url" select="''"/>
<xsl:choose>
<xsl:when test="$ulink.hyphenate = ''">
<xsl:value-of select="$url"/>
</xsl:when>
<xsl:when test="contains($url, '/')">
<xsl:value-of select="substring-before($url, '/')"/>
<xsl:text>/</xsl:text>
<xsl:copy-of select="$ulink.hyphenate"/>
<xsl:call-template name="hyphenate-url">
<xsl:with-param name="url" select="substring-after($url, '/')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$url"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="olink">
<xsl:param name="target.database"
select="document($target.database.document, /)"/>
<xsl:variable name="localinfo" select="@localinfo"/>
<!-- Olink that points to internal id can be a link -->
<xsl:variable name="linkend">
<xsl:choose>
<xsl:when test="@targetdoc and not(@targetptr)" >
<xsl:message>Olink missing @targetptr attribute value</xsl:message>
</xsl:when>
<xsl:when test="not(@targetdoc) and @targetptr" >
<xsl:message>Olink missing @targetdoc attribute value</xsl:message>
</xsl:when>
<xsl:when test="@targetdoc and @targetptr">
<xsl:if test="$current.docid = @targetdoc">
<xsl:if test="id(@targetptr)">
<xsl:value-of select="@targetptr"/>
</xsl:if>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$linkend != ''">
<fo:basic-link internal-destination="{$linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:call-template name="olink.hottext">
<xsl:with-param name="target.database" select="$target.database"/>
</xsl:call-template>
</fo:basic-link>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="olink.hottext">
<xsl:with-param name="target.database" select="$target.database"/>
</xsl:call-template>
<!-- Append other document title if appropriate -->
<xsl:if test="@targetdoc and @targetptr and $olink.doctitle != 0
and $current.docid != '' and $current.docid != @targetdoc">
<xsl:variable name="doctitle">
<xsl:variable name="seek.targetdoc" select="@targetdoc"/>
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetdoc-key', $seek.targetdoc)/div[1]/ttl" />
</xsl:for-each>
</xsl:variable>
<xsl:if test="$doctitle != ''">
<xsl:text> (</xsl:text><xsl:value-of select="$doctitle"/><xsl:text>)</xsl:text>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="olink.hottext">
<xsl:param name="target.database"/>
<xsl:choose>
<!-- If it has elements or text (not just PI or comment) -->
<xsl:when test="child::text() or child::*">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="@targetdoc and @targetptr">
<!-- Get the xref text for this record -->
<xsl:variable name="seek.targetdoc" select="@targetdoc"/>
<xsl:variable name="seek.targetptr" select="@targetptr"/>
<xsl:variable name="xref.text" >
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/xreftext"/>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
<xsl:when test="$use.local.olink.style != 0">
<!-- Get the element name and lang for this targetptr -->
<xsl:variable name="element" >
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@element"/>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="lang">
<xsl:variable name="candidate">
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@lang"/>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
<xsl:when test="$candidate != ''">
<xsl:value-of select="$candidate"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'en'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="template">
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'title'"/>
<xsl:with-param name="name" select="$element"/>
<xsl:with-param name="lang" select="$lang"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="substitute-markup">
<xsl:with-param name="template" select="$template"/>
<xsl:with-param name="title">
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/ttl"/>
</xsl:for-each>
</xsl:with-param>
<xsl:with-param name="label">
<xsl:for-each select="$target.database" >
<xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@number"/>
</xsl:for-each>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$xref.text !=''">
<xsl:value-of select="$xref.text"/>
</xsl:when>
<xsl:otherwise>
<xsl:message>Olink error: no generated text for targetdoc/targetptr = <xsl:value-of select="@targetdoc"/>/<xsl:value-of select="@targetptr"/></xsl:message>
<xsl:text>????</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:text>????</xsl:text>
<!--
<xsl:call-template name="olink.outline">
<xsl:with-param name="outline.base.uri"
select="unparsed-entity-uri(@targetdocent)"/>
<xsl:with-param name="localinfo" select="@localinfo"/>
<xsl:with-param name="return" select="'xreftext'"/>
</xsl:call-template>
-->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="olink.outline">
<xsl:message terminate="yes">Fatal error: what is this supposed to do?</xsl:message>
</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 match="*" mode="page.citation">
<xsl:param name="id" select="'???'"/>
<fo:inline keep-together.within-line="always">
<xsl:call-template name="substitute-markup">
<xsl:with-param name="template">
<xsl:call-template name="gentext.template">
<xsl:with-param name="name" select="'page.citation'"/>
<xsl:with-param name="context" select="'xref'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</fo:inline>
</xsl:template>
<xsl:template match="*" mode="pagenumber.markup">
<fo:page-number-citation ref-id="{@id}"/>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<!-- FIXME: what about the case where titleabbrev is inside the info? -->
<xsl:when test="$purpose = 'xref' and titleabbrev">
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="chapter|appendix" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<xsl:when test="$purpose = 'xref'">
<fo:inline font-style="italic">
<xsl:copy-of select="$title"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="*" mode="insert.subtitle.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="subtitle"/>
<xsl:copy-of select="$subtitle"/>
</xsl:template>
<xsl:template match="*" mode="insert.label.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="label"/>
<xsl:copy-of select="$label"/>
</xsl:template>
<xsl:template match="*" mode="insert.pagenumber.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="pagenumber"/>
<xsl:copy-of select="$pagenumber"/>
</xsl:template>
<xsl:template match="*" mode="insert.direction.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="direction"/>
<xsl:copy-of select="$direction"/>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/xep.xsl
Index: xep.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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 at volny.cz)
********************************************************************-->
<!-- FIXME: Norm, I changed things so that the top-level element (book or set)
does not appear in the TOC. Is this the right thing? -->
<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>
<xsl:if test="//keyword">
<xsl:element name="rx:meta-field">
<xsl:attribute name="name">keywords</xsl:attribute>
<xsl:attribute name="value">
<xsl:for-each select="//keyword">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:attribute>
</xsl:element>
</xsl:if>
<xsl:if test="//subjectterm">
<xsl:element name="rx:meta-field">
<xsl:attribute name="name">subject</xsl:attribute>
<xsl:attribute name="value">
<xsl:for-each select="//subjectterm">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:attribute>
</xsl:element>
</xsl:if>
</rx:meta-info>
</xsl:template>
<!-- ********************************************************************
Pdf bookmarks
******************************************************************** -->
<xsl:template match="*" mode="xep.outline">
<xsl:apply-templates select="*" mode="xep.outline"/>
</xsl:template>
<xsl:template match="set|book|part|reference|preface|chapter|appendix|article
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section"
mode="xep.outline">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="bookmark-label">
<xsl:apply-templates select="." mode="object.title.markup"/>
</xsl:variable>
<!-- Put the root element bookmark at the same level as its children -->
<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
<xsl:when test="parent::*">
<rx:bookmark internal-destination="{$id}">
<rx:bookmark-label>
<xsl:value-of select="$bookmark-label"/>
</rx:bookmark-label>
<xsl:apply-templates select="*" mode="xep.outline"/>
</rx:bookmark>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$bookmark-label != ''">
<rx:bookmark internal-destination="{$id}">
<rx:bookmark-label>
<xsl:value-of select="$bookmark-label"/>
</rx:bookmark-label>
</rx:bookmark>
</xsl:if>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and set|book|part|reference|section|sect1|refentry
|article|bibliography|glossary|chapter
|appendix">
<rx:bookmark internal-destination="toc...{$id}">
<rx:bookmark-label>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</rx:bookmark-label>
</rx:bookmark>
</xsl:if>
<xsl:apply-templates select="*" mode="xep.outline"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/graphics.xsl
Index: graphics.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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 at colina.demon.co.uk>
Paul Grosso, <pgrosso at arbortext.com>
******************************************************************** -->
<!-- ==================================================================== -->
<!-- Graphic format tests for the FO backend -->
<xsl:param name="graphic.notations">
<!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">
<xsl:text> PNG PDF JPG JPEG linespecific </xsl:text>
</xsl:when>
<xsl:when test="$fop.extensions != 0">
<xsl:text> BMP GIF TIFF SVG PNG PDF JPG JPEG linespecific </xsl:text>
</xsl:when>
<xsl:when test="$arbortext.extensions != 0">
<xsl:text> PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP </xsl:text>
</xsl:when>
<xsl:when test="$xep.extensions != 0">
<xsl:text> SVG PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:template name="is.graphic.format">
<xsl:param name="format"/>
<xsl:if test="contains($graphic.notations, concat(' ',$format,' '))">1</xsl:if>
</xsl:template>
<xsl:param name="graphic.extensions">
<!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0">
<xsl:text> png pdf jpg jpeg </xsl:text>
</xsl:when>
<xsl:when test="$fop.extensions != 0">
<xsl:text> gif svg png pdf jpg jpeg </xsl:text>
</xsl:when>
<xsl:when test="$arbortext.extensions != 0">
<xsl:text> png pdf jpg jpeg gif tif tiff bmp </xsl:text>
</xsl:when>
<xsl:when test="$xep.extensions != 0">
<xsl:text> svg png pdf jpg jpeg gif tif tiff bmp </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> png pdf jpg jpeg gif tif tiff bmp </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:template name="is.graphic.extension">
<xsl:param name="ext"/>
<xsl:if test="contains($graphic.extensions, concat(' ', $ext, ' '))">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="scalefit">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">0</xsl:when>
<xsl:when test="@contentwidth or @contentdepth">0</xsl:when>
<xsl:when test="@scale">0</xsl:when>
<xsl:when test="@scalefit"><xsl:value-of select="@scalefit"/></xsl:when>
<xsl:when test="@width or @depth">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="scale">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">0</xsl:when>
<xsl:when test="@contentwidth or @contentdepth">1.0</xsl:when>
<xsl:when test="@scale">
<xsl:value-of select="@scale div 100.0"/>
</xsl:when>
<xsl:otherwise>1.0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<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="bgcolor">
<xsl:call-template name="dbfo-attribute">
<xsl:with-param name="pis"
select="../processing-instruction('dbfo')"/>
<xsl:with-param name="attribute" select="'background-color'"/>
</xsl:call-template>
</xsl:variable>
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:call-template name="fo-external-image">
<xsl:with-param name="filename" select="$filename"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">auto</xsl:when>
<xsl:when test="contains(@width,'%')">
<xsl:value-of select="@width"/>
</xsl:when>
<xsl:when test="@width">
<xsl:call-template name="length-spec">
<xsl:with-param name="length" select="@width"/>
<xsl:with-param name="default.units" select="'px'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>auto</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="height">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">auto</xsl:when>
<xsl:when test="contains(@depth,'%')">
<xsl:value-of select="@depth"/>
</xsl:when>
<xsl:when test="@depth">
<xsl:call-template name="length-spec">
<xsl:with-param name="length" select="@depth"/>
<xsl:with-param name="default.units" select="'px'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>auto</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="content-width">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">auto</xsl:when>
<xsl:when test="contains(@contentwidth,'%')">
<xsl:value-of select="@contentwidth"/>
</xsl:when>
<xsl:when test="@contentwidth">
<xsl:call-template name="length-spec">
<xsl:with-param name="length" select="@contentwidth"/>
<xsl:with-param name="default.units" select="'px'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="number($scale) != 1.0">
<xsl:value-of select="$scale * 100"/>
<xsl:text>%</xsl:text>
</xsl:when>
<xsl:when test="$scalefit = 1">scale-to-fit</xsl:when>
<xsl:otherwise>auto</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="content-height">
<xsl:choose>
<xsl:when test="$ignore.image.scaling != 0">auto</xsl:when>
<xsl:when test="contains(@contentdepth,'%')">
<xsl:value-of select="@contentdepth"/>
</xsl:when>
<xsl:when test="@contentdepth">
<xsl:call-template name="length-spec">
<xsl:with-param name="length" select="@contentdepth"/>
<xsl:with-param name="default.units" select="'px'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="number($scale) != 1.0">
<xsl:value-of select="$scale * 100"/>
<xsl:text>%</xsl:text>
</xsl:when>
<xsl:otherwise>auto</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$bgcolor != ''">
<xsl:attribute name="background-color">
<xsl:value-of select="$bgcolor"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@align">
<xsl:attribute name="text-align">
<xsl:value-of select="@align"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@valign">
<xsl:attribute name="display-align">
<xsl:choose>
<xsl:when test="@valign = 'top'">before</xsl:when>
<xsl:when test="@valign = 'middle'">center</xsl:when>
<xsl:when test="@valign = 'bottom'">after</xsl:when>
<xsl:otherwise>auto</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
</fo:external-graphic>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="graphic">
<xsl:choose>
<xsl:when test="parent::inlineequation">
<xsl:call-template name="process.image"/>
</xsl:when>
<xsl:otherwise>
<fo:block>
<xsl:if test="@align">
<xsl:attribute name="text-align">
<xsl:value-of select="@align"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="process.image"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</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|mediaobjectco">
<xsl:variable name="olist" select="imageobject|imageobjectco
|videoobject|audioobject
|textobject"/>
<xsl:variable name="object.index">
<xsl:call-template name="select.mediaobject.index">
<xsl:with-param name="olist" select="$olist"/>
<xsl:with-param name="count" select="1"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="object" select="$olist[position() = $object.index]"/>
<xsl:variable name="align">
<xsl:value-of select="$object/imagedata[@align][1]/@align"/>
</xsl:variable>
<fo:block>
<xsl:if test="$align != '' ">
<xsl:attribute name="text-align">
<xsl:value-of select="$align"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="$object"/>
<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:choose>
<xsl:when test="imagedata">
<xsl:apply-templates select="imagedata"/>
</xsl:when>
<xsl:otherwise>
<fo:instream-foreign-object>
<xsl:apply-templates mode="copy-all"/>
</fo:instream-foreign-object>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template match="*" mode="copy-all">
<xsl:copy>
<xsl:for-each select="@*">
<xsl:copy/>
</xsl:for-each>
<xsl:apply-templates mode="copy-all"/>
</xsl:copy>
</xsl:template>
<xsl:template match="text()|comment()|processing-instruction()" mode="copy-all">
<xsl:copy/>
</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="textdata">
<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="$use.extensions != '0'
and $textinsert.extension != '0'">
<xsl:choose>
<xsl:when test="element-available('stext:insertfile')">
<stext:insertfile href="{$filename}"/>
</xsl:when>
<xsl:when test="element-available('xtext:insertfile')">
<xtext:insertfile href="{$filename}"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
<xsl:text>No insertfile extension available.</xsl:text>
</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:template>
<!-- ==================================================================== -->
<xsl:template match="caption">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ==================================================================== -->
<xsl:template name="fo-external-image">
<xsl:param name="filename"/>
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0
or $fop.extensions != 0
or $arbortext.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('url(', $filename, ')')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 date: 2006/11/10 17:40:17; author: csuconic; state: Exp;jboss-profiler/docbook/docbook-support/support/docbook-xsl/fo/keywords.xsl
Index: keywords.xsl
===================================================================
<?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 2006/11/10 17:40:17 csuconic 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>
More information about the jboss-cvs-commits
mailing list