2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
exsl=
"http://exslt.org/common"
6 <xsl:output method=
"xml" encoding=
"UTF-8" omit-xml-declaration=
"yes"/>
8 <xsl:template match=
"refentry">
9 <xsl:element name=
"varlistentry">
10 <xsl:apply-templates/>
14 <xsl:template match=
"refentry/refmeta">
15 <xsl:element name=
"term">
16 <xsl:element name=
"ulink">
17 <xsl:attribute name=
"url">
18 <xsl:value-of select=
"refentrytitle"/><xsl:text>.
</xsl:text><xsl:value-of select=
"manvolnum"/><xsl:text>.html
</xsl:text>
20 <xsl:value-of select=
"refentrytitle"/><xsl:text>(
</xsl:text><xsl:value-of select=
"manvolnum"/><xsl:text>)
</xsl:text>
25 <xsl:template match=
"refentry/refnamediv">
26 <xsl:element name=
"listitem">
27 <xsl:element name=
"para">
28 <xsl:value-of select=
"refpurpose"/><xsl:text> </xsl:text>
33 <xsl:template match=
"@*|node()">
34 <xsl:apply-templates/>