diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-06-30 02:17:59 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:46:57 -0500 |
commit | b476f175bbab05529db8459362b3d4544575fb0b (patch) | |
tree | c2ce8d9a1c21d0f84b886470915467ccf49c59c9 /docs/xslt/latex.xsl | |
parent | ab59cd7eda87b29c782fa2a591fa607561a066c7 (diff) | |
download | samba-b476f175bbab05529db8459362b3d4544575fb0b.tar.gz samba-b476f175bbab05529db8459362b3d4544575fb0b.tar.bz2 samba-b476f175bbab05529db8459362b3d4544575fb0b.zip |
Add basic manpage support back in.
(This used to be commit 87f8af6033445746c1aceb419aebc0ae98933dd5)
Diffstat (limited to 'docs/xslt/latex.xsl')
-rw-r--r-- | docs/xslt/latex.xsl | 73 |
1 files changed, 72 insertions, 1 deletions
diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl index 17ae95e18e..b3434d876a 100644 --- a/docs/xslt/latex.xsl +++ b/docs/xslt/latex.xsl @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' + xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> <xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/> <xsl:import href="strip-references.xsl"/> @@ -142,4 +143,74 @@ <xsl:text>} </xsl:text> </xsl:template> +<!-- smb.conf documentation --> + +<xsl:template match="description"><xsl:apply-templates/></xsl:template> + +<xsl:template match="value"><xsl:apply-templates/></xsl:template> + +<xsl:template match="synonym"><xsl:apply-templates/></xsl:template> + +<xsl:template match="related"><xsl:apply-templates/></xsl:template> + +<xsl:template match="//samba:parameterlist"> + <xsl:apply-templates> + <xsl:sort select="varlistentry/term/anchor"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="value/comment"> + <xsl:text> # </xsl:text> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="//samba:parameter"> + <xsl:text>\subsubsection{</xsl:text><xsl:value-of select="@name"/><xsl:text>} </xsl:text> + <xsl:text>\index{</xsl:text><xsl:value-of select="@name"/><xsl:text>|it} </xsl:text> + + <xsl:for-each select="synonym"> + <xsl:text>\subsubsection{</xsl:text><xsl:value-of select="."/><xsl:text>} </xsl:text> + <xsl:text>\index{</xsl:text><xsl:value-of select="."/><xsl:text>|it} </xsl:text> + <xsl:text>This parameter is a synonym for \smbconfoption{</xsl:text><xsl:value-of select="../@name"/><xsl:text>}.</xsl:text> + </xsl:for-each> + + <xsl:variable name="context"> + <xsl:text> (</xsl:text> + <xsl:value-of select="@context"/> + <xsl:text>)</xsl:text> + </xsl:variable> + + <!-- Print default value--> + <xsl:text> </xsl:text> + <xsl:text>Default: </xsl:text> + <xsl:text>\emph{</xsl:text> + <xsl:choose> + <xsl:when test="value[@type='default'] != ''"> + <xsl:value-of select="@name"/> + <xsl:text> = </xsl:text> + <xsl:apply-templates select="value"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>No default</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:text> </xsl:text> + + <!-- Generate list of examples --> + <xsl:text> </xsl:text> + <xsl:for-each select="value[@type='example']"> + <xsl:text> </xsl:text> + <xsl:text>Example: </xsl:text> + <xsl:text>\emph{</xsl:text><xsl:value-of select="../@name"/> + <xsl:text> = </xsl:text> + <xsl:apply-templates select="."/> + <xsl:text>}</xsl:text> + <xsl:text> </xsl:text> + </xsl:for-each> + + <!-- Description --> + <xsl:apply-templates select="description"/> +</xsl:template> + </xsl:stylesheet> |