Debian Codegraph @

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

raw
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
3 <xtpipes preamble="yes" signature="javahelp.4xt (2008-06-28-22:07)">
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
91
92 </sax>
93 </xtpipes>
94