1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/docs-xml/xslt
Michael Adam 891bff8747 docs: Remove template "itemizedlist/listitem" from man.xsl
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&#10;</xsl:text>
+  <xsl:if test=" following-sibling::listitem">
+        <xsl:text>&#10;.RE&#10;</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
2011-01-18 14:08:38 +01:00
..
html Moving docs tree to docs-xml to make room for generated docs in the release tarball. 2008-04-23 08:47:48 -05:00
latex Move expansion of Samba-specific XML elements out of xslt/latex.xsl into a 2009-05-01 22:49:12 +02:00
docbook2pearson.xsl Moving docs tree to docs-xml to make room for generated docs in the release tarball. 2008-04-23 08:47:48 -05:00
expand-sambadoc.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
expand-smbconfdoc.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
extract-examples.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
generate-attributions.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
html-chunk.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
html-common.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
html.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
latex.overrides.xml Fix dblatex warning: Remove reference to removed DTD file. 2009-05-01 22:49:07 +02:00
latex.xsl Move expansion of Samba-specific XML elements out of xslt/latex.xsl into a 2009-05-01 22:49:12 +02:00
man.xsl docs: Remove template "itemizedlist/listitem" from man.xsl 2011-01-18 14:08:38 +01:00
manpage-summary.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
sambadoc2pearson.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
smb.conf-html.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00
strip-references.xsl Use new stylesheet variables names as used by dblatex. 2009-05-01 22:49:08 +02:00
yodl.xsl Explicitly mention licenses in all stylesheets 2009-05-01 22:49:12 +02:00