Author: jelmer Date: 2005-07-05 00:19:04 +0000 (Tue, 05 Jul 2005) New Revision: 750
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-docs&rev=750 Log: Bunch of smaller fixes. Modified: trunk/manpages-3/smb.conf.5.xml trunk/xslt/latex.xsl trunk/xslt/strip-references.xsl Changeset: Modified: trunk/manpages-3/smb.conf.5.xml =================================================================== --- trunk/manpages-3/smb.conf.5.xml 2005-07-04 22:04:07 UTC (rev 749) +++ trunk/manpages-3/smb.conf.5.xml 2005-07-05 00:19:04 UTC (rev 750) @@ -1,4 +1,5 @@ -<refentry id="smb.conf.5" xmlns:xi="http://www.w3.org/2003/XInclude"> +<refentry id="smb.conf.5" xmlns:xi="http://www.w3.org/2003/XInclude" + xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> <refmeta> <refentrytitle>smb.conf</refentrytitle> @@ -607,7 +608,9 @@ <refsect1> <title>EXPLANATION OF EACH PARAMETER</title> - <xi:include href="../smbdotconf/parameters.all.xml" parse="xml"/> + <samba:parameterlist> + <xi:include href="../smbdotconf/parameters.all.xml" parse="xml"/> + </samba:parameterlist> </refsect1> Modified: trunk/xslt/latex.xsl =================================================================== --- trunk/xslt/latex.xsl 2005-07-04 22:04:07 UTC (rev 749) +++ trunk/xslt/latex.xsl 2005-07-05 00:19:04 UTC (rev 750) @@ -170,12 +170,17 @@ <xsl:apply-templates/> </xsl:template> +<xsl:template match="refentry"> + <xsl:text>\section{</xsl:text><xsl:value-of select="refmeta/refentrytitle"/><xsl:text>} </xsl:text> + <xsl:apply-templates/> +</xsl:template> + <xsl:template match="//samba:parameter"> - <xsl:text>\item[{</xsl:text><xsl:value-of select="@name"/><xsl:text>}] </xsl:text> + <xsl:text>\item[{</xsl:text><xsl:value-of select="@name"/><xsl:text>}]\null{} </xsl:text> <xsl:text>\index{</xsl:text><xsl:value-of select="@name"/><xsl:text>|it} </xsl:text> <xsl:for-each select="synonym"> - <xsl:text>\item[{</xsl:text><xsl:value-of select="."/><xsl:text>}] </xsl:text> + <xsl:text>\item[{</xsl:text><xsl:value-of select="."/><xsl:text>}]\null{} </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> @@ -219,7 +224,4 @@ <xsl:apply-templates select="description"/> </xsl:template> -<xsl:template match="refsect1[title='VERSION']"/> -<xsl:template match="refsect1[title='AUTHOR']"/> - </xsl:stylesheet> Modified: trunk/xslt/strip-references.xsl =================================================================== --- trunk/xslt/strip-references.xsl 2005-07-04 22:04:07 UTC (rev 749) +++ trunk/xslt/strip-references.xsl 2005-07-05 00:19:04 UTC (rev 750) @@ -2,41 +2,9 @@ <!-- Removes particular (unuseful for the book) elements from references --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"> - <xsl:template match="reference/refentry/refsect1"> - <xsl:if test="title!='VERSION' and title!='AUTHOR'"> - <xsl:element name="refsect1"> - <xsl:if test="@id!=''"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates/> - </xsl:element> - </xsl:if> - </xsl:template> + <xsl:template match="reference/refentry/refsect1[title='VERSION' or title='AUTHOR']"/> - <xsl:template match="reference/refentry"> - <xsl:element name="section"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - <xsl:element name="title"> - <xsl:value-of select="refmeta/refentrytitle"/> - </xsl:element> - <xsl:apply-templates/> - </xsl:element> - </xsl:template> - <xsl:template match="reference/refentry/refmeta"/> <xsl:template match="reference/refentry/refnamediv"/> - - <xsl:template match="reference"> - <xsl:element name="appendix"> - <xsl:attribute name="id"> - <xsl:value-of select="@id"/> - </xsl:attribute> - <xsl:apply-templates/> - </xsl:element> - </xsl:template> </xsl:stylesheet>