1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3 <xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
4 <xsl:import href="strip-references.xsl"/>
6 <xsl:param name="latex.mapping.xml" select="document('latex.overrides.xml')"/>
8 <xsl:param name="generate.toc">
12 book toc,title,figure,table,example,equation
13 /chapter toc,title,lop
29 <!-- Show real name of the link rather then user specified description -->
30 <xsl:template name="link">
31 <xsl:element name="link">
32 <xsl:copy-of select="@*"/>
36 <!-- LaTeX doesn't accept verbatim stuff in titles -->
37 <xsl:template match="//title/filename|//title/command|//title/parameter|//title/constant">
38 <xsl:variable name="content">
39 <xsl:apply-templates/>
41 <xsl:if test="$content != ''">
42 <xsl:value-of select="$content" />
46 <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/>
47 <xsl:variable name="l10n.gentext.default.language" select="'en'"/>
48 <xsl:variable name="latex.document.font">default</xsl:variable>
49 <xsl:variable name="latex.example.caption.style"></xsl:variable>
50 <xsl:variable name="latex.hyperref.param.pdftex">hyperfigures,hyperindex,citecolor=black,urlcolor=black,filecolor=black,linkcolor=black,menucolor=red,pagecolor=black</xsl:variable>
51 <xsl:variable name="admon.graphics.path">xslt/figures</xsl:variable>
52 <xsl:variable name="latex.use.tabularx">1</xsl:variable>
53 <xsl:variable name="latex.fancyhdr.lh"></xsl:variable>
54 <xsl:variable name="latex.use.fancyhdr"></xsl:variable>
55 <xsl:variable name="latex.use.parskip">1</xsl:variable>
56 <xsl:variable name="latex.book.varsets" select="''"/>
57 <xsl:variable name="latex.hyphenation.tttricks">1</xsl:variable>
58 <xsl:variable name="latex.titlepage.file"></xsl:variable>
59 <xsl:template name="latex.thead.row.entry">
60 <xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text>
62 <xsl:variable name="latex.documentclass">sambadoc</xsl:variable>
63 <xsl:variable name="latex.babel.language">english</xsl:variable>
64 <xsl:variable name="ulink.footnotes" select="1"/>
65 <xsl:variable name="ulink.show" select="0"/>
67 <xsl:template match="smbconfblock/smbconfoption">
68 <xsl:text> </xsl:text><xsl:value-of select="@name"/>
69 <xsl:if test="text() != ''">
70 <xsl:text> = </xsl:text>
71 <xsl:value-of select="text()"/>
73 <xsl:text> </xsl:text>
76 <xsl:template match="smbconfblock/smbconfcomment">
77 <xsl:text># </xsl:text>
78 <xsl:apply-templates/>
79 <xsl:text> </xsl:text>
82 <xsl:template match="smbconfblock/smbconfsection">
83 <xsl:value-of select="@name"/>
84 <xsl:text> </xsl:text>
87 <xsl:template match="smbconfoption">
88 <xsl:text>\smbconfoption{</xsl:text>
89 <xsl:call-template name="scape">
90 <xsl:with-param name="string" select="@name"/>
92 <xsl:text>}</xsl:text>
95 <xsl:when test="text() != ''">
96 <xsl:text> = </xsl:text>
97 <xsl:call-template name="scape">
98 <xsl:with-param name="string" select="text()"/>
104 <xsl:template match="smbconfblock">
105 <xsl:text> \begin{lstlisting}[language=smbconf,style=smbconfblock] </xsl:text>
106 <xsl:apply-templates/>
107 <xsl:text>\end{lstlisting} </xsl:text>
110 <xsl:template match="smbconfsection">
111 <xsl:text>\smbconfsection{</xsl:text>
112 <xsl:call-template name="scape">
113 <xsl:with-param name="string" select="@name"/>
115 <xsl:text>}</xsl:text>
118 <xsl:template match="imagefile">
119 <xsl:text>\includegraphics[scale=</xsl:text>
121 <xsl:when test="@scale != ''"><xsl:value-of select="@scale div 100"/></xsl:when>
123 <xsl:otherwise><xsl:text>.50</xsl:text></xsl:otherwise>
125 <xsl:text>]{</xsl:text>
126 <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text>
127 <xsl:value-of select="text()"/>
128 <xsl:text>} </xsl:text>