arm-param.xsl revision fea55d47b33a09f89eb35d78747bfa25c6e02824
5cd4555ad444fd391002ae32450572054369fd42Rob Austein<?xml version='1.0' encoding="iso-8859-1"?>
5cd4555ad444fd391002ae32450572054369fd42Rob Austein<!--
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein - Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington -
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater - This Source Code Form is subject to the terms of the Mozilla Public
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews - License, v. 2.0. If a copy of the MPL was not distributed with this
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington - file, You can obtain one at http://mozilla.org/MPL/2.0/.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater-->
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington<xsl:stylesheet version="1.0"
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews xmlns:xi="http://www.w3.org/2001/XInclude"
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews xmlns:db="http://docbook.org/ns/docbook">
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <!-- <optional> and <command> rendered in <programlisting>s.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews For each overriden element, the parameters must be defined.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews They are mandatory, and $probe must be set to 0 by default.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington Only dblatex 0.2.12, with the verbatim.boldseq template works
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews here.
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt -->
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews <xsl:template match="optional|command" mode="latex.programlisting">
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="co-tagin" select="'&lt;:'"/>
6a550cb83cc2196f8af0592a258f75985cdcb5ebJeremy Reed <xsl:param name="rnode" select="/"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="probe" select="0"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:call-template name="verbatim.boldseq">
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:with-param name="co-tagin" select="$co-tagin"/>
6ed53e5949d9fcd9715b440015b56e5a896d63dfDavid Hankins <xsl:with-param name="rnode" select="$rnode"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:with-param name="probe" select="$probe"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:call-template>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:template>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- skip over docinfo section when including man pages in ARM -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:template match="docinfo"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- Skip abstracts and sidebars -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="abstract"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="sidebar"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- Three section levels deep in the Table of contents -->
4b3f3cc67135e676a9b3b688685fb59e3494b0e6Mark Andrews <xsl:param name="toc.section.depth">3</xsl:param>
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews
3398334b3acda24b086957286288ca9852662b12Automatic Updater <!-- Do not show the collaborators listed in bookinfo -->
39844d471080b2de4f8bb9d81f7e136ef80f0ae2Automatic Updater <xsl:param name="doc.collab.show" select="0"/>
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- No revision history in the front matter -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:param name="latex.output.revhistory" select="0"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- Do not put sections for appendixes in TOC (set tocdepth=0) -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- Do not put appendixes in TOC (set tocdepth=-1) -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="appendix">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:if test="not (preceding-sibling::appendix)">
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews <xsl:call-template name="set-tocdepth">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- -1 for not appendix -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- 0 for no sections from appendix -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:with-param name="depth" select="0"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:call-template>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:if>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:apply-imports/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:template>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- Use the book class layout (instead of report) -->
eff7f78bc65f30efd87a398e66084ddab72799d3Mark Andrews <xsl:param name="latex.class.book">book</xsl:param>
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- Printable version -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- the blue boxes won't show up in print, but change to black and the boxes
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews disappeared -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- urlcolor=black is for email addresses etc -->
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt <!-- this is for a black-and-white PDF, no hyperlinks or URL colors -->
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews <!-- xsl:param name="latex.class.options">nohyperlink,colorlinks,linkcolor=black,urlcolor=black</xsl:param> -->
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt
50105afc551903541608b11851d73278b23579a3Mark Andrews <!-- Variable list terms on line by themselves -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="term.breakline">1</xsl:param>
e174044290953a2499f574e35cc9c22ba126a303Mark Andrews
6e8a8077faf96d8da0b6cf738913f5f1f86e4008Mark Andrews <!-- preface heading in TOC, 2 to get sections also -->
6ed53e5949d9fcd9715b440015b56e5a896d63dfDavid Hankins <xsl:param name="preface.tocdepth">2</xsl:param>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
e174044290953a2499f574e35cc9c22ba126a303Mark Andrews <!-- set latex secnumdepth, choose level of subsections to number -->
2534a73a5914470f7ffe00663b6bbaff5e411e57Mark Andrews <xsl:param name="doc.section.depth">1</xsl:param>
35f1a4fc935ad0f05a23d5a6cfba17f5913fdcc1Evan Hunt
35f1a4fc935ad0f05a23d5a6cfba17f5913fdcc1Evan Hunt <xsl:template name="inline.sansserifseq">
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="content">
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt <xsl:apply-templates/>
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews </xsl:param>
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt <xsl:text>\textsf{</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:copy-of select="$content"/>
fb596cc9af28ab5bf71c6796ebd1809654307a08Evan Hunt <xsl:text>}</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:template>
61271cdee65f3313e98f382b07e6674861d9020aEvan Hunt
3727725bb7d63605b68a644060857013d563b67fEvan Hunt <xsl:template match="othercredit|othername"/>
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews <!-- 21/Oct/2009 reed - don't widen tables -->
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews <xsl:param name="newtbl.autowidth">default</xsl:param>
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- 2014-09-25 reed - use Q and A instead of number -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="qanda.defaultlabel">qanda</xsl:param>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <!-- 2014-10-07 reed - add index to table of contents -->
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="index.tocdepth">5</xsl:param>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:param name="index.numbered">0</xsl:param>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <!-- Include our copyright generator -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:include href="copyright.xsl"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:param name="isc.copyright.leader"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:param name="isc.copyright.breakline"> \\</xsl:param>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="book" mode="docinfo">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:apply-imports/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:text>\def\DBKtitle{</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:value-of select="info/title"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:text>}&#10;</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:text>\def\DBKcopyright{</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:value-of select="$isc.copyright"/>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington <xsl:text>}&#10;</xsl:text>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington </xsl:template>
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein</xsl:stylesheet>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein