diff --git a/tcar-models-docs/Css/base.css b/tcar-models-docs/Css/base.css new file mode 100755 index 0000000..750af7b --- /dev/null +++ b/tcar-models-docs/Css/base.css @@ -0,0 +1,75 @@ +/* + * Docbook -> Main blocks + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: base.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +body { + clear: both; + padding: 0 40px 1em 40px; + background-color: #FFF; + } + +div.example { + margin: 1em 0 1.5em; + } + +div.example p.title { + margin: 0 0 0.5em 0; + } + +div.example pre { + margin: 0; + } + +pre { + border-radius: 5px; + } + +div.titlepage h3.title { + font-size: 1.4em; + } + +div.table { + margin: 1em 0 1.5em; + } + +div.table p.title { + margin: 0 0 0.5em 0; + } + +div.table thead { + background: #204c8d; + background-image: url(../Images/h1-bg.png); + color: #FFF; + } + +.cmdsynopsis { + color: #FFF; + background: #0F0F0F; + -moz-border-radius: 10px; + } + +.cmdsynopsis p { + padding: 0.5em 1em; + font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; + text-align: left; + } diff --git a/tcar-models-docs/Css/headings.css b/tcar-models-docs/Css/headings.css new file mode 100755 index 0000000..370ebfd --- /dev/null +++ b/tcar-models-docs/Css/headings.css @@ -0,0 +1,109 @@ +/* + * Docbook -> Headings + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: headings.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +div.book > div.titlepage h1.title, +div.article > div.titlepage h1.title, +div.part > div.titlepage h1.title { + background-color: #204c8d; + background-image: url("../Images/h1-bg.png"); + color: #fff; + padding: 1.5em; + text-align: center; + } + +div.book > div.titlepage div.author { + } + +div.book > div.titlepage h2.subtitle, +div.book > div.titlepage h3.author { + margin-top: 0.5em; + } + +div.book > div.titlepage p.copyright { + } + +div.book > div.titlepage div.legalnotice { + margin-bottom: 1.5em; + } + +div.book > div.titlepage div.revhistory { + margin-bottom: 1.5em; + } + +div.book > div.titlepage div.abstract p.title { + margin-bottom: 0; + } + +div.preface > div.titlepage h2.title { + font-size: 2em; + margin-top: 1em; + } + +div.appendix > div.titlepage h2.title, +div.index > div.titlepage h2.title, +div.chapter > div.titlepage h2.title { + margin-top: 1em; + font-size: 1.7em; + } + +div.sect1 > div.titlepage h2.title, +div.section > div.titlepage h2.title { + margin-top: 1em; + font-size: 1.7em; + } + +div.sect2 > div.titlepage h3.title, +div.section > div.titlepage h3.title { + font-size: 1.4em; + } + +div.sect3 > div.titlepage h4.title, +div.section > div.titlepage h4.title { + font-size: 1.2em; + } + +div.refnamediv { + padding-top: 1.5em; + } + +div.refentry div.refnamediv h2 span { + font-family: "DejaVuLG Mono", monospace + } + +div.refentry div.refsynopsisdiv h2, +div.refnamediv h2, +div.refentry div.refsection h2, +div.refsect1 h2 { + border-bottom: 1px solid #DADADA; + } + +div.reference div.titlepage h1, +div.reference div.titlepage h2 { + margin: 0.5em 0; + } + +div.figure p.title { + margin-top: 1.5em; + margin-bottom: 0.3em; + } diff --git a/tcar-models-docs/Css/lists.css b/tcar-models-docs/Css/lists.css new file mode 100755 index 0000000..0bf4d2c --- /dev/null +++ b/tcar-models-docs/Css/lists.css @@ -0,0 +1,69 @@ +/* + * Docbook -> Lists + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: lists.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +ul { + list-style: url("../Images/ul.png") disc; + } + +span.term { + font-weight: bold; + } + +/* Table of contents +-----------------------------------------------*/ + +.toc, +.index, +.list-of-figures, +.list-of-examples, +.list-of-tables { + margin: 1em 0 2em 0; + } + +.toc dl, +.index dl, +.list-of-figures dl, +.list-of-examples dl, +.list-of-tables dl { + margin: 0; + } + +.toc dl dt, +.index dl dt, +.list-of-figures dl dt, +.list-of-examples dl dt, +.list-of-tables dl dt { + margin: 0.3em 0 0.3em 0; + } + +.toc dl dd { + margin-bottom: 0; + } + +.toc p, +.list-of-figures p, +.list-of-examples p, +.list-of-tables p { + margin-bottom: 0.5em; + } diff --git a/tcar-models-docs/Css/paragraphs.css b/tcar-models-docs/Css/paragraphs.css new file mode 100755 index 0000000..151cf9e --- /dev/null +++ b/tcar-models-docs/Css/paragraphs.css @@ -0,0 +1,61 @@ +/* + * Docbook -> Paragraphs + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: paragraphs.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +p { + text-align:justify; + } + +.author p { margin: 0.3em 0 0.3em 0; } + +.footnote:hover { + background-color: #EEE; + cursor: help; + } + +.footnote p { + font-size: small; + padding: 0.5em; + margin: 0; + } + +/* Phrase elements +-----------------------------------------------*/ + +.command, +.package { + font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; + } + +.replaceable:before { + content: "<"; + } + +.replaceable:after { + content: ">"; + } + +.prompt { + background-color: #FFFAE9; + } + diff --git a/tcar-models-docs/Css/reset.css b/tcar-models-docs/Css/reset.css new file mode 100755 index 0000000..56752d7 --- /dev/null +++ b/tcar-models-docs/Css/reset.css @@ -0,0 +1,353 @@ +/* + * default.css -- This file resets the browser's default visual style + * and sets The CentOS Web Environment visual style as default visual + * style. This file sets default values to tags like `html', `body', + * as well as those controlling links, tables, paragrphs, headings, + * lists, forms and quotation. + * + * The CentOS Web Environment (Webenv) is specially conceived to + * achieve one unique visual style and easy navegation through all + * different web applications The CentOS Project uses to show its + * existence in the World Wide Web medium. + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ------------------------------------------------------------------- + * $Id$ + * ------------------------------------------------------------------- + */ + + +/* Reset browsers default margins and paddings +-----------------------------------------------*/ + +* { + margin: 0; + padding: 0; + } + +/* Define html +-----------------------------------------------*/ + +html { + background-color: #FFF; + background-image: url("../Images/html-bg.png"); + } + +/* Define body +-----------------------------------------------*/ + +body { + font-family: "DejaVu Sans", "Liberation Sans", sans-serif; + font-size: 0.85em; + /* margin: 0; /* <- full screen */ + /* margin: 0 1% 0 1%; /* <- with 1% of left and right margin */ + /* margin: 0 2% 0 2%; /* <- with 2% of left and right margin */ + margin: 0 30px 0 30px; /* <- with 30px of left and right margin */ + /* margin: 0 10% 0 10%; /* <- with 10% of left and right margin */ + color: #000; + } + +/* Links +-----------------------------------------------*/ + +a:link { text-decoration: none; color: #0044B3; } +a:hover { text-decoration: underline; color: green; } +a:active { text-decoration: underline; color: green; } +a:visited { text-decoration: none; color: #0044B3; } +a:visited:hover { text-decoration: underline; color: green; } + +.title, +.title a:link, +.title a:active, +.title a:hover, +.title a:visited, +.title a:visited:hover { + /* color: #072B61; */ + color: #000000; + } + +/* Headings +-----------------------------------------------*/ + +h1 { + font-size: 2em; + line-height: 1.5em; + } + +h2 { + font-size: 1.5em; + line-height: 1.5em; + margin-top: 1.5em; + } + +h3 { + font-size: 1.2em; + line-height: 1.2em; + margin-top: 1.2em; + } + +h4 { + font-size: 1.2em; + line-height: 1.2em; + margin-top: 1.2em; + } + +h5 { + font-size: 1.1em; + line-height: 1.1em; + margin-top: 1.1em; + } + +h6 { + font-size: 1em; + line-height: 1em; + margin-top: 1em; + } + +/* Paragraphs +-----------------------------------------------*/ + +p { + margin: 1em 0 1.5em 0; + line-height: 1.5em; + } + +/* Images +-----------------------------------------------*/ + +img { + border: none; + } + +/* Quotations +-----------------------------------------------*/ + +blockquote { + background: #fafafa; + border-color: #eeeeee; + border-width: 1px; + border-style: solid; + border-left-width: 4px; + margin-left: 1.5em; + padding: 0.5em; + margin-top: 1em; + margin-bottom: 1.3em; + } + +q:before { + content: " “"; + } + +q:after { + content: "” "; + } + +q q:before { + content: " ‘"; + } + +q q:after { + content: "’ "; + } + +address { + margin-left: 1.5em; + } + +/* Preformatted Texts +-----------------------------------------------*/ + +pre { + font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; + padding: 0.7em 1em; + margin: 1em 0 1.5em 0; + white-space: pre; + border-width: 1px; + border-style: solid; + border-color: #E5E5E5; + border-left-width: 5px; + background: #FFFAE9; + overflow: auto; + } + +/* Phrase Elements +-----------------------------------------------*/ + +tt, +samp, +kbd, +code { + font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; + white-space: nowrap; + } + +/* Page Lines +-----------------------------------------------*/ + +hr { + clear: both; + height: 1px ! important; + border: none; + background-color: #DADADA; + } + +/* Lists +-----------------------------------------------*/ + +ul, +ol, +dl { + margin: 1.5em 0 1.5em 2.5em; + text-align:justify; + } + +ul { + list-style: disc; + } + +ol { + list-style-image: none !important; + } + +ul li, +ol li { + line-height: 1.5em; + padding-bottom: 1em; + } + +ul ul, +ul ol, +ol ul, +ol ol { + margin-top: 0.3em; + margin-bottom: 0.3em; + } + +ul li p, +ol li p { + margin-bottom: 0.3em; + } + +dl dd { + line-height: 1.5em; + margin-left: 2.5em; + margin-bottom: 1.5em; + } + +dl ol, +dl ul { + margin-left: 3.5em; + } + +/* Tables +-----------------------------------------------*/ + +table { + border-collapse: collapse; + } + +table caption { + font-style: italic; + text-align: center; + } + +table tr th { + font-weight: bold; + } + +table tr td, +table tr th { + border: 1pt; + border-style: solid; + border-color: #CCC; + padding: 0.5em; + vertical-align: top; + } + +table tr td p, +table tr td pre { + margin: 0; + padding: 0; + } + +/* Forms +-----------------------------------------------*/ + +form { + display: inline; + } + +input[type="submit"], +input[type="button"] { + padding: 1px; + display: inline; + text-decoration: none; + } + +input[type="text"], +input[type="password"], +textarea { + display: inline; + padding: 2px; + } + +select { + display: inline; + padding: 1px; + } + +form p { + display: inline; + margin-left: 5px; + margin-right: 5px; + } + +/* Select +---------------------------------------- */ + +select option { + padding-left: 3px; + padding-right: 3px; + } + +select optgroup { + font-style: normal; + font-weight: bold; + padding-left: 3px; + } + +select optgroup option { + margin-left: 1em; + } + +input[type="radio"], +input[type="checkbox"] { + vertical-align: middle; + } + +fieldset { + margin: 1em 0 1em 0; + padding: 1em; + padding-bottom: 5px; + border: 1px solid #AAA; + } + +fieldset legend { + font-weight: bold; + color: #AAA; + } diff --git a/tcar-models-docs/Css/stylesheet.css b/tcar-models-docs/Css/stylesheet.css new file mode 100755 index 0000000..1b8b901 --- /dev/null +++ b/tcar-models-docs/Css/stylesheet.css @@ -0,0 +1,38 @@ +/* + * Docbook + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: default.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +/* Reset browser's default definitions. +--------------------------------------------------------------------*/ +@import url("reset.css"); + +/* Customize default definitions. +--------------------------------------------------------------------*/ +@import url("base.css"); +@import url("headings.css"); +@import url("paragraphs.css"); +@import url("lists.css"); +@import url("tables.css"); + +/* Miscellaneous definitions. +--------------------------------------------------------------------*/ diff --git a/tcar-models-docs/Css/tables.css b/tcar-models-docs/Css/tables.css new file mode 100755 index 0000000..cb1acb4 --- /dev/null +++ b/tcar-models-docs/Css/tables.css @@ -0,0 +1,161 @@ +/* + * Docbook -> Tables + * + * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG + * + * This CSS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This CSS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * ---------------------------------------------------------------------- + * $Id: tables.css 5257 2012-08-28 18:02:18Z al $ + * ---------------------------------------------------------------------- + */ + +/* Revision History +-----------------------------------------------*/ + +div.revhistory { + margin-top: 1em; + } + +div.revhistory table th, +div.revhistory table td { + font-size: x-small; + } + +/* Navegation +-----------------------------------------------*/ + +div.navheader { + margin-bottom: 0.5em; + padding-top: 0.5em; + } + +div.navfooter { + margin-top: 2.5em; + padding-bottom: 0.5em; + } + +div.navheader table, +div.navfooter table { + margin: 0; + } + +div.navheader table th, +div.navheader table td, +div.navfooter table th, +div.navfooter table td { + border: none; + } + +/* Admonitions +-----------------------------------------------*/ + +div.note, +div.tip, +div.important, +div.caution, +div.warning { + margin: 1.5em 0 1.5em 0 !important; + padding-left: 0.2em; + } + +div.note table, div.note table, +div.tip table, div.tip table, +div.important table, div.important table, +div.caution table, div.caution table, +div.warning table, div.warning table { + margin: 0; + border-width: 1px; + border-left-width: 5px; + border-style: solid; + width: 100%; + } + +div.note table, +div.tip table, +div.important table, +div.caution table, +div.warning table { + border-color: #F6E7D2; + background-color: #FFF8EC; + background-image: url("../Images/msg-bg-orange.png"); + } + +div.note table { + border-color: #D2E0F6; + background-color: #ECF4FF; + background-image: url("../Images/msg-bg-blue.png"); + } + +div.note table th, div.note table td, +div.tip table th, div.tip table td, +div.important table th, div.important table td, +div.caution table th, div.caution table td, +div.warning table th, div.warning table td { + padding: 0; + border: none; + } + +div.note table th, +div.tip table th, +div.important table th, +div.caution table th, +div.warning table th { + font-size: 1.4em; + padding: 1em 0 0 0; + } + +div.note table td img, +div.tip table td img, +div.important table td img, +div.caution table td img, +div.warning table td img { + margin: 10px; + } + +div.note table td p, +div.tip table td p, +div.important table td p, +div.caution table td p, +div.warning table td p { + margin: 10px 25px 15px 0; + } + +div.note pre, +div.tip pre, +div.important pre, +div.caution pre, +div.warning pre { + border: none; + background: #0F0F0F; + color: #FFFFFF; + margin: 0 15px 1em 0; + padding: 0.5em 1em 0.5em 1em; + } + +/* Callouts +-----------------------------------------------*/ +div.calloutlist { + margin-top: 1em; + } + +div.calloutlist table td { + border: none; + padding: 0.2em; + } + +div.example pre img { + vertical-align: middle; + } diff --git a/tcar-models-docs/Xsl/docbook2fo.xsl b/tcar-models-docs/Xsl/docbook2fo.xsl new file mode 100755 index 0000000..f2b958c --- /dev/null +++ b/tcar-models-docs/Xsl/docbook2fo.xsl @@ -0,0 +1,1248 @@ +<?xml version='1.0'?> +<!-- +$Id$ +--> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0' + xmlns="http://www.w3.org/TR/xhtml1/transitional" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + exclude-result-prefixes="#default"> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl"/> + + <!-- + Add your customization below this comment. For more information + about how to customize this section, read installed documentation + at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/fo/index.html + --> + + <xsl:param name="doc.url" select="'http://www.centos.org/docs/'"/> + + <!-- + The following customization is based on `main-pdf.xsl' from + `publican-0.33-0.el5' package. Feel free to make improvements. + --> + +<xsl:param name="alignment">left</xsl:param> +<xsl:param name="use.extensions" select="0"/> +<xsl:param name="tablecolumns.extensions" select="0"/> +<xsl:param name="passivetex.extensions" select="1"/> +<xsl:param name="fop1.extensions" select="0"/> +<xsl:param name="img.src.path" select="''" /> +<xsl:param name="confidential" select="0"/> +<xsl:param name="qandadiv.autolabel" select="0"/> +<xsl:param name="keep.relative.image.uris" select="0"/> +<xsl:param name="hyphenation-character">-</xsl:param> + +<xsl:param name="hyphenate.verbatim" select="0"/> +<xsl:param name="hyphenate">false</xsl:param> +<!--xsl:param name="ulink.hyphenate" select="1"/--> +<xsl:param name="ulink.footnotes" select="1"/> + +<xsl:param name="line-height" select="1.5"/> + +<xsl:attribute-set name="xref.properties"> + <xsl:attribute name="font-style">italic</xsl:attribute> + <xsl:attribute name="color"> + <xsl:choose> + <xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip"> + <xsl:text>#aee6ff</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>#0066cc</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> +</xsl:attribute-set> + +<!-- +<xsl:attribute-set name="monospace.properties"> + <xsl:attribute name="font-size">9pt</xsl:attribute> + <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 name="wrap-option">wrap</xsl:attribute> + <xsl:attribute name="hyphenation-character">►</xsl:attribute> +</xsl:attribute-set> + +<xsl:param name="shade.verbatim" select="0"/> +<xsl:attribute-set name="shade.verbatim.style"> + <xsl:attribute name="wrap-option">wrap</xsl:attribute> + <xsl:attribute name="background-color"> + <xsl:choose> + <xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip"> + <xsl:text>#333333</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>#e9e3cc</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> + <xsl:attribute name="color"> + <xsl:choose> + <xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip"> + <xsl:text>white</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>black</xsl:text> + </xsl:otherwise> + </xsl:choose> + </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"> + <xsl:value-of select="$title.margin.left"/> + </xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="verbatim.properties"> + <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> + <xsl:attribute name="space-before.optimum">1em</xsl:attribute> + <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> + <xsl:attribute 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 name="hyphenate">false</xsl:attribute> + <xsl:attribute name="wrap-option">wrap</xsl:attribute> + <xsl:attribute name="white-space-collapse">false</xsl:attribute> + <xsl:attribute name="white-space-treatment">preserve</xsl:attribute> + <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute> + <xsl:attribute name="text-align">start</xsl:attribute> +</xsl:attribute-set> +--> + +<!-- Admonitions --> +<xsl:param name="admon.graphics" select="0"/> +<xsl:param name="admon.graphics.path" select="''" /> +<xsl:param name="admon.graphics.extension" select="'.png'"/> +<xsl:attribute-set name="admonition.title.properties"> + <xsl:attribute name="font-size">13pt</xsl:attribute> + <xsl:attribute name="color">white</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:attribute-set name="admonition.properties"></xsl:attribute-set--> + +<xsl:attribute-set name="graphical.admonition.properties"> + <xsl:attribute name="color">white</xsl:attribute> + <xsl:attribute name="background-color">#404040</xsl:attribute> + <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">1em</xsl:attribute> + <xsl:attribute name="padding-bottom">12pt</xsl:attribute> + <xsl:attribute name="padding-top">12pt</xsl:attribute> + <xsl:attribute name="padding-right">12pt</xsl:attribute> + <xsl:attribute name="padding-left">12pt</xsl:attribute> + <xsl:attribute name="margin-left"> + <xsl:value-of select="$title.margin.left"/> + </xsl:attribute> +</xsl:attribute-set> + +<xsl:param name="generate.toc"> +set toc +book toc +article toc +</xsl:param> + +<xsl:param name="toc.section.depth">3</xsl:param> +<xsl:param name="section.autolabel" select="1"/> + +<xsl:param name="callout.graphics.path" select="''" /> + +<!-- Format Variable Lists as Blocks (prevents horizontal overflow). --> +<xsl:param name="variablelist.as.blocks">1</xsl:param> + +<!-- The horrible list spacing problems, this is much better. --> +<!--xsl:attribute-set name="list.block.spacing"> + <xsl:attribute name="space-before.optimum">2em</xsl:attribute> + <xsl:attribute name="space-before.minimum">1em</xsl:attribute> + <xsl:attribute name="space-before.maximum">3em</xsl:attribute> + <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute> + <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute> + <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute> +</xsl:attribute-set--> + +<!-- Some padding inside tables --> +<xsl:attribute-set name="table.cell.padding"> +<xsl:attribute name="padding-left">4pt</xsl:attribute> +<xsl:attribute name="padding-right">4pt</xsl:attribute> +<xsl:attribute name="padding-top">2pt</xsl:attribute> +<xsl:attribute name="padding-bottom">2pt</xsl:attribute> +</xsl:attribute-set> + +<!-- Only hairlines as frame and cell borders in tables --> +<xsl:param name="table.frame.border.thickness">0.3pt</xsl:param> +<xsl:param name="table.cell.border.thickness">0.15pt</xsl:param> +<xsl:param name="table.cell.border.color">#5c5c4f</xsl:param> +<xsl:param name="table.frame.border.color">#5c5c4f</xsl:param> +<xsl:param name="table.cell.border.right.color">white</xsl:param> +<xsl:param name="table.cell.border.left.color">white</xsl:param> +<xsl:param name="table.frame.border.right.color">white</xsl:param> +<xsl:param name="table.frame.border.left.color">white</xsl:param> +<!-- Paper type, no headers on blank pages, no double sided printing --> +<xsl:param name="paper.type" select="'A4'"/> +<xsl:param name="double.sided">1</xsl:param> +<xsl:param name="headers.on.blank.pages">1</xsl:param> +<xsl:param name="footers.on.blank.pages">1</xsl:param> +<!--xsl:param name="header.column.widths" select="'1 4 1'"/--> +<xsl:param name="header.column.widths" select="'1 0 1'"/> +<xsl:param name="footer.column.widths" select="'1 1 1'"/> +<xsl:param name="header.rule" select="1"/> + +<!-- Space between paper border and content (chaotic stuff, don't touch) --> +<xsl:param name="page.margin.top">15mm</xsl:param> +<xsl:param name="region.before.extent">10mm</xsl:param> +<xsl:param name="body.margin.top">15mm</xsl:param> + +<xsl:param name="body.margin.bottom">15mm</xsl:param> +<xsl:param name="region.after.extent">10mm</xsl:param> +<xsl:param name="page.margin.bottom">15mm</xsl:param> + +<xsl:param name="page.margin.outer">30mm</xsl:param> +<xsl:param name="page.margin.inner">30mm</xsl:param> + +<!-- No intendation of Titles --> +<xsl:param name="title.margin.left">0pt</xsl:param> + +<xsl:param name="title.color">#204c8d</xsl:param> + +<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <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-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> + <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> + <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="section.title.level1.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.master * 1.6"/> + <xsl:text>pt</xsl:text> + </xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="section.title.level2.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.master * 1.4"/> + <xsl:text>pt</xsl:text> + </xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="section.title.level3.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.master * 1.3"/> + <xsl:text>pt</xsl:text> + </xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="section.title.level4.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></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-set> +<xsl:attribute-set name="section.title.level5.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="$body.font.master * 1.1"/> + <xsl:text>pt</xsl:text> + </xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="section.title.level6.properties"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <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 name="text-align">left</xsl:attribute> + <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="book.titlepage.recto.style"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$title.fontset"/> + </xsl:attribute> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></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="component.title.properties"> + <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> + <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> + <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> + <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute> + <xsl:attribute name="hyphenate">false</xsl:attribute> + <xsl:attribute name="color"> + <xsl:choose> + <xsl:when test="not(parent::chapter | parent::article | parent::appendix)"><xsl:value-of select="$title.color"/></xsl:when> + </xsl:choose> + </xsl:attribute> + <xsl:attribute name="text-align"> + <xsl:choose> + <xsl:when test="((parent::article | parent::articleinfo) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when> + <xsl:otherwise>left</xsl:otherwise> + </xsl:choose> + </xsl:attribute> + <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="chapter.titlepage.recto.style"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language = 'ja-JP'"> + <xsl:value-of select="$body.font.master * 1.7"/> + <xsl:text>pt</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>24pt</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="text-align">left</xsl:attribute> + <!--xsl:attribute name="wrap-option">no-wrap</xsl:attribute--> + <xsl:attribute name="padding-left">1em</xsl:attribute> + <xsl:attribute name="padding-right">1em</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="preface.titlepage.recto.style"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$title.fontset"/> + </xsl:attribute> + <xsl:attribute name="color">#204c8d</xsl:attribute> + <xsl:attribute name="font-size">12pt</xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="part.titlepage.recto.style"> + <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> +</xsl:attribute-set> + + +<!-- +From: fo/table.xsl +Reason: Table Header format +Version:1.72 +--> +<xsl:template name="table.cell.block.properties"> + <!-- highlight this entry? --> + <xsl:if test="ancestor::thead or ancestor::tfoot"> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="background-color">#204c8d</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:if> +</xsl:template> + +<!-- +From: fo/table.xsl +Reason: Table Header format +Version:1.72 +--> +<!-- customize this template to add row properties --> +<xsl:template name="table.row.properties"> + <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="'bgcolor'"/> + </xsl:call-template> + </xsl:variable> + <xsl:if test="$bgcolor != ''"> + <xsl:attribute name="background-color"> + <xsl:value-of select="$bgcolor"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="ancestor::thead or ancestor::tfoot"> + <xsl:attribute name="background-color">#204c8d</xsl:attribute> + </xsl:if> +</xsl:template> + +<!-- +From: fo/titlepage.templates.xsl +Reason: Switch to using chapter.titlepage.recto.style +Version:1.72 +--> +<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="chapter.titlepage.recto.style"> +<xsl:call-template name="component.title.nomarkup"> +<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/> +</xsl:call-template> +</fo:block> +</xsl:template> + +<!-- +From: fo/titlepage.templates.xsl +Reason: Remove font size and weight overrides +Version:1.72 +--> +<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"> +<xsl:value-of select="."/> +</fo:block> +</xsl:template> + +<!-- +From: fo/titlepage.templates.xsl +Reason: Remove font family, size and weight overrides +Version:1.72 +--> +<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}"> +<xsl:call-template name="component.title.nomarkup"> +<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="pickfont-sans"> + <xsl:variable name="font"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language = 'ja-JP'"> + <xsl:text>KochiMincho,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ko-KR'"> + <xsl:text>BaekmukBatang,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-CN'"> + <xsl:text>ARPLKaitiMGB,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'bn-IN'"> + <xsl:text>LohitBengali,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ta-IN'"> + <xsl:text>LohitTamil,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'pa-IN'"> + <xsl:text>LohitPunjabi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'hi-IN'"> + <xsl:text>LohitHindi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'gu-IN'"> + <xsl:text>LohitGujarati,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-TW'"> + <xsl:text>ARPLMingti2LBig5,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ru-RU'"> + <xsl:text>DejaVuLGCSans,</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:variable> + <xsl:choose> + <xsl:when test="$fop.extensions != 0"> + <xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="pickfont-serif"> + <xsl:variable name="font"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language = 'ja-JP'"> + <xsl:text>KochiMincho,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ko-KR'"> + <xsl:text>BaekmukBatang,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-CN'"> + <xsl:text>ARPLKaitiMGB,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'bn-IN'"> + <xsl:text>LohitBengali,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ta-IN'"> + <xsl:text>LohitTamil,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'pa-IN'"> + <xsl:text>LohitPunjabi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'hi-IN'"> + <xsl:text>LohitHindi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'gu-IN'"> + <xsl:text>LohitGujarati,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-TW'"> + <xsl:text>ARPLMingti2LBig5,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ru-RU'"> + <xsl:text>DejaVuLGCSans,</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:variable> + <xsl:choose> + <xsl:when test="$fop.extensions != 0"> + <xsl:copy-of select="$font"/><xsl:text>serif</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$font"/><xsl:text>serif</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="pickfont-mono"> + <xsl:variable name="font"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language = 'ja-JP'"> + <xsl:text>KochiMincho,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ko-KR'"> + <xsl:text>BaekmukBatang,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-CN'"> + <xsl:text>ARPLKaitiMGB,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'bn-IN'"> + <xsl:text>LohitBengali,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ta-IN'"> + <xsl:text>LohitTamil,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'pa-IN'"> + <xsl:text>LohitPunjabi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'hi-IN'"> + <xsl:text>LohitHindi,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'gu-IN'"> + <xsl:text>LohitGujarati,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'zh-TW'"> + <xsl:text>ARPLMingti2LBig5,</xsl:text> + </xsl:when> + <xsl:when test="$l10n.gentext.language = 'ru-RU'"> + <xsl:text>DejaVuLGCSansMono,</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:variable> + <xsl:choose> + <xsl:when test="$fop.extensions != 0"> + <xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!--xsl:param name="symbol.font.family"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language = 'ja-JP'"> + <xsl:text>Symbol,ZapfDingbats</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>Symbol,ZapfDingbats</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:param--> + +<xsl:param name="title.font.family"> + <xsl:call-template name="pickfont-sans"/> +</xsl:param> + +<xsl:param name="body.font.family"> + <xsl:call-template name="pickfont-sans"/> +</xsl:param> + +<xsl:param name="monospace.font.family"> + <xsl:call-template name="pickfont-mono"/> +</xsl:param> + +<xsl:param name="sans.font.family"> + <xsl:call-template name="pickfont-sans"/> +</xsl:param> + +<!--xsl:param name="callout.unicode.font"> + <xsl:call-template name="pickfont-sans"/> +</xsl:param--> + +<!-- +From: fo/verbatim.xsl +Reason: Left align address +Version: 1.72 +--> + +<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" + text-align="start" + xsl:use-attribute-sets="verbatim.properties"> + <xsl:copy-of select="$content"/> + </fo:block> +</xsl:template> + +<xsl:template name="component.title.nomarkup"> + <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:with-param name="allow-anchors" select="1"/> + </xsl:apply-templates> + </xsl:variable> + <xsl:copy-of select="$title"/> +</xsl:template> + +<xsl:attribute-set name="header.content.properties"> + <xsl:attribute name="wrap-option">no-wrap</xsl:attribute> + <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> + +<!-- +From: fo/pagesetup.xsl +Reason: Custom Header +Version: 1.72 +--> +<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="''"/> + <xsl:param name="title-limit" select="'30'"/> +<!-- + <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> +body, blank, left, chapter +--> + <!-- sequence can be odd, even, first, blank --> + <!-- position can be left, center, right --> + <xsl:choose> + <!--xsl:when test="($sequence='blank' and $position='left' and $gentext-key='chapter')"> + <xsl:variable name="text"> + <xsl:call-template name="component.title.nomarkup"/> + </xsl:variable> + <fo:inline keep-together.within-line="always" font-weight="bold"> + <xsl:choose> + <xsl:when test="string-length($text) > '33'"> + <xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$text"/> + </xsl:otherwise> + </xsl:choose> + </fo:inline> + </xsl:when--> + <xsl:when test="$confidential = 1 and (($sequence='odd' and $position='left') or ($sequence='even' and $position='right'))"> + <fo:inline keep-together.within-line="always" font-weight="bold"> + <xsl:text>RED HAT CONFIDENTIAL</xsl:text> + </fo:inline> + </xsl:when> + <xsl:when test="$sequence = 'blank'"> + <!-- nothing --> + </xsl:when> + <!-- Extracting 'Chapter' + Chapter Number from the full Chapter title, with a dirty, dirty hack --> + <xsl:when test="($sequence='first' and $position='left' and $gentext-key='chapter')"> + <xsl:variable name="text"> + <xsl:call-template name="component.title.nomarkup"/> + </xsl:variable> + <xsl:variable name="chapt"> + <xsl:value-of select="substring-before($text, ' ')"/> + </xsl:variable> + <xsl:variable name="remainder"> + <xsl:value-of select="substring-after($text, ' ')"/> + </xsl:variable> + <xsl:variable name="chapt-num"> + <xsl:value-of select="substring-before($remainder, ' ')"/> + </xsl:variable> + <xsl:variable name="text1"> + <xsl:value-of select="concat($chapt, ' ', $chapt-num)"/> + </xsl:variable> + <fo:inline keep-together.within-line="always" font-weight="bold"> + <xsl:value-of select="$text1"/> + </fo:inline> + </xsl:when> + <!--xsl:when test="($sequence='odd' or $sequence='even') and $position='center'"--> + <xsl:when test="($sequence='even' and $position='left')"> + <!--xsl:if test="$pageclass != 'titlepage'"--> + <fo:inline keep-together.within-line="always" font-weight="bold"> + <xsl:call-template name="component.title.nomarkup"/> + </fo:inline> + <!--xsl:if--> + </xsl:when> + <xsl:when test="($sequence='odd' and $position='right')"> + <!--xsl:if test="$pageclass != 'titlepage'"--> + <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> + <!--/xsl:if--> + </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="$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> +</xsl:template> + +<!-- +From: fo/pagesetup.xsl +Reason: Override colour +Version: 1.72 +--> +<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">#204c8d</xsl:attribute> + </xsl:if> +</xsl:template> + +<!-- +From: fo/pagesetup.xsl +Reason: Override colour +Version: 1.72 +--> +<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">#204c8d</xsl:attribute> + </xsl:if> +</xsl:template> + +<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:attribute-set name="footnote.mark.properties"> + <xsl:attribute name="font-size">75%</xsl:attribute> + <xsl:attribute name="font-weight">normal</xsl:attribute> + <xsl:attribute name="font-style">normal</xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="footnote.properties"> + <xsl:attribute name="padding-top">48pt</xsl:attribute> + <xsl:attribute name="font-family"><xsl:value-of select="$body.fontset"/></xsl:attribute> + <xsl:attribute name="font-size"><xsl:value-of select="$footnote.font.size"/></xsl:attribute> + <xsl:attribute name="font-weight">normal</xsl:attribute> + <xsl:attribute name="font-style">normal</xsl:attribute> + <xsl:attribute name="text-align"><xsl:value-of select="$alignment"/></xsl:attribute> + <xsl:attribute name="start-indent">0pt</xsl:attribute> +</xsl:attribute-set> +<xsl:attribute-set name="footnote.sep.leader.properties"> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="leader-pattern">rule</xsl:attribute> + <xsl:attribute name="leader-length">1in</xsl:attribute> +</xsl:attribute-set> + +<xsl:template match="author" mode="tablerow.titlepage.mode"> + <fo:table-row> + <fo:table-cell> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Author'"/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="."/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:apply-templates select="email"/> + </fo:block> + </fo:table-cell> + </fo:table-row> +</xsl:template> + +<xsl:template match="author" mode="titlepage.mode"> + <fo:block> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="."/> + </xsl:call-template> + </fo:block> +</xsl:template> + +<xsl:param name="editedby.enabled">0</xsl:param> + +<xsl:template match="editor" mode="tablerow.titlepage.mode"> + <fo:table-row> + <fo:table-cell> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Editor'"/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="."/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:apply-templates select="email"/> + </fo:block> + </fo:table-cell> + </fo:table-row> +</xsl:template> + +<xsl:template match="othercredit" mode="tablerow.titlepage.mode"> + <fo:table-row> + <fo:table-cell> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'translator'"/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="."/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:apply-templates select="email"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + </xsl:template> + +<!-- +From: fo/titlepage.xsl +Reason: +Version:1.72 +--> +<xsl:template name="verso.authorgroup"> + <fo:table table-layout="fixed" width="100%"> + <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> + <xsl:apply-templates select="author" mode="tablerow.titlepage.mode"/> + <xsl:apply-templates select="editor" mode="tablerow.titlepage.mode"/> + <xsl:apply-templates select="othercredit" mode="tablerow.titlepage.mode"/> + </fo:table-body> + </fo:table> +</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="20pt" 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="34pt" space-before="30pt" font-family="{$title.fontset}"> +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="issuenum" 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="34pt" space-before="30pt" font-family="{$title.fontset}"> +<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 xsl:use-attribute-sets="book.titlepage.recto.style" font-size="14pt" space-before="15.552pt"> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="."/> + </xsl:call-template> + </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/issuenum"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/issuenum"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="issuenum"/> + + <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/author"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup/author"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/> + + <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/invpartnumber"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/invpartnumber"/> + </fo:block> + <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'isbn'"/> + </xsl:call-template> + <xsl:text>: </xsl:text> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/isbn"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/isbn"/> + </fo:block> + <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'pubdate'"/> + </xsl:call-template> + <xsl:text>: </xsl:text> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/> + </fo:block> +</xsl:template> + +<xsl:template name="book.titlepage.verso"> + <xsl:choose> + <xsl:when test="bookinfo/abstract"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/> + </xsl:when> + <xsl:when test="info/abstract"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/> + </xsl:when> + </xsl:choose> + +</xsl:template> + +<xsl:template name="book.titlepage3.recto"> + <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/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/copyright"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/> + <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:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/publisher"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/publisher"/> +</xsl:template> + +<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/> +</xsl:template> + +<xsl:template name="book.titlepage.before.recto"> +</xsl:template> + +<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/> +</xsl:template> + +<xsl:template name="book.titlepage"> + <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <xsl:call-template name="book.titlepage.before.recto"/> + <fo:block><xsl:call-template name="book.titlepage.recto"/></fo:block> + <xsl:call-template name="book.titlepage.separator"/> + <fo:block><xsl:call-template name="book.titlepage.verso"/></fo:block> + <xsl:call-template name="book.titlepage.separator"/> + <fo:block><xsl:call-template name="book.titlepage3.recto"/></fo:block> + <xsl:call-template name="book.titlepage.separator"/> + </fo:block> +</xsl:template> + +<!-- +From: fo/qandaset.xsl +Reason: Id in list-item-label causes fop crash +Version:1.72 +--> + +<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 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> + <!-- Uncomment this line to get revhistory output in the question --> + <!-- <xsl:apply-templates select="preceding-sibling::revhistory"/> --> + </fo:list-item-body> + </fo:list-item> +</xsl:template> + +<!-- +From: fo/qandaset.xsl +Reason: Id in list-item-label causes fop crash +Version:1.72 +--> +<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 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> +<!-- +From: fo/block.xsl +Reason: formal para needs to be block to appear as a title +Version:1.72 +--> +<xsl:template match="formalpara/title|formalpara/info/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:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.title.properties section.title.level5.properties"> + <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> + </fo:block> +</xsl:template> + +</xsl:stylesheet> diff --git a/tcar-models-docs/Xsl/docbook2manpage.xsl b/tcar-models-docs/Xsl/docbook2manpage.xsl new file mode 100755 index 0000000..2e4aafb --- /dev/null +++ b/tcar-models-docs/Xsl/docbook2manpage.xsl @@ -0,0 +1,12 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" /> + + <!-- + Add your customization below this comment. For more information + about how to customize this section, read installed documentation + at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/html/index.html + --> + <xsl:param name="man.output.quietly" select="1"></xsl:param> + +</xsl:stylesheet> diff --git a/tcar-models-docs/Xsl/docbook2xhtml-chunks.xsl b/tcar-models-docs/Xsl/docbook2xhtml-chunks.xsl new file mode 100755 index 0000000..7ed98ef --- /dev/null +++ b/tcar-models-docs/Xsl/docbook2xhtml-chunks.xsl @@ -0,0 +1,43 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk.xsl" /> + + <!-- + Add your customization below this comment. For more information + about how to customize this section, read installed documentation + at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/html/index.html + --> + + <xsl:param name="html.stylesheet">Css/stylesheet.css</xsl:param> + + <xsl:param name="chunk.quietly" select="1"></xsl:param> + <xsl:param name="section.autolabel" select="1"></xsl:param> + <xsl:param name="section.label.includes.component.label" select="1"></xsl:param> + <xsl:param name="admon.graphics" select="1"></xsl:param> + <xsl:param name="admon.graphics.path">Images/</xsl:param> + <xsl:param name="callout.graphics.path" select="'Images/'"></xsl:param> + + <!-- + Don't print toc inside reference pages. + --> + <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 nop + sect1 toc + sect2 toc + sect3 toc + sect4 toc + sect5 toc + section toc + set toc,title + </xsl:param> + +</xsl:stylesheet> diff --git a/tcar-models-docs/Xsl/docbook2xhtml-single-notoc.xsl b/tcar-models-docs/Xsl/docbook2xhtml-single-notoc.xsl new file mode 100755 index 0000000..346b1bd --- /dev/null +++ b/tcar-models-docs/Xsl/docbook2xhtml-single-notoc.xsl @@ -0,0 +1,25 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl" /> + + <!-- + Add your customization below this comment. For more information + about how to customize this section, read installed documentation + at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/html/index.html + --> + + <xsl:param name="html.stylesheet"></xsl:param> + <xsl:param name="admon.graphics.path">Images/</xsl:param> + <xsl:param name="callout.graphics.path" select="'Images/'"></xsl:param> + + <!-- + Don't print toc + --> + <xsl:param name="generate.toc"> + article nop + book nop + refentry nop + set nop + </xsl:param> + +</xsl:stylesheet> diff --git a/tcar-models-docs/Xsl/docbook2xhtml-single.xsl b/tcar-models-docs/Xsl/docbook2xhtml-single.xsl new file mode 100755 index 0000000..e4d7b49 --- /dev/null +++ b/tcar-models-docs/Xsl/docbook2xhtml-single.xsl @@ -0,0 +1,18 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl" /> + + <!-- + Add your customization below this comment. For more information + about how to customize this section, read installed documentation + at: /usr/share/doc/docbook-style-xsl-1.69.1/doc/html/index.html + --> + + <xsl:param name="html.stylesheet">Css/stylesheet.css</xsl:param> + <xsl:param name="section.autolabel" select="1"></xsl:param> + <xsl:param name="section.label.includes.component.label" select="1"></xsl:param> + <xsl:param name="admon.graphics" select="1"></xsl:param> + <xsl:param name="admon.graphics.path">Images/</xsl:param> + <xsl:param name="callout.graphics.path" select="'Images/'"></xsl:param> + +</xsl:stylesheet>