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