3 $Id: fvwm.xsl,v 1.4 2007/09/01 19:09:53 griph Exp $
7 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version='
1.0'
>
9 <xsl:import href=
"docbook-xsl/html/docbook.xsl"/>
10 <!-- output in utf8-format -->
11 <xsl:output method=
"html" encoding=
"UTF-8" indent=
"no"/>
13 <!-- twdt = The Whole Damn Thing ... ie. everything on a single page -->
14 <xsl:param name=
"twdt" select=
"''"/>
15 <xsl:param name=
"header.file" select=
"'../header.html'"/>
16 <xsl:param name=
"footer.file" select=
"'../footer.html'"/>
19 <xsl:template match=
"fvwmref">
21 <xsl:attribute name=
"href">
23 <xsl:when test=
"($twdt = 1) and not (@mod)">
24 <xsl:text>#
</xsl:text>
26 <xsl:when test=
"@opt">
28 <xsl:when test=
"@cmd">
29 <xsl:value-of select=
"@cmd"/>
30 <xsl:text>_
</xsl:text>
31 <xsl:value-of select=
"@opt"/>
33 <!-- mod=".." opt=".." isn't used. -->
35 <xsl:value-of select=
"@opt"/>
39 <xsl:when test=
"@cmd">
40 <xsl:value-of select=
"@cmd"/>
42 <xsl:when test=
"@mod">
43 <xsl:value-of select=
"@mod"/>
49 <xsl:when test=
"@cmd">
50 <xsl:text>../commands/
</xsl:text>
51 <xsl:value-of select=
"@cmd"/>
53 <xsl:when test=
"@mod">
54 <xsl:text>../modules/
</xsl:text>
55 <xsl:value-of select=
"@mod"/>
57 <xsl:when test=
"@sect">
58 <xsl:text>../fvwm/fvwm.man
</xsl:text>
59 <!-- not splitting into separate sections for now.
60 <xsl:value-of select="@sect"/>
63 <!-- anything else should be an error -->
65 <xsl:text>.html
</xsl:text>
67 <xsl:text>#
</xsl:text>
69 <xsl:when test=
"@cmd">
70 <xsl:value-of select=
"@cmd"/>
71 <xsl:text>_
</xsl:text>
73 <xsl:when test=
"@mod">
74 <xsl:value-of select=
"@mod"/>
75 <xsl:text>_
</xsl:text>
78 <xsl:value-of select=
"@opt"/>
84 <xsl:when test=
"@sect">
85 <xsl:value-of select=
"@name"/>
87 <xsl:when test=
"@opt">
88 <xsl:value-of select=
"@opt"/>
92 <xsl:value-of select=
"@cmd"/>
95 <xsl:value-of select=
"@mod"/>
103 <xsl:template match=
"fvwmopt">
105 <xsl:attribute name=
"name">
107 <xsl:when test=
"@cmd">
108 <xsl:value-of select=
"@cmd"/>
110 <xsl:when test=
"@mod">
111 <xsl:value-of select=
"@mod"/>
114 <xsl:text>_
</xsl:text>
115 <xsl:value-of select=
"@opt"/>
118 <font class=
"fvwmopt"><xsl:value-of select=
"@opt"/></font>
121 <xsl:template name=
"user.header.content">
122 <xsl:variable name=
"codefile" select=
"document($header.file,/)"/>
123 <xsl:copy-of select=
"$codefile/*/node()"/>
126 <xsl:template name=
"user.footer.content">
127 <xsl:variable name=
"codefile" select=
"document($footer.file,/)"/>
128 <xsl:copy-of select=
"$codefile/*/node()"/>