2
<!-- $Id: texinfo.xsl,v 1.1 2001/06/07 18:35:23 karl Exp $ -->
3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
<xsl:output method="html" indent="yes"/>
9
<xsl:template match="/">
12
<xsl:apply-templates select="TEXINFO/SETTITLE" mode="head"/>
14
<BODY BGCOLOR="#FFFFFF"><xsl:apply-templates/>
19
<xsl:template match="TEXINFO">
20
<xsl:apply-templates/>
24
<xsl:template match="TEXINFO/SETFILENAME">
27
<xsl:template match="TEXINFO/SETTITLE" mode="head">
28
<xsl:apply-templates/>
31
<xsl:template match="TEXINFO/SETTITLE">
32
<h1><xsl:apply-templates/></h1>
36
<xsl:template match="TEXINFO/DIRCATEGORY">
39
<xsl:template match="//PARA">
40
<p><xsl:apply-templates/></p>
43
<xsl:template match="//EMPH">
44
<i><xsl:apply-templates/></i>
48
<xsl:template match="TEXINFO/NODE">
50
<xsl:apply-templates select="NODENAME" mode="select"/>
51
<xsl:apply-templates select="NODEPREV" mode="select"/>
52
<xsl:apply-templates select="NODEUP" mode="select"/>
53
<xsl:apply-templates select="NODENEXT" mode="select"/>
54
<xsl:apply-templates/>
57
<xsl:apply-templates select=".//FOOTNOTE" mode="footnote"/>
62
<xsl:template match="TEXINFO/NODE/NODENAME" mode="select">
65
<xsl:attribute name="name">
66
<xsl:apply-templates/>
68
<xsl:apply-templates/>
73
<xsl:template match="TEXINFO/NODE/NODENAME"/>
76
<xsl:template match="TEXINFO/NODE/NODEPREV" mode="select">
79
<xsl:attribute name="href">
80
<xsl:text>#</xsl:text>
81
<xsl:apply-templates/>
83
<xsl:apply-templates/>
87
<xsl:template match="TEXINFO/NODE/NODEPREV"/>
89
<xsl:template match="TEXINFO/NODE/NODEUP" mode="select">
92
<xsl:attribute name="href">
93
<xsl:text>#</xsl:text>
94
<xsl:apply-templates/>
96
<xsl:apply-templates/>
100
<xsl:template match="TEXINFO/NODE/NODEUP"/>
102
<xsl:template match="TEXINFO/NODE/NODENEXT" mode="select">
105
<xsl:attribute name="href">
106
<xsl:text>#</xsl:text>
107
<xsl:apply-templates/>
109
<xsl:apply-templates/>
113
<xsl:template match="TEXINFO/NODE/NODENEXT"/>
116
<xsl:template match="//MENU">
118
<xsl:apply-templates/>
121
<xsl:template match="//MENU/MENUENTRY">
123
<xsl:attribute name="href">
124
<xsl:text>#</xsl:text>
125
<xsl:apply-templates select="MENUNODE"/>
127
<xsl:apply-templates select="MENUTITLE"/>
129
<xsl:apply-templates select="MENUCOMMENT"/>
133
<xsl:template match="//MENU/MENUENTRY/MENUNODE">
134
<xsl:apply-templates/>
137
<xsl:template match="//MENU/MENUENTRY/MENUTITLE">
138
<xsl:apply-templates/>
141
<xsl:template match="//MENU/MENUENTRY/MENUCOMMENT">
142
<xsl:apply-templates mode="menucomment"/>
145
<xsl:template match="PARA" mode="menucomment">
146
<xsl:apply-templates/>
149
<xsl:template match="//PARA">
150
<p><xsl:apply-templates/></p>
154
<xsl:template match="//ITEMIZE">
156
<xsl:apply-templates/>
160
<xsl:template match="//ITEMIZE/ITEM">
162
<xsl:apply-templates/>
166
<xsl:template match="//ENUMERATE">
168
<xsl:apply-templates/>
172
<xsl:template match="//ENUMERATE/ITEM">
174
<xsl:apply-templates/>
179
<xsl:template match="//CODE">
181
<xsl:apply-templates/>
185
<xsl:template match="//DFN">
187
<xsl:apply-templates/>
191
<xsl:template match="//STRONG">
193
<xsl:apply-templates/>
197
<xsl:template match="//CENTER">
199
<xsl:apply-templates/>
203
<xsl:template match="//VAR">
205
<xsl:apply-templates/>
209
<xsl:template match="//KBD">
211
<xsl:apply-templates/>
215
<xsl:template match="//KEY">
217
<xsl:apply-templates/>
222
<xsl:template match="//DISPLAY">
224
<xsl:apply-templates/>
230
<xsl:template match="//INDEXTERM">
234
<xsl:template match="//FOOTNOTE">
237
<xsl:template match="//FOOTNOTE" mode="footnote">
238
<li><xsl:apply-templates/></li>