summaryrefslogtreecommitdiff
path: root/docs/xslt/latex.xsl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-13 10:23:53 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:46 -0500
commit7639ec02141091657eb2eb0defc46b4b3cf09a73 (patch)
tree4d8cce2deff45d527668e49db78a71a8c0f92070 /docs/xslt/latex.xsl
parent8a5498d3bfa78923cbb4e6c79e152431223a4f86 (diff)
downloadsamba-7639ec02141091657eb2eb0defc46b4b3cf09a73.tar.gz
samba-7639ec02141091657eb2eb0defc46b4b3cf09a73.tar.bz2
samba-7639ec02141091657eb2eb0defc46b4b3cf09a73.zip
- Fix a couple of LaTeX escaping bugs.
- Fix urls in footnotes. - Cleanup developers docs. (This used to be commit d55b9f72ffbd0421cbde67915d9f275cc8956ed7)
Diffstat (limited to 'docs/xslt/latex.xsl')
-rw-r--r--docs/xslt/latex.xsl15
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl
index cc817427de..0e2574de20 100644
--- a/docs/xslt/latex.xsl
+++ b/docs/xslt/latex.xsl
@@ -1,6 +1,5 @@
<?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="../settings.xsl"/>
<xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
<xsl:import href="strip-references.xsl"/>
@@ -62,6 +61,8 @@
<xsl:param name="latex.documentclass">sambadoc</xsl:param>
<xsl:param name="latex.documentclass.book">openright,twoside</xsl:param>
<xsl:param name="latex.babel.language">english</xsl:param>
+<xsl:variable name="ulink.footnotes" select="1"/>
+<xsl:variable name="ulink.show" select="0"/>
<xsl:template match="smbconfblock/smbconfoption">
<xsl:value-of select="@name"/>
@@ -85,13 +86,17 @@
<xsl:template match="smbconfoption">
<xsl:text>\smbconfoption{</xsl:text>
- <xsl:value-of select="@name"/>
+ <xsl:call-template name="scape">
+ <xsl:with-param name="string" select="@name"/>
+ </xsl:call-template>
<xsl:text>}</xsl:text>
<xsl:choose>
<xsl:when test="text() != ''">
<xsl:text> = </xsl:text>
- <xsl:value-of select="text()"/>
+ <xsl:call-template name="scape">
+ <xsl:with-param name="string" select="text()"/>
+ </xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:template>
@@ -104,7 +109,9 @@
<xsl:template match="smbconfsection">
<xsl:text>\smbconfsection{</xsl:text>
- <xsl:value-of select="translate(@name, '$','x')"/>
+ <xsl:call-template name="scape">
+ <xsl:with-param name="string" select="@name"/>
+ </xsl:call-template>
<xsl:text>}</xsl:text>
</xsl:template>