|
|
785985 |
|
|
|
89ff31 |
|
|
|
878a2b |
$Id$
|
|
|
878a2b |
-->
|
|
|
785985 |
|
|
|
785985 |
version='1.0'
|
|
|
785985 |
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
|
|
785985 |
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
|
|
785985 |
exclude-result-prefixes="#default">
|
|
|
0d79dc |
|
|
|
0d79dc |
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl"/>
|
|
|
0d79dc |
|
|
|
89ff31 |
|
|
|
89ff31 |
Add your customization below this comment. For more information
|
|
|
89ff31 |
about how to customize this section, read installed documentation
|
|
|
89ff31 |
at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/fo/index.html
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="doc.url" select="'http://www.centos.org/docs/'"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
The following customization is based on `main-pdf.xsl' from
|
|
|
89ff31 |
`publican-0.33-0.el5' package. Feel free to make improvements.
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="alignment">left</xsl:param>
|
|
|
89ff31 |
<xsl:param name="use.extensions" select="0"/>
|
|
|
89ff31 |
<xsl:param name="tablecolumns.extensions" select="0"/>
|
|
|
89ff31 |
<xsl:param name="passivetex.extensions" select="1"/>
|
|
|
89ff31 |
<xsl:param name="fop1.extensions" select="0"/>
|
|
|
89ff31 |
<xsl:param name="img.src.path" select="''" />
|
|
|
89ff31 |
<xsl:param name="confidential" select="0"/>
|
|
|
89ff31 |
<xsl:param name="qandadiv.autolabel" select="0"/>
|
|
|
89ff31 |
<xsl:param name="keep.relative.image.uris" select="0"/>
|
|
|
89ff31 |
<xsl:param name="hyphenation-character">-</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="hyphenate.verbatim" select="0"/>
|
|
|
89ff31 |
<xsl:param name="hyphenate">false</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="ulink.footnotes" select="1"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="line-height" select="1.5"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="xref.properties">
|
|
|
89ff31 |
<xsl:attribute name="font-style">italic</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="color">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip">
|
|
|
89ff31 |
<xsl:text>#aee6ff</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:text>#0066cc</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="monospace.properties">
|
|
|
89ff31 |
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-family">
|
|
|
89ff31 |
<xsl:value-of select="$monospace.font.family"/>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
|
|
|
89ff31 |
<xsl:attribute name="text-align">start</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="hyphenation-character">►</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="shade.verbatim" select="0"/>
|
|
|
89ff31 |
<xsl:attribute-set name="shade.verbatim.style">
|
|
|
89ff31 |
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="background-color">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip">
|
|
|
89ff31 |
<xsl:text>#333333</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:text>#e9e3cc</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="color">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip">
|
|
|
89ff31 |
<xsl:text>white</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:text>black</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-left">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-right">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-top">6pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="margin-left">
|
|
|
89ff31 |
<xsl:value-of select="$title.margin.left"/>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="verbatim.properties">
|
|
|
89ff31 |
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.optimum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="text-align">start</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:param name="admon.graphics" select="0"/>
|
|
|
89ff31 |
<xsl:param name="admon.graphics.path" select="''" />
|
|
|
89ff31 |
<xsl:param name="admon.graphics.extension" select="'.png'"/>
|
|
|
89ff31 |
<xsl:attribute-set name="admonition.title.properties">
|
|
|
89ff31 |
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="color">white</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:attribute-set name="graphical.admonition.properties">
|
|
|
89ff31 |
<xsl:attribute name="color">white</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="background-color">#404040</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.optimum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.maximum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-bottom">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-top">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-right">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-left">12pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="margin-left">
|
|
|
89ff31 |
<xsl:value-of select="$title.margin.left"/>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:param name="generate.toc">
|
|
|
89ff31 |
set toc
|
|
|
89ff31 |
book toc
|
|
|
89ff31 |
article toc
|
|
|
89ff31 |
</xsl:param>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:param name="toc.section.depth">3</xsl:param>
|
|
|
89ff31 |
<xsl:param name="section.autolabel" select="1"/>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:param name="callout.graphics.path" select="''" />
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="variablelist.as.blocks">1</xsl:param>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute name="space-before.optimum">2em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.minimum">1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-before.maximum">3em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set-->
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="table.cell.padding">
|
|
|
89ff31 |
<xsl:attribute name="padding-left">4pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-right">4pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-top">2pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="table.frame.border.thickness">0.3pt</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.cell.border.thickness">0.15pt</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.cell.border.color">#5c5c4f</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.frame.border.color">#5c5c4f</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.cell.border.right.color">white</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.cell.border.left.color">white</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.frame.border.right.color">white</xsl:param>
|
|
|
89ff31 |
<xsl:param name="table.frame.border.left.color">white</xsl:param>
|
|
|
89ff31 |
|
|
|
785985 |
<xsl:param name="paper.type" select="'A4'"/>
|
|
|
89ff31 |
<xsl:param name="double.sided">1</xsl:param>
|
|
|
89ff31 |
<xsl:param name="headers.on.blank.pages">1</xsl:param>
|
|
|
89ff31 |
<xsl:param name="footers.on.blank.pages">1</xsl:param>
|
|
|
89ff31 |
|
|
|
785985 |
<xsl:param name="header.column.widths" select="'1 0 1'"/>
|
|
|
785985 |
<xsl:param name="footer.column.widths" select="'1 1 1'"/>
|
|
|
785985 |
<xsl:param name="header.rule" select="1"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
785985 |
<xsl:param name="page.margin.top">15mm</xsl:param>
|
|
|
785985 |
<xsl:param name="region.before.extent">10mm</xsl:param>
|
|
|
785985 |
<xsl:param name="body.margin.top">15mm</xsl:param>
|
|
|
89ff31 |
|
|
|
785985 |
<xsl:param name="body.margin.bottom">15mm</xsl:param>
|
|
|
785985 |
<xsl:param name="region.after.extent">10mm</xsl:param>
|
|
|
785985 |
<xsl:param name="page.margin.bottom">15mm</xsl:param>
|
|
|
89ff31 |
|
|
|
785985 |
<xsl:param name="page.margin.outer">30mm</xsl:param>
|
|
|
785985 |
<xsl:param name="page.margin.inner">30mm</xsl:param>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="title.margin.left">0pt</xsl:param>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:param name="title.color">#204c8d</xsl:param>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.2"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="section.title.level1.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.6"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
<xsl:attribute-set name="section.title.level2.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.4"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
<xsl:attribute-set name="section.title.level3.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.3"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
<xsl:attribute-set name="section.title.level4.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.2"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
<xsl:attribute-set name="section.title.level5.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.1"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
<xsl:attribute-set name="section.title.level6.properties">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:value-of select="$body.font.master"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="section.title.properties">
|
|
|
785985 |
<xsl:attribute name="font-family">
|
|
|
785985 |
<xsl:value-of select="$title.font.family"/>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="book.titlepage.recto.style">
|
|
|
785985 |
<xsl:attribute name="font-family">
|
|
|
785985 |
<xsl:value-of select="$title.fontset"/>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="component.title.properties">
|
|
|
785985 |
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="color">
|
|
|
785985 |
<xsl:choose>
|
|
|
785985 |
<xsl:when test="not(parent::chapter | parent::article | parent::appendix)"><xsl:value-of select="$title.color"/></xsl:when>
|
|
|
785985 |
</xsl:choose>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="text-align">
|
|
|
785985 |
<xsl:choose>
|
|
|
785985 |
<xsl:when test="((parent::article | parent::articleinfo) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when>
|
|
|
785985 |
<xsl:otherwise>left</xsl:otherwise>
|
|
|
785985 |
</xsl:choose>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="chapter.titlepage.recto.style">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="background-color">white</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">
|
|
|
785985 |
<xsl:choose>
|
|
|
785985 |
<xsl:when test="$l10n.gentext.language = 'ja-JP'">
|
|
|
785985 |
<xsl:value-of select="$body.font.master * 1.7"/>
|
|
|
785985 |
<xsl:text>pt</xsl:text>
|
|
|
785985 |
</xsl:when>
|
|
|
785985 |
<xsl:otherwise>
|
|
|
785985 |
<xsl:text>24pt</xsl:text>
|
|
|
785985 |
</xsl:otherwise>
|
|
|
785985 |
</xsl:choose>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute name="padding-left">1em</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="padding-right">1em</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="preface.titlepage.recto.style">
|
|
|
785985 |
<xsl:attribute name="font-family">
|
|
|
785985 |
<xsl:value-of select="$title.fontset"/>
|
|
|
785985 |
</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="color">#204c8d</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
<xsl:attribute-set name="part.titlepage.recto.style">
|
|
|
785985 |
<xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
|
|
|
785985 |
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/table.xsl
|
|
|
89ff31 |
Reason: Table Header format
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="table.cell.block.properties">
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:if test="ancestor::thead or ancestor::tfoot">
|
|
|
89ff31 |
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="background-color">#204c8d</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="color">white</xsl:attribute>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</xsl:template>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/table.xsl
|
|
|
89ff31 |
Reason: Table Header format
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="table.row.properties">
|
|
|
89ff31 |
<xsl:variable name="bgcolor">
|
|
|
89ff31 |
<xsl:call-template name="dbfo-attribute">
|
|
|
89ff31 |
<xsl:with-param name="pis" select="processing-instruction('dbfo')"/>
|
|
|
89ff31 |
<xsl:with-param name="attribute" select="'bgcolor'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:if test="$bgcolor != ''">
|
|
|
89ff31 |
<xsl:attribute name="background-color">
|
|
|
89ff31 |
<xsl:value-of select="$bgcolor"/>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
<xsl:if test="ancestor::thead or ancestor::tfoot">
|
|
|
89ff31 |
<xsl:attribute name="background-color">#204c8d</xsl:attribute>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</xsl:template>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/titlepage.templates.xsl
|
|
|
89ff31 |
Reason: Switch to using chapter.titlepage.recto.style
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
|
89ff31 |
<xsl:call-template name="component.title.nomarkup">
|
|
|
89ff31 |
<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/titlepage.templates.xsl
|
|
|
89ff31 |
Reason: Remove font size and weight overrides
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
|
89ff31 |
<xsl:value-of select="."/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/titlepage.templates.xsl
|
|
|
89ff31 |
Reason: Remove font family, size and weight overrides
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="preface.titlepage.recto">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}">
|
|
|
89ff31 |
<xsl:call-template name="component.title.nomarkup">
|
|
|
89ff31 |
<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
|
|
|
89ff31 |
</xsl:call-template></fo:block>
|
|
|
785985 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="prefaceinfo/subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="docinfo/subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="info/subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="pickfont-sans">
|
|
|
89ff31 |
<xsl:variable name="font">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ja-JP'">
|
|
|
89ff31 |
<xsl:text>KochiMincho,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ko-KR'">
|
|
|
89ff31 |
<xsl:text>BaekmukBatang,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-CN'">
|
|
|
89ff31 |
<xsl:text>ARPLKaitiMGB,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'bn-IN'">
|
|
|
89ff31 |
<xsl:text>LohitBengali,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ta-IN'">
|
|
|
89ff31 |
<xsl:text>LohitTamil,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'pa-IN'">
|
|
|
89ff31 |
<xsl:text>LohitPunjabi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'hi-IN'">
|
|
|
89ff31 |
<xsl:text>LohitHindi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'gu-IN'">
|
|
|
89ff31 |
<xsl:text>LohitGujarati,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-TW'">
|
|
|
89ff31 |
<xsl:text>ARPLMingti2LBig5,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ru-RU'">
|
|
|
89ff31 |
<xsl:text>DejaVuLGCSans,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$fop.extensions != 0">
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text>
|
|
|
785985 |
</xsl:when>
|
|
|
785985 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text>
|
|
|
785985 |
</xsl:otherwise>
|
|
|
785985 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="pickfont-serif">
|
|
|
89ff31 |
<xsl:variable name="font">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ja-JP'">
|
|
|
89ff31 |
<xsl:text>KochiMincho,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ko-KR'">
|
|
|
89ff31 |
<xsl:text>BaekmukBatang,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-CN'">
|
|
|
89ff31 |
<xsl:text>ARPLKaitiMGB,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'bn-IN'">
|
|
|
89ff31 |
<xsl:text>LohitBengali,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ta-IN'">
|
|
|
89ff31 |
<xsl:text>LohitTamil,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'pa-IN'">
|
|
|
89ff31 |
<xsl:text>LohitPunjabi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'hi-IN'">
|
|
|
89ff31 |
<xsl:text>LohitHindi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'gu-IN'">
|
|
|
89ff31 |
<xsl:text>LohitGujarati,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-TW'">
|
|
|
89ff31 |
<xsl:text>ARPLMingti2LBig5,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ru-RU'">
|
|
|
89ff31 |
<xsl:text>DejaVuLGCSans,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$fop.extensions != 0">
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>serif</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>serif</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="pickfont-mono">
|
|
|
89ff31 |
<xsl:variable name="font">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ja-JP'">
|
|
|
89ff31 |
<xsl:text>KochiMincho,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ko-KR'">
|
|
|
89ff31 |
<xsl:text>BaekmukBatang,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-CN'">
|
|
|
89ff31 |
<xsl:text>ARPLKaitiMGB,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'bn-IN'">
|
|
|
89ff31 |
<xsl:text>LohitBengali,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ta-IN'">
|
|
|
89ff31 |
<xsl:text>LohitTamil,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'pa-IN'">
|
|
|
89ff31 |
<xsl:text>LohitPunjabi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'hi-IN'">
|
|
|
89ff31 |
<xsl:text>LohitHindi,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'gu-IN'">
|
|
|
89ff31 |
<xsl:text>LohitGujarati,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'zh-TW'">
|
|
|
89ff31 |
<xsl:text>ARPLMingti2LBig5,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ru-RU'">
|
|
|
89ff31 |
<xsl:text>DejaVuLGCSansMono,</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$fop.extensions != 0">
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$l10n.gentext.language = 'ja-JP'">
|
|
|
89ff31 |
<xsl:text>Symbol,ZapfDingbats</xsl:text>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:text>Symbol,ZapfDingbats</xsl:text>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:param-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="title.font.family">
|
|
|
89ff31 |
<xsl:call-template name="pickfont-sans"/>
|
|
|
89ff31 |
</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="body.font.family">
|
|
|
89ff31 |
<xsl:call-template name="pickfont-sans"/>
|
|
|
89ff31 |
</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="monospace.font.family">
|
|
|
89ff31 |
<xsl:call-template name="pickfont-mono"/>
|
|
|
89ff31 |
</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="sans.font.family">
|
|
|
89ff31 |
<xsl:call-template name="pickfont-sans"/>
|
|
|
89ff31 |
</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:call-template name="pickfont-sans"/>
|
|
|
89ff31 |
</xsl:param-->
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/verbatim.xsl
|
|
|
89ff31 |
Reason: Left align address
|
|
|
89ff31 |
Version: 1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="address">
|
|
|
89ff31 |
<xsl:param name="suppress-numbers" select="'0'"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="content">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
and @linenumbering = 'numbered'
|
|
|
89ff31 |
and $use.extensions != '0'
|
|
|
89ff31 |
and $linenumbering.extension != '0'">
|
|
|
89ff31 |
<xsl:call-template name="number.rtf.lines">
|
|
|
89ff31 |
<xsl:with-param name="rtf">
|
|
|
89ff31 |
<xsl:apply-templates/>
|
|
|
89ff31 |
</xsl:with-param>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:apply-templates/>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
white-space-collapse='false'
|
|
|
89ff31 |
white-space-treatment='preserve'
|
|
|
89ff31 |
linefeed-treatment="preserve"
|
|
|
89ff31 |
text-align="start"
|
|
|
89ff31 |
xsl:use-attribute-sets="verbatim.properties">
|
|
|
89ff31 |
<xsl:copy-of select="$content"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="component.title.nomarkup">
|
|
|
89ff31 |
<xsl:param name="node" select="."/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="id">
|
|
|
89ff31 |
<xsl:call-template name="object.id">
|
|
|
89ff31 |
<xsl:with-param name="object" select="$node"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="title">
|
|
|
89ff31 |
<xsl:apply-templates select="$node" mode="object.title.markup">
|
|
|
89ff31 |
<xsl:with-param name="allow-anchors" select="1"/>
|
|
|
89ff31 |
</xsl:apply-templates>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:copy-of select="$title"/>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:attribute-set name="header.content.properties">
|
|
|
89ff31 |
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-family">
|
|
|
89ff31 |
<xsl:value-of select="$body.fontset"/>
|
|
|
89ff31 |
</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="margin-left">
|
|
|
89ff31 |
<xsl:value-of select="$title.margin.left"/>
|
|
|
785985 |
</xsl:attribute>
|
|
|
785985 |
</xsl:attribute-set>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/pagesetup.xsl
|
|
|
89ff31 |
Reason: Custom Header
|
|
|
89ff31 |
Version: 1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="header.content">
|
|
|
89ff31 |
<xsl:param name="pageclass" select="''"/>
|
|
|
89ff31 |
<xsl:param name="sequence" select="''"/>
|
|
|
89ff31 |
<xsl:param name="position" select="''"/>
|
|
|
89ff31 |
<xsl:param name="gentext-key" select="''"/>
|
|
|
89ff31 |
<xsl:param name="title-limit" select="'30'"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:value-of select="$pageclass"/>
|
|
|
89ff31 |
<xsl:text>, </xsl:text>
|
|
|
89ff31 |
<xsl:value-of select="$sequence"/>
|
|
|
89ff31 |
<xsl:text>, </xsl:text>
|
|
|
89ff31 |
<xsl:value-of select="$position"/>
|
|
|
89ff31 |
<xsl:text>, </xsl:text>
|
|
|
89ff31 |
<xsl:value-of select="$gentext-key"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
body, blank, left, chapter
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="text">
|
|
|
89ff31 |
<xsl:call-template name="component.title.nomarkup"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<fo:inline keep-together.within-line="always" font-weight="bold">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="string-length($text) > '33'">
|
|
|
89ff31 |
<xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:value-of select="$text"/>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</fo:inline>
|
|
|
89ff31 |
</xsl:when-->
|
|
|
89ff31 |
<xsl:when test="$confidential = 1 and (($sequence='odd' and $position='left') or ($sequence='even' and $position='right'))">
|
|
|
89ff31 |
<fo:inline keep-together.within-line="always" font-weight="bold">
|
|
|
89ff31 |
<xsl:text>RED HAT CONFIDENTIAL</xsl:text>
|
|
|
89ff31 |
</fo:inline>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$sequence = 'blank'">
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:when test="($sequence='first' and $position='left' and $gentext-key='chapter')">
|
|
|
89ff31 |
<xsl:variable name="text">
|
|
|
89ff31 |
<xsl:call-template name="component.title.nomarkup"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="chapt">
|
|
|
89ff31 |
<xsl:value-of select="substring-before($text, ' ')"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="remainder">
|
|
|
89ff31 |
<xsl:value-of select="substring-after($text, ' ')"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="chapt-num">
|
|
|
89ff31 |
<xsl:value-of select="substring-before($remainder, ' ')"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="text1">
|
|
|
89ff31 |
<xsl:value-of select="concat($chapt, ' ', $chapt-num)"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<fo:inline keep-together.within-line="always" font-weight="bold">
|
|
|
89ff31 |
<xsl:value-of select="$text1"/>
|
|
|
89ff31 |
</fo:inline>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:when test="($sequence='even' and $position='left')">
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:inline keep-together.within-line="always" font-weight="bold">
|
|
|
89ff31 |
<xsl:call-template name="component.title.nomarkup"/>
|
|
|
89ff31 |
</fo:inline>
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="($sequence='odd' and $position='right')">
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:inline keep-together.within-line="always"><fo:retrieve-marker retrieve-class-name="section.head.marker" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/></fo:inline>
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$position='left'">
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:call-template name="draft.text"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$position='center'">
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$position='right'">
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:call-template name="draft.text"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$sequence = 'first'">
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="$sequence = 'blank'">
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/pagesetup.xsl
|
|
|
89ff31 |
Reason: Override colour
|
|
|
89ff31 |
Version: 1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="head.sep.rule">
|
|
|
89ff31 |
<xsl:param name="pageclass"/>
|
|
|
89ff31 |
<xsl:param name="sequence"/>
|
|
|
89ff31 |
<xsl:param name="gentext-key"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:if test="$header.rule != 0">
|
|
|
89ff31 |
<xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="border-bottom-color">#204c8d</xsl:attribute>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/pagesetup.xsl
|
|
|
89ff31 |
Reason: Override colour
|
|
|
89ff31 |
Version: 1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="foot.sep.rule">
|
|
|
89ff31 |
<xsl:param name="pageclass"/>
|
|
|
89ff31 |
<xsl:param name="sequence"/>
|
|
|
89ff31 |
<xsl:param name="gentext-key"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:if test="$footer.rule != 0">
|
|
|
89ff31 |
<xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="border-top-style">solid</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="border-top-color">#204c8d</xsl:attribute>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="footnote.font.size">
|
|
|
89ff31 |
<xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
|
|
|
89ff31 |
</xsl:param>
|
|
|
89ff31 |
<xsl:param name="footnote.number.format" select="'1'"/>
|
|
|
89ff31 |
<xsl:param name="footnote.number.symbols" select="''"/>
|
|
|
89ff31 |
<xsl:attribute-set name="footnote.mark.properties">
|
|
|
89ff31 |
<xsl:attribute name="font-size">75%</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-style">normal</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
<xsl:attribute-set name="footnote.properties">
|
|
|
89ff31 |
<xsl:attribute name="padding-top">48pt</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-family"><xsl:value-of select="$body.fontset"/></xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-size"><xsl:value-of select="$footnote.font.size"/></xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="font-style">normal</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="text-align"><xsl:value-of select="$alignment"/></xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
<xsl:attribute-set name="footnote.sep.leader.properties">
|
|
|
89ff31 |
<xsl:attribute name="color">black</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
|
89ff31 |
<xsl:attribute name="leader-length">1in</xsl:attribute>
|
|
|
89ff31 |
</xsl:attribute-set>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="author" mode="tablerow.titlepage.mode">
|
|
|
89ff31 |
<fo:table-row>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="gentext">
|
|
|
89ff31 |
<xsl:with-param name="key" select="'Author'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="person.name">
|
|
|
89ff31 |
<xsl:with-param name="node" select="."/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:apply-templates select="email"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
</fo:table-row>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="author" mode="titlepage.mode">
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="person.name">
|
|
|
89ff31 |
<xsl:with-param name="node" select="."/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:param name="editedby.enabled">0</xsl:param>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="editor" mode="tablerow.titlepage.mode">
|
|
|
89ff31 |
<fo:table-row>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="gentext">
|
|
|
89ff31 |
<xsl:with-param name="key" select="'Editor'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="person.name">
|
|
|
89ff31 |
<xsl:with-param name="node" select="."/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:apply-templates select="email"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
</fo:table-row>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="othercredit" mode="tablerow.titlepage.mode">
|
|
|
89ff31 |
<fo:table-row>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="gentext">
|
|
|
89ff31 |
<xsl:with-param name="key" select="'translator'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:call-template name="person.name">
|
|
|
89ff31 |
<xsl:with-param name="node" select="."/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
<fo:table-cell>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:apply-templates select="email"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</fo:table-cell>
|
|
|
89ff31 |
</fo:table-row>
|
|
|
89ff31 |
</xsl:template>
|
|
|
785985 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/titlepage.xsl
|
|
|
89ff31 |
Reason:
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template name="verso.authorgroup">
|
|
|
89ff31 |
<fo:table table-layout="fixed" width="100%">
|
|
|
89ff31 |
<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
|
|
|
89ff31 |
<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
|
|
|
89ff31 |
<fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
|
|
|
89ff31 |
<fo:table-body>
|
|
|
89ff31 |
<xsl:apply-templates select="author" mode="tablerow.titlepage.mode"/>
|
|
|
89ff31 |
<xsl:apply-templates select="editor" mode="tablerow.titlepage.mode"/>
|
|
|
89ff31 |
<xsl:apply-templates select="othercredit" mode="tablerow.titlepage.mode"/>
|
|
|
89ff31 |
</fo:table-body>
|
|
|
89ff31 |
</fo:table>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
|
|
|
89ff31 |
<xsl:call-template name="division.title">
|
|
|
89ff31 |
<xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="34pt" space-before="30pt" font-family="{$title.fontset}">
|
|
|
89ff31 |
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="issuenum" mode="book.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="34pt" space-before="30pt" font-family="{$title.fontset}">
|
|
|
89ff31 |
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
|
|
|
89ff31 |
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="14pt" space-before="15.552pt">
|
|
|
89ff31 |
<xsl:call-template name="person.name">
|
|
|
89ff31 |
<xsl:with-param name="node" select="."/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage.recto">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="bookinfo/title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="info/title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="bookinfo/subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="info/subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="subtitle">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/issuenum"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/issuenum"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="issuenum"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/invpartnumber"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/invpartnumber"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
|
|
|
89ff31 |
<xsl:call-template name="gentext">
|
|
|
89ff31 |
<xsl:with-param name="key" select="'isbn'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
<xsl:text>: </xsl:text>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/isbn"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/isbn"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
|
|
|
89ff31 |
<xsl:call-template name="gentext">
|
|
|
89ff31 |
<xsl:with-param name="key" select="'pubdate'"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
<xsl:text>: </xsl:text>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage.verso">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="bookinfo/abstract">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="info/abstract">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage3.recto">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="bookinfo/title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="info/title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:when test="title">
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/othercredit"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/legalnotice"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/publisher"/>
|
|
|
89ff31 |
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/publisher"/>
|
|
|
89ff31 |
</xsl:template>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
|
|
|
89ff31 |
</xsl:template>
|
|
|
785985 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage.before.recto">
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template name="book.titlepage">
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
89ff31 |
<xsl:call-template name="book.titlepage.before.recto"/>
|
|
|
89ff31 |
<fo:block><xsl:call-template name="book.titlepage.recto"/></fo:block>
|
|
|
89ff31 |
<xsl:call-template name="book.titlepage.separator"/>
|
|
|
89ff31 |
<fo:block><xsl:call-template name="book.titlepage.verso"/></fo:block>
|
|
|
89ff31 |
<xsl:call-template name="book.titlepage.separator"/>
|
|
|
89ff31 |
<fo:block><xsl:call-template name="book.titlepage3.recto"/></fo:block>
|
|
|
89ff31 |
<xsl:call-template name="book.titlepage.separator"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/qandaset.xsl
|
|
|
89ff31 |
Reason: Id in list-item-label causes fop crash
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:template match="question">
|
|
|
89ff31 |
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="entry.id">
|
|
|
89ff31 |
<xsl:call-template name="object.id">
|
|
|
89ff31 |
<xsl:with-param name="object" select="parent::*"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="deflabel">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="ancestor-or-self::*[@defaultlabel]">
|
|
|
89ff31 |
|
|
|
89ff31 |
/@defaultlabel"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:value-of select="$qanda.defaultlabel"/>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:list-item id="{$entry.id}" xsl:use-attribute-sets="list.item.spacing">
|
|
|
89ff31 |
<fo:list-item-label end-indent="label-end()">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$deflabel = 'none'">
|
|
|
89ff31 |
<fo:block/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:apply-templates select="." mode="label.markup"/>
|
|
|
89ff31 |
<xsl:if test="$deflabel = 'number' and not(label)">
|
|
|
89ff31 |
<xsl:apply-templates select="." mode="intralabel.punctuation"/>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</fo:list-item-label>
|
|
|
89ff31 |
<fo:list-item-body start-indent="body-start()">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$deflabel = 'none'">
|
|
|
89ff31 |
<fo:block font-weight="bold">
|
|
|
89ff31 |
<xsl:apply-templates select="*[local-name(.)!='label']"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:apply-templates select="*[local-name(.)!='label']"/>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
</fo:list-item-body>
|
|
|
89ff31 |
</fo:list-item>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/qandaset.xsl
|
|
|
89ff31 |
Reason: Id in list-item-label causes fop crash
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template match="answer">
|
|
|
89ff31 |
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="entry.id">
|
|
|
89ff31 |
<xsl:call-template name="object.id">
|
|
|
89ff31 |
<xsl:with-param name="object" select="parent::*"/>
|
|
|
89ff31 |
</xsl:call-template>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<xsl:variable name="deflabel">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="ancestor-or-self::*[@defaultlabel]">
|
|
|
89ff31 |
|
|
|
89ff31 |
/@defaultlabel"/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<xsl:value-of select="$qanda.defaultlabel"/>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
|
|
|
89ff31 |
<fo:list-item xsl:use-attribute-sets="list.item.spacing">
|
|
|
89ff31 |
<fo:list-item-label end-indent="label-end()">
|
|
|
89ff31 |
<xsl:choose>
|
|
|
89ff31 |
<xsl:when test="$deflabel = 'none'">
|
|
|
89ff31 |
<fo:block/>
|
|
|
89ff31 |
</xsl:when>
|
|
|
89ff31 |
<xsl:otherwise>
|
|
|
89ff31 |
<fo:block>
|
|
|
89ff31 |
<xsl:variable name="answer.label">
|
|
|
89ff31 |
<xsl:apply-templates select="." mode="label.markup"/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:copy-of select="$answer.label"/>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:otherwise>
|
|
|
89ff31 |
</xsl:choose>
|
|
|
89ff31 |
</fo:list-item-label>
|
|
|
89ff31 |
<fo:list-item-body start-indent="body-start()">
|
|
|
89ff31 |
<xsl:apply-templates select="*[local-name(.)!='label']"/>
|
|
|
89ff31 |
</fo:list-item-body>
|
|
|
89ff31 |
</fo:list-item>
|
|
|
89ff31 |
</xsl:template>
|
|
|
89ff31 |
|
|
|
89ff31 |
From: fo/block.xsl
|
|
|
89ff31 |
Reason: formal para needs to be block to appear as a title
|
|
|
89ff31 |
Version:1.72
|
|
|
89ff31 |
-->
|
|
|
89ff31 |
<xsl:template match="formalpara/title|formalpara/info/title">
|
|
|
89ff31 |
<xsl:variable name="titleStr">
|
|
|
89ff31 |
<xsl:apply-templates/>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
89ff31 |
<xsl:variable name="lastChar">
|
|
|
89ff31 |
<xsl:if test="$titleStr != ''">
|
|
|
89ff31 |
<xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</xsl:variable>
|
|
|
0d79dc |
|
|
|
89ff31 |
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.title.properties section.title.level5.properties">
|
|
|
89ff31 |
<xsl:copy-of select="$titleStr"/>
|
|
|
89ff31 |
|
|
|
89ff31 |
and not(contains($runinhead.title.end.punct, $lastChar))">
|
|
|
89ff31 |
<xsl:value-of select="$runinhead.default.title.end.punct"/>
|
|
|
89ff31 |
</xsl:if>
|
|
|
89ff31 |
</fo:block>
|
|
|
89ff31 |
</xsl:template>
|
|
|
0d79dc |
|
|
|
878a2b |
</xsl:stylesheet>
|