lib/param: bring lp_smb_ports() into common by making it a list everywhere
[Samba/gbeck.git] / docs-xml / xslt / manpage-summary.xsl
blob59bf6dc965871051a6f572d86e9ee8f0e953b553
1 <?xml version='1.0'?>
2 <!--
3 Generate a summary page with a list of links to all manual pages
5 Copyright (C) 2004 Jelmer Vernooij <jelmer@samba.org>
6 Published under the GNU GPLv3 or later
7 -->
8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:exsl="http://exslt.org/common"
10 version="1.1">
12 <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes"/>
14 <xsl:template match="refentry">
15 <xsl:element name="varlistentry">
16 <xsl:apply-templates/>
17 </xsl:element>
18 </xsl:template>
20 <xsl:template match="refentry/refmeta">
21 <xsl:element name="term">
22 <xsl:element name="ulink">
23 <xsl:attribute name="url">
24 <xsl:value-of select="refentrytitle"/><xsl:text>.</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>.html</xsl:text>
25 </xsl:attribute>
26 <xsl:value-of select="refentrytitle"/><xsl:text>(</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>)</xsl:text>
27 </xsl:element>
28 </xsl:element>
29 </xsl:template>
31 <xsl:template match="refentry/refnamediv">
32 <xsl:element name="listitem">
33 <xsl:element name="para">
34 <xsl:value-of select="refpurpose"/><xsl:text>&#10;</xsl:text>
35 </xsl:element>
36 </xsl:element>
37 </xsl:template>
39 <xsl:template match="@*|node()">
40 <xsl:apply-templates/>
41 </xsl:template>
42 </xsl:stylesheet>