2 <!-- vim:set sts=2 shiftwidth=2 syntax=xml: -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
9 <xsl:import href="settings.xsl"/>
11 <xsl:param name="chunk.section.depth" select="0"/>
12 <xsl:param name="chunk.first.sections" select="1"/>
13 <xsl:param name="use.id.as.filename" select="1"/>
16 Our ulink stylesheet omits @url part if content was specified
18 <xsl:template match="ulink">
19 <xsl:variable name="content">
20 <xsl:apply-templates/>
22 <xsl:if test="$content = ''">
23 <xsl:text>: </xsl:text>
25 <xsl:if test="$content != ''">
26 <xsl:value-of select="$content" />
28 <xsl:if test="$content = ''">
29 <xsl:apply-templates mode="italic" select="@url" />
33 <xsl:template match="informalexample|screen|programlisting">
34 <xsl:text>.nf </xsl:text>
35 <xsl:apply-templates/>
36 <xsl:text>.fi </xsl:text>
39 <xsl:template match="para|simpara|remark" mode="list">
40 <xsl:variable name="foo">
41 <xsl:apply-templates/>
43 <xsl:choose match="node()">
44 <!-- Don't normalize-space() for verbatim paragraphs -->
45 <xsl:when test="informalexample|screen|programlisting">
46 <xsl:value-of select="$foo"/>
49 <xsl:value-of select="normalize-space($foo)"/>
50 <xsl:text> </xsl:text>
53 <xsl:text> </xsl:text>
54 <xsl:if test="following-sibling::para or following-sibling::simpara or
55 following-sibling::remark">
56 <!-- Make sure multiple paragraphs within a list item don't -->
57 <!-- merge together. -->
58 <xsl:text> </xsl:text>
62 <xsl:template match="refsect3">
63 <xsl:text> .SS "</xsl:text>
64 <xsl:value-of select="title[1]"/>
65 <xsl:text>" </xsl:text>
66 <xsl:apply-templates/>