mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
891bff8747
This seems to have been basically taken from the manpages/lists.xls from the docbook-xsl stylesheets. But it references a variable list-indent that older versions of docbook-xsl (e.g. 1.69) do not provide. This makes the manpage build break on older systems. Removing the definition lets the build succeed, using the system-definition of the itemizedlist/listitem. The diff between the docbook's (version 1.75.1) definition of itemizedlist/listitem and the definition in our man.xls is this: -- with this patch -- without this patch @@ -53,5 +53,7 @@ <!-- * seems to require the extra space. --> <xsl:call-template name="roff-if-end"/> <xsl:apply-templates/> - <xsl:text>.RE </xsl:text> + <xsl:if test=" following-sibling::listitem"> + <xsl:text> .RE </xsl:text> + </xsl:if> </xsl:template> I.e. the version of man.xsl made insertion if ".RE" conditional. I hope this does not break anything severely. The diff for e.g. the resulting winbindd.8 manpage is this: --- with this patch +++ witout this patch: @@ -375,7 +375,6 @@ \m[blue]\fBwinbind: rpc only\fR\m[] Setting this parameter forces winbindd to use RPC instead of LDAP to retrieve information from Domain Controllers\&. -.RE .SH "EXAMPLE SETUP" .PP To setup winbindd for user and group lookups plus authentication from a domain controller use something like the following setup\&. This was tested on an early Red Hat Linux box\&. Cheers
89 lines
2.9 KiB
XML
89 lines
2.9 KiB
XML
<?xml version='1.0'?>
|
|
<!-- vim:set sts=2 shiftwidth=2 syntax=xml: -->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:xlink='http://www.w3.org/1999/xlink'
|
|
version='1.0'>
|
|
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
|
|
|
|
<xsl:param name="chunk.section.depth" select="0"/>
|
|
<xsl:param name="chunk.first.sections" select="1"/>
|
|
<xsl:param name="use.id.as.filename" select="1"/>
|
|
<xsl:param name="man.endnotes.are.numbered" select="0"/>
|
|
|
|
<!--
|
|
Our ulink stylesheet omits @url part if content was specified
|
|
-->
|
|
<xsl:template match="ulink">
|
|
<xsl:variable name="content">
|
|
<xsl:apply-templates/>
|
|
</xsl:variable>
|
|
<xsl:if test="$content = ''">
|
|
<xsl:text>: </xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="$content != ''">
|
|
<xsl:value-of select="$content" />
|
|
</xsl:if>
|
|
<xsl:if test="$content = ''">
|
|
<xsl:apply-templates mode="italic" select="@url" />
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="itemizedlist|orderedlist|procedure">
|
|
<xsl:if test="title">
|
|
<xsl:text>.PP </xsl:text>
|
|
<xsl:call-template name="bold">
|
|
<xsl:with-param name="node" select="title"/>
|
|
<xsl:with-param name="context" select="."/>
|
|
</xsl:call-template>
|
|
<xsl:text> </xsl:text>
|
|
</xsl:if>
|
|
<!-- * DocBook allows just about any block content to appear in -->
|
|
<!-- * lists before the actual list items, so we need to get that -->
|
|
<!-- * content (if any) before getting the list items -->
|
|
<xsl:apply-templates
|
|
select="*[not(self::listitem) and not(self::title)]"/>
|
|
<xsl:apply-templates select="listitem"/>
|
|
<xsl:if test="(parent::para or parent::listitem) or following-sibling::node()">
|
|
<xsl:text>.sp </xsl:text>
|
|
<xsl:text>.RE </xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="refsect3">
|
|
<xsl:text> .SS "</xsl:text>
|
|
<xsl:value-of select="title[1]"/>
|
|
<xsl:text>" </xsl:text>
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- These macros are from Docbook manpages XSLT development tree -->
|
|
<!-- help to maintain manpage generation clean when difference between -->
|
|
<!-- roff processors is important to note. -->
|
|
|
|
<xsl:template name="roff-if-else-start">
|
|
<xsl:param name="condition">n</xsl:param>
|
|
<xsl:text>.ie </xsl:text>
|
|
<xsl:value-of select="$condition"/>
|
|
<xsl:text> \{\ </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="roff-if-start">
|
|
<xsl:param name="condition">n</xsl:param>
|
|
<xsl:text>.if </xsl:text>
|
|
<xsl:value-of select="$condition"/>
|
|
<xsl:text> \{\ </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="roff-else">
|
|
<xsl:text>.\} </xsl:text>
|
|
<xsl:text>.el \{\ </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="roff-if-end">
|
|
<xsl:text>.\} </xsl:text>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|