mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 04:58:04 +00:00
124 lines
4.3 KiB
XML
124 lines
4.3 KiB
XML
|
<?xml version='1.0' encoding="iso-8859-1"?>
|
||
|
<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:template match="optional|command" mode="latex.programlisting">
|
||
|
<xsl:param name="co-tagin" select="'<:'"/>
|
||
|
<xsl:param name="rnode" select="/"/>
|
||
|
<xsl:param name="probe" select="0"/>
|
||
|
|
||
|
<xsl:call-template name="verbatim.boldseq">
|
||
|
<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"/>
|
||
|
|
||
|
<!-- Two section level in the Table of contents -->
|
||
|
<xsl:param name="toc.section.depth">2</xsl:param>
|
||
|
|
||
|
<!-- Do not show the collaborators listed in bookinfo -->
|
||
|
<xsl:param name="doc.collab.show" select="0"/>
|
||
|
|
||
|
<!-- No revision history in the front matter -->
|
||
|
<xsl:param name="latex.output.revhistory" select="0"/>
|
||
|
|
||
|
<!-- 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) -->
|
||
|
<xsl:param name="latex.class.book">book</xsl:param>
|
||
|
|
||
|
<!-- 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 -->
|
||
|
<xsl:param name="latex.class.options">nohyperlink,colorlinks,linkcolor=black,urlcolor=black</xsl:param>
|
||
|
|
||
|
<!-- Variable list terms on line by themselves -->
|
||
|
<xsl:param name="term.breakline">1</xsl:param>
|
||
|
|
||
|
<!-- preface heading in TOC, 2 to get sections also -->
|
||
|
<xsl:param name="preface.tocdepth">2</xsl:param>
|
||
|
|
||
|
<!-- set latex secnumdepth, choose level of subsections to number -->
|
||
|
<xsl:param name="doc.section.depth">1</xsl:param>
|
||
|
|
||
|
<!-- custom for menu labels -->
|
||
|
<!-- I don't use guisubmenu -->
|
||
|
<!-- TODO: guimenu and guimenuitem not doing anything here -->
|
||
|
<xsl:template match="guimenu|guimenuitem">
|
||
|
<xsl:call-template name="inline.sansserifseq"/>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="guibutton">
|
||
|
<xsl:call-template name="inline.sansserifseq"/>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="guilabel">
|
||
|
<xsl:call-template name="inline.sansserifseq"/>
|
||
|
</xsl:template>
|
||
|
|
||
|
<xsl:template name="inline.sansserifseq">
|
||
|
<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"/>
|
||
|
|
||
|
<!-- 21/Oct/2009 reed - don't widen tables -->
|
||
|
<xsl:param name="newtbl.autowidth">default</xsl:param>
|
||
|
|
||
|
<!-- 2014-09-25 reed - use Q and A instead of number -->
|
||
|
<xsl:param name="qanda.defaultlabel">qanda</xsl:param>
|
||
|
|
||
|
<!-- 2014-10-07 reed - add index to table of contents -->
|
||
|
<xsl:param name="index.tocdepth">5</xsl:param>
|
||
|
<xsl:param name="index.numbered">0</xsl:param>
|
||
|
|
||
|
<!-- Include our copyright generator -->
|
||
|
<xsl:include href="copyright.xsl"/>
|
||
|
<xsl:param name="isc.copyright.leader"/>
|
||
|
<xsl:param name="isc.copyright.breakline"> \\</xsl:param>
|
||
|
|
||
|
<xsl:template match="book" mode="docinfo">
|
||
|
<xsl:apply-imports/>
|
||
|
<xsl:text>\def\DBKtitle{</xsl:text>
|
||
|
<xsl:value-of select="info/title"/>
|
||
|
<xsl:text>} </xsl:text>
|
||
|
|
||
|
<xsl:text>\def\DBKcopyright{</xsl:text>
|
||
|
<xsl:value-of select="$isc.copyright"/>
|
||
|
<xsl:text>} </xsl:text>
|
||
|
</xsl:template>
|
||
|
|
||
|
</xsl:stylesheet>
|