ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MinGW/msys/1.0/share/texinfo/texinfo.xsl
Revision: 1046
Committed: Mon Aug 29 13:19:38 2016 UTC (9 years, 2 months ago) by alloc
Content type: application/xslt+xml
File size: 4702 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file

File Contents

# Content
1 <?xml version='1.0'?>
2 <!-- $Id: texinfo.xsl,v 1.1 2004/04/11 17:56:47 karl Exp $ -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.0">
5
6 <xsl:output method="html" indent="yes"/>
7
8 <!-- root rule -->
9 <xsl:template match="/">
10 <html>
11 <head><title>
12 <xsl:apply-templates select="TEXINFO/SETTITLE" mode="head"/>
13 </title></head>
14 <body bgcolor="#FFFFFF"><xsl:apply-templates/>
15 </body></html>
16 </xsl:template>
17
18
19 <xsl:template match="TEXINFO">
20 <xsl:apply-templates/>
21 </xsl:template>
22
23
24 <xsl:template match="TEXINFO/SETFILENAME">
25 </xsl:template>
26
27 <xsl:template match="TEXINFO/SETTITLE" mode="head">
28 <xsl:apply-templates/>
29 </xsl:template>
30
31 <xsl:template match="TEXINFO/SETTITLE">
32 <h1><xsl:apply-templates/></h1>
33 </xsl:template>
34
35
36 <xsl:template match="TEXINFO/DIRCATEGORY">
37 </xsl:template>
38
39 <xsl:template match="//PARA">
40 <p><xsl:apply-templates/></p>
41 </xsl:template>
42
43 <xsl:template match="//EMPH">
44 <i><xsl:apply-templates/></i>
45 </xsl:template>
46
47 <!-- The node -->
48 <xsl:template match="TEXINFO/NODE">
49 <hr/>
50 <p>
51 <xsl:apply-templates select="NODENAME" mode="select"/>
52 <xsl:apply-templates select="NODEPREV" mode="select"/>
53 <xsl:apply-templates select="NODEUP" mode="select"/>
54 <xsl:apply-templates select="NODENEXT" mode="select"/>
55 <xsl:apply-templates/>
56 <h2>Footnotes</h2>
57 <ol>
58 <xsl:apply-templates select=".//FOOTNOTE" mode="footnote"/>
59 </ol>
60 </p>
61 </xsl:template>
62
63 <xsl:template match="TEXINFO/NODE/NODENAME" mode="select">
64 <h2>
65 <a>
66 <xsl:attribute name="name">
67 <xsl:apply-templates/>
68 </xsl:attribute>
69 <xsl:apply-templates/>
70 </a>
71 </h2>
72 </xsl:template>
73
74 <xsl:template match="TEXINFO/NODE/NODENAME"/>
75
76
77 <xsl:template match="TEXINFO/NODE/NODEPREV" mode="select">
78 [ <b>Previous: </b>
79 <a>
80 <xsl:attribute name="href">
81 <xsl:text>#</xsl:text>
82 <xsl:apply-templates/>
83 </xsl:attribute>
84 <xsl:apply-templates/>
85 </a> ]
86 </xsl:template>
87
88 <xsl:template match="TEXINFO/NODE/NODEPREV"/>
89
90 <xsl:template match="TEXINFO/NODE/NODEUP" mode="select">
91 [ <b>Up: </b>
92 <a>
93 <xsl:attribute name="href">
94 <xsl:text>#</xsl:text>
95 <xsl:apply-templates/>
96 </xsl:attribute>
97 <xsl:apply-templates/>
98 </a> ]
99 </xsl:template>
100
101 <xsl:template match="TEXINFO/NODE/NODEUP"/>
102
103 <xsl:template match="TEXINFO/NODE/NODENEXT" mode="select">
104 [ <b>Next: </b>
105 <a>
106 <xsl:attribute name="href">
107 <xsl:text>#</xsl:text>
108 <xsl:apply-templates/>
109 </xsl:attribute>
110 <xsl:apply-templates/>
111 </a> ]
112 </xsl:template>
113
114 <xsl:template match="TEXINFO/NODE/NODENEXT"/>
115
116 <!-- Menu -->
117 <xsl:template match="//MENU">
118 <h3>Menu</h3>
119 <xsl:apply-templates/>
120 </xsl:template>
121
122 <xsl:template match="//MENU/MENUENTRY">
123 <a>
124 <xsl:attribute name="href">
125 <xsl:text>#</xsl:text>
126 <xsl:apply-templates select="MENUNODE"/>
127 </xsl:attribute>
128 <xsl:apply-templates select="MENUTITLE"/>
129 </a>:
130 <xsl:apply-templates select="MENUCOMMENT"/>
131 <br/>
132 </xsl:template>
133
134 <xsl:template match="//MENU/MENUENTRY/MENUNODE">
135 <xsl:apply-templates/>
136 </xsl:template>
137
138 <xsl:template match="//MENU/MENUENTRY/MENUTITLE">
139 <xsl:apply-templates/>
140 </xsl:template>
141
142 <xsl:template match="//MENU/MENUENTRY/MENUCOMMENT">
143 <xsl:apply-templates mode="menucomment"/>
144 </xsl:template>
145
146 <xsl:template match="PARA" mode="menucomment">
147 <xsl:apply-templates/>
148 </xsl:template>
149
150 <xsl:template match="//PARA">
151 <p><xsl:apply-templates/></p>
152 </xsl:template>
153
154 <!-- LISTS -->
155 <xsl:template match="//ITEMIZE">
156 <ul>
157 <xsl:apply-templates/>
158 </ul>
159 </xsl:template>
160
161 <xsl:template match="//ITEMIZE/ITEM">
162 <li>
163 <xsl:apply-templates/>
164 </li>
165 </xsl:template>
166
167 <xsl:template match="//ENUMERATE">
168 <ol>
169 <xsl:apply-templates/>
170 </ol>
171 </xsl:template>
172
173 <xsl:template match="//ENUMERATE/ITEM">
174 <li>
175 <xsl:apply-templates/>
176 </li>
177 </xsl:template>
178
179 <!-- INLINE -->
180 <xsl:template match="//CODE">
181 <tt>
182 <xsl:apply-templates/>
183 </tt>
184 </xsl:template>
185
186 <xsl:template match="//DFN">
187 <i><b>
188 <xsl:apply-templates/>
189 </b></i>
190 </xsl:template>
191
192 <xsl:template match="//STRONG">
193 <b>
194 <xsl:apply-templates/>
195 </b>
196 </xsl:template>
197
198 <xsl:template match="//CENTER">
199 <center>
200 <xsl:apply-templates/>
201 </center>
202 </xsl:template>
203
204 <xsl:template match="//VAR">
205 <i>
206 <xsl:apply-templates/>
207 </i>
208 </xsl:template>
209
210 <xsl:template match="//KBD">
211 <tt>
212 <xsl:apply-templates/>
213 </tt>
214 </xsl:template>
215
216 <xsl:template match="//KEY">
217 <b>
218 <xsl:apply-templates/>
219 </b>
220 </xsl:template>
221
222 <!-- BLOCKS -->
223 <xsl:template match="//DISPLAY">
224 <pre>
225 <xsl:apply-templates/>
226 </pre>
227 </xsl:template>
228
229
230 <!-- INDEX -->
231 <xsl:template match="//INDEXTERM">
232 </xsl:template>
233
234 <!-- FOOTNOTE -->
235 <xsl:template match="//FOOTNOTE">
236 </xsl:template>
237
238 <xsl:template match="//FOOTNOTE" mode="footnote">
239 <li><xsl:apply-templates/></li>
240 </xsl:template>
241
242 </xsl:stylesheet>