Debian Codegraph @

texmf-dist/tex4ht/xtpipes/xhtml.4xt

raw
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
3 <xtpipes preamble="yes" signature="xhtml.4xt (2008-09-21-01:51)">
4 <sax content-handler="xtpipes.util.ScriptsManager"
5 lexical-handler="xtpipes.util.ScriptsManagerLH" >
6 <script element="table::tabular" >
7 <set name="tabular" >
8 <![CDATA[
9 <xsl:stylesheet version="1.0"
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 >
12 <xsl:output omit-xml-declaration = "yes" method="xml" />
13
14 <xsl:template match=" table[ @class='tabular' ]
15 / tr[ (normalize-space(.)='') ] " >
16
17 <xsl:message terminate="no">
18 OK 1
19 </xsl:message>
20
21 <xsl:if test=" normalize-space(following-sibling::*) != '' ">
22 <xsl:copy>
23 <xsl:apply-templates select="*|@*|text()|comment()" />
24 <xsl:message terminate="no">
25 OK 2
26 </xsl:message>
27 </xsl:copy>
28 </xsl:if>
29 </xsl:template>
30 <xsl:template match=" tr[ (normalize-space(.)='')
31 and
32 (parent::table[ @class='tabular' ])
33 ] " >
34
35 <xsl:message terminate="no">
36 OK 1
37 </xsl:message>
38
39 <xsl:if test=" normalize-space(following-sibling::*) != '' ">
40 <xsl:copy>
41 <xsl:apply-templates select="*|@*|text()|comment()" />
42 <xsl:message terminate="no">
43 OK 2
44 </xsl:message>
45 </xsl:copy>
46 </xsl:if>
47 </xsl:template>
48
49 <xsl:template match="*|@*|text()|comment()" >
50 <xsl:copy>
51 <xsl:apply-templates select="*|@*|text()|comment()" />
52 </xsl:copy>
53 </xsl:template>
54 </xsl:stylesheet>
55 ]]>
56
57 </set>
58 <xslt name="." xml="." xsl="tabular" />
59 </script>
60
61 <script element="table::longtable" >
62 <set name="longtbl" >
63 <![CDATA[
64 <xsl:stylesheet version="1.0"
65 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
66 >
67 <xsl:output omit-xml-declaration = "yes" method="xml" />
68
69 <xsl:template match=" table[ @class='longtable' ]
70 / tr[ (normalize-space(.)='') ] " >
71 <xsl:if test=" normalize-space(following-sibling::*) != '' ">
72 <xsl:copy>
73 <xsl:apply-templates select="*|@*|text()|comment()" />
74 </xsl:copy>
75 </xsl:if>
76 </xsl:template>
77
78 <xsl:template match="*|@*|text()|comment()" >
79 <xsl:copy>
80 <xsl:apply-templates select="*|@*|text()|comment()" />
81 </xsl:copy>
82 </xsl:template>
83 </xsl:stylesheet>
84 ]]>
85
86 </set>
87 <xslt name="." xml="." xsl="longtbl" />
88 </script>
89
90 <script element="span::email" >
91 <sax name="." xml="." content-handler="tex4ht.XhtmlEmails" />
92
93 </script>
94
95 <script element="meta" >
96 <set name="meta" >
97 <![CDATA[
98 <xsl:stylesheet version="1.0"
99 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
100 >
101 <xsl:output omit-xml-declaration = "yes" method="xml" />
102
103 <xsl:template match="meta" >
104 <xsl:text disable-output-escaping="yes">&lt;meta</xsl:text>
105 <xsl:apply-templates select="@*" mode="attrs" />
106 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
107 </xsl:template>
108 <xsl:template match="@*" mode="attrs" >
109 <xsl:text> </xsl:text>
110 <xsl:value-of select="name()" />
111 <xsl:text>="</xsl:text>
112 <xsl:value-of select="." />
113 <xsl:text>"</xsl:text>
114 </xsl:template>
115
116 <xsl:template match="*|@*|text()|comment()" >
117 <xsl:copy>
118 <xsl:apply-templates select="*|@*|text()|comment()" />
119 </xsl:copy>
120 </xsl:template>
121 </xsl:stylesheet>
122 ]]>
123
124 </set>
125 <xslt name="." xml="." xsl="meta" />
126 </script>
127 <script element="area" >
128 <set name="area" >
129 <![CDATA[
130 <xsl:stylesheet version="1.0"
131 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
132 >
133 <xsl:output omit-xml-declaration = "yes" method="xml" />
134
135 <xsl:template match="area" >
136 <xsl:text disable-output-escaping="yes">&lt;area</xsl:text>
137 <xsl:apply-templates select="@*" mode="attrs" />
138 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
139 </xsl:template>
140 <xsl:template match="@*" mode="attrs" >
141 <xsl:text> </xsl:text>
142 <xsl:value-of select="name()" />
143 <xsl:text>="</xsl:text>
144 <xsl:value-of select="." />
145 <xsl:text>"</xsl:text>
146 </xsl:template>
147
148 <xsl:template match="*|@*|text()|comment()" >
149 <xsl:copy>
150 <xsl:apply-templates select="*|@*|text()|comment()" />
151 </xsl:copy>
152 </xsl:template>
153 </xsl:stylesheet>
154 ]]>
155
156 </set>
157 <xslt name="." xml="." xsl="area" />
158 </script>
159 <script element="base" >
160 <set name="base" >
161 <![CDATA[
162 <xsl:stylesheet version="1.0"
163 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
164 >
165 <xsl:output omit-xml-declaration = "yes" method="xml" />
166
167 <xsl:template match="base" >
168 <xsl:text disable-output-escaping="yes">&lt;base</xsl:text>
169 <xsl:apply-templates select="@*" mode="attrs" />
170 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
171 </xsl:template>
172 <xsl:template match="@*" mode="attrs" >
173 <xsl:text> </xsl:text>
174 <xsl:value-of select="name()" />
175 <xsl:text>="</xsl:text>
176 <xsl:value-of select="." />
177 <xsl:text>"</xsl:text>
178 </xsl:template>
179
180 <xsl:template match="*|@*|text()|comment()" >
181 <xsl:copy>
182 <xsl:apply-templates select="*|@*|text()|comment()" />
183 </xsl:copy>
184 </xsl:template>
185 </xsl:stylesheet>
186 ]]>
187
188 </set>
189 <xslt name="." xml="." xsl="base" />
190 </script>
191 <script element="basefont" >
192 <set name="basefont" >
193 <![CDATA[
194 <xsl:stylesheet version="1.0"
195 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
196 >
197 <xsl:output omit-xml-declaration = "yes" method="xml" />
198
199 <xsl:template match="basefont" >
200 <xsl:text disable-output-escaping="yes">&lt;basefont</xsl:text>
201 <xsl:apply-templates select="@*" mode="attrs" />
202 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
203 </xsl:template>
204 <xsl:template match="@*" mode="attrs" >
205 <xsl:text> </xsl:text>
206 <xsl:value-of select="name()" />
207 <xsl:text>="</xsl:text>
208 <xsl:value-of select="." />
209 <xsl:text>"</xsl:text>
210 </xsl:template>
211
212 <xsl:template match="*|@*|text()|comment()" >
213 <xsl:copy>
214 <xsl:apply-templates select="*|@*|text()|comment()" />
215 </xsl:copy>
216 </xsl:template>
217 </xsl:stylesheet>
218 ]]>
219
220 </set>
221 <xslt name="." xml="." xsl="basefont" />
222 </script>
223 <script element="br" >
224 <set name="br" >
225 <![CDATA[
226 <xsl:stylesheet version="1.0"
227 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
228 >
229 <xsl:output omit-xml-declaration = "yes" method="xml" />
230
231 <xsl:template match="br" >
232 <xsl:text disable-output-escaping="yes">&lt;br</xsl:text>
233 <xsl:apply-templates select="@*" mode="attrs" />
234 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
235 </xsl:template>
236 <xsl:template match="@*" mode="attrs" >
237 <xsl:text> </xsl:text>
238 <xsl:value-of select="name()" />
239 <xsl:text>="</xsl:text>
240 <xsl:value-of select="." />
241 <xsl:text>"</xsl:text>
242 </xsl:template>
243
244 <xsl:template match="*|@*|text()|comment()" >
245 <xsl:copy>
246 <xsl:apply-templates select="*|@*|text()|comment()" />
247 </xsl:copy>
248 </xsl:template>
249 </xsl:stylesheet>
250 ]]>
251
252 </set>
253 <xslt name="." xml="." xsl="br" />
254 </script>
255 <script element="col" >
256 <set name="col" >
257 <![CDATA[
258 <xsl:stylesheet version="1.0"
259 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
260 >
261 <xsl:output omit-xml-declaration = "yes" method="xml" />
262
263 <xsl:template match="col" >
264 <xsl:text disable-output-escaping="yes">&lt;col</xsl:text>
265 <xsl:apply-templates select="@*" mode="attrs" />
266 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
267 </xsl:template>
268 <xsl:template match="@*" mode="attrs" >
269 <xsl:text> </xsl:text>
270 <xsl:value-of select="name()" />
271 <xsl:text>="</xsl:text>
272 <xsl:value-of select="." />
273 <xsl:text>"</xsl:text>
274 </xsl:template>
275
276 <xsl:template match="*|@*|text()|comment()" >
277 <xsl:copy>
278 <xsl:apply-templates select="*|@*|text()|comment()" />
279 </xsl:copy>
280 </xsl:template>
281 </xsl:stylesheet>
282 ]]>
283
284 </set>
285 <xslt name="." xml="." xsl="col" />
286 </script>
287 <script element="frame" >
288 <set name="frame" >
289 <![CDATA[
290 <xsl:stylesheet version="1.0"
291 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
292 >
293 <xsl:output omit-xml-declaration = "yes" method="xml" />
294
295 <xsl:template match="frame" >
296 <xsl:text disable-output-escaping="yes">&lt;frame</xsl:text>
297 <xsl:apply-templates select="@*" mode="attrs" />
298 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
299 </xsl:template>
300 <xsl:template match="@*" mode="attrs" >
301 <xsl:text> </xsl:text>
302 <xsl:value-of select="name()" />
303 <xsl:text>="</xsl:text>
304 <xsl:value-of select="." />
305 <xsl:text>"</xsl:text>
306 </xsl:template>
307
308 <xsl:template match="*|@*|text()|comment()" >
309 <xsl:copy>
310 <xsl:apply-templates select="*|@*|text()|comment()" />
311 </xsl:copy>
312 </xsl:template>
313 </xsl:stylesheet>
314 ]]>
315
316 </set>
317 <xslt name="." xml="." xsl="frame" />
318 </script>
319 <script element="hr" >
320 <set name="hr" >
321 <![CDATA[
322 <xsl:stylesheet version="1.0"
323 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
324 >
325 <xsl:output omit-xml-declaration = "yes" method="xml" />
326
327 <xsl:template match="hr" >
328 <xsl:text disable-output-escaping="yes">&lt;hr</xsl:text>
329 <xsl:apply-templates select="@*" mode="attrs" />
330 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
331 </xsl:template>
332 <xsl:template match="@*" mode="attrs" >
333 <xsl:text> </xsl:text>
334 <xsl:value-of select="name()" />
335 <xsl:text>="</xsl:text>
336 <xsl:value-of select="." />
337 <xsl:text>"</xsl:text>
338 </xsl:template>
339
340 <xsl:template match="*|@*|text()|comment()" >
341 <xsl:copy>
342 <xsl:apply-templates select="*|@*|text()|comment()" />
343 </xsl:copy>
344 </xsl:template>
345 </xsl:stylesheet>
346 ]]>
347
348 </set>
349 <xslt name="." xml="." xsl="hr" />
350 </script>
351 <script element="img" >
352 <set name="img" >
353 <![CDATA[
354 <xsl:stylesheet version="1.0"
355 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
356 >
357 <xsl:output omit-xml-declaration = "yes" method="xml" />
358
359 <xsl:template match="img" >
360 <xsl:text disable-output-escaping="yes">&lt;img</xsl:text>
361 <xsl:apply-templates select="@*" mode="attrs" />
362 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
363 </xsl:template>
364 <xsl:template match="@*" mode="attrs" >
365 <xsl:text> </xsl:text>
366 <xsl:value-of select="name()" />
367 <xsl:text>="</xsl:text>
368 <xsl:value-of select="." />
369 <xsl:text>"</xsl:text>
370 </xsl:template>
371
372 <xsl:template match="*|@*|text()|comment()" >
373 <xsl:copy>
374 <xsl:apply-templates select="*|@*|text()|comment()" />
375 </xsl:copy>
376 </xsl:template>
377 </xsl:stylesheet>
378 ]]>
379
380 </set>
381 <xslt name="." xml="." xsl="img" />
382 </script>
383 <script element="input" >
384 <set name="input" >
385 <![CDATA[
386 <xsl:stylesheet version="1.0"
387 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
388 >
389 <xsl:output omit-xml-declaration = "yes" method="xml" />
390
391 <xsl:template match="input" >
392 <xsl:text disable-output-escaping="yes">&lt;input</xsl:text>
393 <xsl:apply-templates select="@*" mode="attrs" />
394 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
395 </xsl:template>
396 <xsl:template match="@*" mode="attrs" >
397 <xsl:text> </xsl:text>
398 <xsl:value-of select="name()" />
399 <xsl:text>="</xsl:text>
400 <xsl:value-of select="." />
401 <xsl:text>"</xsl:text>
402 </xsl:template>
403
404 <xsl:template match="*|@*|text()|comment()" >
405 <xsl:copy>
406 <xsl:apply-templates select="*|@*|text()|comment()" />
407 </xsl:copy>
408 </xsl:template>
409 </xsl:stylesheet>
410 ]]>
411
412 </set>
413 <xslt name="." xml="." xsl="input" />
414 </script>
415 <script element="isindex" >
416 <set name="isindex" >
417 <![CDATA[
418 <xsl:stylesheet version="1.0"
419 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
420 >
421 <xsl:output omit-xml-declaration = "yes" method="xml" />
422
423 <xsl:template match="isindex" >
424 <xsl:text disable-output-escaping="yes">&lt;isindex</xsl:text>
425 <xsl:apply-templates select="@*" mode="attrs" />
426 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
427 </xsl:template>
428 <xsl:template match="@*" mode="attrs" >
429 <xsl:text> </xsl:text>
430 <xsl:value-of select="name()" />
431 <xsl:text>="</xsl:text>
432 <xsl:value-of select="." />
433 <xsl:text>"</xsl:text>
434 </xsl:template>
435
436 <xsl:template match="*|@*|text()|comment()" >
437 <xsl:copy>
438 <xsl:apply-templates select="*|@*|text()|comment()" />
439 </xsl:copy>
440 </xsl:template>
441 </xsl:stylesheet>
442 ]]>
443
444 </set>
445 <xslt name="." xml="." xsl="isindex" />
446 </script>
447 <script element="link" >
448 <set name="link" >
449 <![CDATA[
450 <xsl:stylesheet version="1.0"
451 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
452 >
453 <xsl:output omit-xml-declaration = "yes" method="xml" />
454
455 <xsl:template match="link" >
456 <xsl:text disable-output-escaping="yes">&lt;link</xsl:text>
457 <xsl:apply-templates select="@*" mode="attrs" />
458 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
459 </xsl:template>
460 <xsl:template match="@*" mode="attrs" >
461 <xsl:text> </xsl:text>
462 <xsl:value-of select="name()" />
463 <xsl:text>="</xsl:text>
464 <xsl:value-of select="." />
465 <xsl:text>"</xsl:text>
466 </xsl:template>
467
468 <xsl:template match="*|@*|text()|comment()" >
469 <xsl:copy>
470 <xsl:apply-templates select="*|@*|text()|comment()" />
471 </xsl:copy>
472 </xsl:template>
473 </xsl:stylesheet>
474 ]]>
475
476 </set>
477 <xslt name="." xml="." xsl="link" />
478 </script>
479 <script element="param" >
480 <set name="param" >
481 <![CDATA[
482 <xsl:stylesheet version="1.0"
483 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
484 >
485 <xsl:output omit-xml-declaration = "yes" method="xml" />
486
487 <xsl:template match="param" >
488 <xsl:text disable-output-escaping="yes">&lt;param</xsl:text>
489 <xsl:apply-templates select="@*" mode="attrs" />
490 <xsl:text disable-output-escaping="yes">/&gt;</xsl:text>
491 </xsl:template>
492 <xsl:template match="@*" mode="attrs" >
493 <xsl:text> </xsl:text>
494 <xsl:value-of select="name()" />
495 <xsl:text>="</xsl:text>
496 <xsl:value-of select="." />
497 <xsl:text>"</xsl:text>
498 </xsl:template>
499
500 <xsl:template match="*|@*|text()|comment()" >
501 <xsl:copy>
502 <xsl:apply-templates select="*|@*|text()|comment()" />
503 </xsl:copy>
504 </xsl:template>
505 </xsl:stylesheet>
506 ]]>
507
508 </set>
509 <xslt name="." xml="." xsl="param" />
510 </script>
511
512 </sax>
513 </xtpipes>
514