2004-04-07 14:40:50 +04:00
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" version= '1.0' >
<xsl:import href= "http://db2latex.sourceforge.net/xsl/docbook.xsl" />
2005-06-12 20:46:09 +04:00
<xsl:import href= "strip-references.xsl" />
2004-04-07 14:40:50 +04:00
2005-06-11 00:29:09 +04:00
<xsl:param name= "latex.mapping.xml" select= "document('latex.overrides.xml')" />
<xsl:param name= "generate.toc" >
/appendix toc,title
article/appendix nop
/article toc,title
book toc,title,figure,table,example,equation
/chapter toc,title,lop
part toc,title
/preface toc,title
qandadiv toc
qandaset toc
procedure lop
reference toc,title
/sect1 toc
/sect2 toc
/sect3 toc
/sect4 toc
/sect5 toc
/section toc
set toc,title
</xsl:param>
2005-06-11 02:28:10 +04:00
<!-- Show real name of the link rather then user specified description -->
2005-05-20 03:33:59 +04:00
<xsl:template name= "link" >
<xsl:element name= "link" >
<xsl:copy-of select= "@*" />
</xsl:element>
</xsl:template>
2005-06-11 02:28:10 +04:00
<!-- LaTeX doesn't accept verbatim stuff in titles -->
<xsl:template match= "//title/filename|//title/command|//title/parameter|//title/constant" >
<xsl:variable name= "content" >
<xsl:apply-templates />
</xsl:variable>
<xsl:if test= "$content != ''" >
<xsl:value-of select= "$content" />
</xsl:if>
</xsl:template>
2004-04-07 14:40:50 +04:00
<xsl:output method= "text" encoding= "ISO-8859-1" indent= "yes" />
2005-06-13 18:56:25 +04:00
<xsl:variable name= "l10n.gentext.default.language" select= "'en'" />
<xsl:variable name= "latex.document.font" > default</xsl:variable>
<xsl:variable name= "latex.example.caption.style" > </xsl:variable>
2004-04-07 14:40:50 +04:00
<xsl:variable name= "latex.hyperref.param.pdftex" > hyperfigures,hyperindex,citecolor=black,urlcolor=black,filecolor=black,linkcolor=black,menucolor=red,pagecolor=black</xsl:variable>
2004-06-20 16:43:16 +04:00
<xsl:variable name= "admon.graphics.path" > xslt/figures</xsl:variable>
2004-04-07 14:40:50 +04:00
<xsl:variable name= "latex.use.tabularx" > 1</xsl:variable>
<xsl:variable name= "latex.fancyhdr.lh" > </xsl:variable>
<xsl:variable name= "latex.use.fancyhdr" > </xsl:variable>
<xsl:variable name= "latex.use.parskip" > 1</xsl:variable>
2005-06-13 18:56:25 +04:00
<xsl:variable name= "latex.book.varsets" select= "''" />
2004-04-07 14:40:50 +04:00
<xsl:variable name= "latex.hyphenation.tttricks" > 1</xsl:variable>
<xsl:variable name= "latex.titlepage.file" > </xsl:variable>
<xsl:template name= "latex.thead.row.entry" >
<xsl:text > {\bfseries </xsl:text> <xsl:apply-templates /> <xsl:text > }</xsl:text>
</xsl:template>
2005-06-13 18:56:25 +04:00
<xsl:variable name= "latex.documentclass" > sambadoc</xsl:variable>
<xsl:variable name= "latex.babel.language" > english</xsl:variable>
2005-06-13 14:23:53 +04:00
<xsl:variable name= "ulink.footnotes" select= "1" />
<xsl:variable name= "ulink.show" select= "0" />
2004-04-07 14:40:50 +04:00
2005-06-13 04:48:46 +04:00
<xsl:template match= "smbconfblock/smbconfoption" >
2005-06-13 17:22:50 +04:00
<xsl:text > </xsl:text> <xsl:value-of select= "@name" />
2005-06-13 04:48:46 +04:00
<xsl:if test= "text() != ''" >
<xsl:text > = </xsl:text>
<xsl:value-of select= "text()" />
</xsl:if>
<xsl:text > </xsl:text>
</xsl:template>
<xsl:template match= "smbconfblock/smbconfcomment" >
<xsl:text > # </xsl:text>
<xsl:apply-templates />
<xsl:text > </xsl:text>
</xsl:template>
<xsl:template match= "smbconfblock/smbconfsection" >
<xsl:value-of select= "@name" />
<xsl:text > </xsl:text>
</xsl:template>
<xsl:template match= "smbconfoption" >
<xsl:text > \smbconfoption{</xsl:text>
2005-06-13 14:23:53 +04:00
<xsl:call-template name= "scape" >
<xsl:with-param name= "string" select= "@name" />
</xsl:call-template>
2005-06-13 04:48:46 +04:00
<xsl:text > }</xsl:text>
<xsl:choose >
<xsl:when test= "text() != ''" >
<xsl:text > = </xsl:text>
2005-06-13 14:23:53 +04:00
<xsl:call-template name= "scape" >
<xsl:with-param name= "string" select= "text()" />
</xsl:call-template>
2005-06-13 04:48:46 +04:00
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match= "smbconfblock" >
2005-06-13 16:49:10 +04:00
<xsl:text > \begin{lstlisting}[language=smbconf,style=smbconfblock] </xsl:text>
2005-06-13 04:48:46 +04:00
<xsl:apply-templates />
<xsl:text > \end{lstlisting} </xsl:text>
</xsl:template>
<xsl:template match= "smbconfsection" >
<xsl:text > \smbconfsection{</xsl:text>
2005-06-13 14:23:53 +04:00
<xsl:call-template name= "scape" >
<xsl:with-param name= "string" select= "@name" />
</xsl:call-template>
2005-06-13 04:48:46 +04:00
<xsl:text > }</xsl:text>
</xsl:template>
<xsl:template match= "imagefile" >
<xsl:text > \includegraphics[scale=.</xsl:text>
<xsl:choose >
<xsl:when test= "@scale != ''" > <xsl:value-of select= "@scale" /> </xsl:when>
<xsl:otherwise > <xsl:text > 50</xsl:text> </xsl:otherwise>
</xsl:choose>
<xsl:text > ]{</xsl:text>
<xsl:value-of select= "$latex.imagebasedir" /> <xsl:text > images/</xsl:text>
<xsl:value-of select= "text()" />
<xsl:text > } </xsl:text>
</xsl:template>
2004-04-07 14:40:50 +04:00
</xsl:stylesheet>