ld --as-needed compilation fixes with external libs.
[fvwm.git] / doc / fvwm.xsl
blobb8cecdfd48c3d1640ac41a23422bc16917d6fb56
1 <?xml version='1.0'?>
2 <!--
3 $Id: fvwm.xsl,v 1.4 2007/09/01 19:09:53 griph Exp $
5 Author: Scott Smedley
6 -->
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'"/>
18 <!-- fvwmref -->
19 <xsl:template match="fvwmref">
20 <a>
21 <xsl:attribute name="href">
22 <xsl:choose>
23 <xsl:when test="($twdt = 1) and not (@mod)">
24 <xsl:text>#</xsl:text>
25 <xsl:choose>
26 <xsl:when test="@opt">
27 <xsl:choose>
28 <xsl:when test="@cmd">
29 <xsl:value-of select="@cmd"/>
30 <xsl:text>_</xsl:text>
31 <xsl:value-of select="@opt"/>
32 </xsl:when>
33 <!-- mod=".." opt=".." isn't used. -->
34 <xsl:otherwise>
35 <xsl:value-of select="@opt"/>
36 </xsl:otherwise>
37 </xsl:choose>
38 </xsl:when>
39 <xsl:when test="@cmd">
40 <xsl:value-of select="@cmd"/>
41 </xsl:when>
42 <xsl:when test="@mod">
43 <xsl:value-of select="@mod"/>
44 </xsl:when>
45 </xsl:choose>
46 </xsl:when>
47 <xsl:otherwise>
48 <xsl:choose>
49 <xsl:when test="@cmd">
50 <xsl:text>../commands/</xsl:text>
51 <xsl:value-of select="@cmd"/>
52 </xsl:when>
53 <xsl:when test="@mod">
54 <xsl:text>../modules/</xsl:text>
55 <xsl:value-of select="@mod"/>
56 </xsl:when>
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"/>
61 -->
62 </xsl:when>
63 <!-- anything else should be an error -->
64 </xsl:choose>
65 <xsl:text>.html</xsl:text>
66 <xsl:if test="@opt">
67 <xsl:text>#</xsl:text>
68 <xsl:choose>
69 <xsl:when test="@cmd">
70 <xsl:value-of select="@cmd"/>
71 <xsl:text>_</xsl:text>
72 </xsl:when>
73 <xsl:when test="@mod">
74 <xsl:value-of select="@mod"/>
75 <xsl:text>_</xsl:text>
76 </xsl:when>
77 </xsl:choose>
78 <xsl:value-of select="@opt"/>
79 </xsl:if>
80 </xsl:otherwise>
81 </xsl:choose>
82 </xsl:attribute>
83 <xsl:choose>
84 <xsl:when test="@sect">
85 <xsl:value-of select="@name"/>
86 </xsl:when>
87 <xsl:when test="@opt">
88 <xsl:value-of select="@opt"/>
89 </xsl:when>
90 <xsl:otherwise>
91 <xsl:if test="@cmd">
92 <xsl:value-of select="@cmd"/>
93 </xsl:if>
94 <xsl:if test="@mod">
95 <xsl:value-of select="@mod"/>
96 </xsl:if>
97 </xsl:otherwise>
98 </xsl:choose>
99 </a>
100 </xsl:template>
102 <!-- fvwmopt -->
103 <xsl:template match="fvwmopt">
105 <xsl:attribute name="name">
106 <xsl:choose>
107 <xsl:when test="@cmd">
108 <xsl:value-of select="@cmd"/>
109 </xsl:when>
110 <xsl:when test="@mod">
111 <xsl:value-of select="@mod"/>
112 </xsl:when>
113 </xsl:choose>
114 <xsl:text>_</xsl:text>
115 <xsl:value-of select="@opt"/>
116 </xsl:attribute>
117 </a>
118 <font class="fvwmopt"><xsl:value-of select="@opt"/></font>
119 </xsl:template>
121 <xsl:template name="user.header.content">
122 <xsl:variable name="codefile" select="document($header.file,/)"/>
123 <xsl:copy-of select="$codefile/*/node()"/>
124 </xsl:template>
126 <xsl:template name="user.footer.content">
127 <xsl:variable name="codefile" select="document($footer.file,/)"/>
128 <xsl:copy-of select="$codefile/*/node()"/>
129 </xsl:template>
132 </xsl:stylesheet>