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