1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- written for mutt-ng by: -->
4 <!-- Felix Meinhold <felix.meinhold@gmx.net> -->
6 <!-- some more things were added/ajusted by: -->
7 <!-- Rocco Rutte <pdmef@cs.tu-berlin.de> -->
9 <!-- see "Hacking Documentation" chapter of the Fine Manual for -->
10 <!-- usage details -->
12 <xsl:stylesheet version="1.0"
13 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14 xmlns:muttng-doc="http://mutt-ng.berlios.de/doc/#NS"
19 doctype-public="-//OASIS//DTD DocBook XML V4.2//EN"
20 doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
22 output-encoding="utf-8"
25 <xsl:strip-space elements="*"/>
28 <!-- as default, copy each node -->
29 <xsl:template match="/ | node() | @* | comment() | processing-instruction()">
31 <xsl:apply-templates select="@* | node()"/>
35 <xsl:template match="muttng-doc:man">
38 <xsl:when test="@sect">
39 <xsl:value-of select="concat(@name,'(',@sect,')')"/>
42 <xsl:value-of select="concat(@name,'(1)')"/>
48 <xsl:template match="muttng-doc:envvar">
49 <literal><xsl:value-of select="concat('$', @name)"/></literal>
51 <primary>Environment Variables</primary>
52 <secondary><xsl:value-of select="concat('$', @name)"/></secondary>
56 <xsl:template match="muttng-doc:hook">
57 <literal><xsl:value-of select="concat(@name, '-hook')"/></literal>
59 <primary>Hooks</primary>
60 <secondary><xsl:value-of select="concat(@name, '-hook')"/></secondary>
64 <xsl:template match="muttng-doc:command">
65 <literal><xsl:value-of select="@name"/></literal>
67 <primary>Configuration Commands</primary>
68 <secondary><xsl:value-of select="@name"/></secondary>
72 <xsl:template match="muttng-doc:pattern">
73 <literal>~<xsl:value-of select="@name"/>/=<xsl:value-of select="@name"/></literal>
75 <primary>Patterns</primary>
76 <secondary>~<xsl:value-of select="@name"/>/=<xsl:value-of select="@name"/></secondary>
80 <xsl:template match="muttng-doc:funcdef">
81 <literal><<xsl:value-of select="@name"/>></literal> (default: <xsl:value-of select="@key"/>)
82 <anchor id="func-{@name}"/>
84 <primary>Functions</primary>
85 <secondary><xsl:value-of select="@name"/></secondary>
89 <xsl:template match="muttng-doc:funcref">
90 <!-- currently b0rken as not all defined via :funcdef yet ;-((
91 <link linkend="func-{@name}">
93 <xsl:value-of select="concat('<',@name,'>')"/>
98 <primary>Functions</primary>
99 <secondary><xsl:value-of select="@name"/></secondary>
103 <xsl:template match="muttng-doc:vardef">
105 <title><xsl:value-of select="concat('$',@name)"/></title>
107 <primary>Configuration Variables</primary>
108 <secondary>$<xsl:value-of select="@name"/></secondary>
110 <xsl:apply-templates/>
114 <xsl:template match="muttng-doc:varref">
116 <xsl:when test="@link">
117 <link linkend="{@link}"><literal><xsl:value-of select="concat('$',@name)"/></literal></link>
120 <link linkend="{@name}"><literal><xsl:value-of select="concat('$',@name)"/></literal></link>
124 <primary>Configuration Variables</primary>
125 <secondary>$<xsl:value-of select="@name"/></secondary>
129 <xsl:template match="/">
130 <xsl:apply-templates select="*"/>