2 <!-- vim:set sts=2 shiftwidth=2 syntax=xml: -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 <!-- the @..@ is substituted by config.status to contain the XSL release selected
9 <xsl:import href="http://docbook.sourceforge.net/release/xsl/@XSLREL@/manpages/docbook.xsl"/>
11 <xsl:import href="settings.xsl"/>
13 <xsl:param name="chunk.section.depth" select="0"/>
14 <xsl:param name="chunk.first.sections" select="1"/>
15 <xsl:param name="use.id.as.filename" select="0"/>
18 Our ulink stylesheet omits @url part if content was specified
20 <xsl:template match="ulink">
21 <xsl:variable name="content">
22 <xsl:apply-templates/>
24 <xsl:if test="$content = ''">
25 <xsl:text>: </xsl:text>
27 <xsl:if test="$content != ''">
28 <xsl:value-of select="$content" />
30 <xsl:if test="$content = ''">
31 <xsl:apply-templates mode="italic" select="@url" />
35 <xsl:template match="informalexample|screen|programlisting">
36 <xsl:text>.nf </xsl:text>
37 <xsl:apply-templates/>
38 <xsl:text>.fi </xsl:text>
41 <xsl:template match="para|simpara|remark" mode="list">
42 <xsl:variable name="foo">
43 <xsl:apply-templates/>
45 <xsl:choose match="node()">
46 <!-- Don't normalize-space() for verbatim paragraphs -->
47 <xsl:when test="informalexample|screen|programlisting">
48 <xsl:value-of select="$foo"/>
51 <xsl:value-of select="normalize-space($foo)"/>
52 <xsl:text> </xsl:text>
55 <xsl:text> </xsl:text>
56 <xsl:if test="following-sibling::para or following-sibling::simpara or
57 following-sibling::remark">
58 <!-- Make sure multiple paragraphs within a list item don't -->
59 <!-- merge together. -->
60 <xsl:text> </xsl:text>
64 <xsl:template match="refsect3">
65 <xsl:text> .SS "</xsl:text>
66 <xsl:value-of select="title[1]"/>
67 <xsl:text>" </xsl:text>
68 <xsl:apply-templates/>