blob: f553896a0ee7abbc0f410a99c3281e7e027ae5ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
<xtpipes preamble="yes" signature="javahelp.4xt (2008-06-28-22:07)">
<sax content-handler="xtpipes.util.ScriptsManager"
lexical-handler="xtpipes.util.ScriptsManagerLH" >
<script element="table::tabular" >
<set name="tabular" >
<![CDATA[
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output omit-xml-declaration = "yes" method="xml" />
<xsl:template match=" table[ @class='tabular' ]
/ tr[ (normalize-space(.)='') ] " >
<xsl:message terminate="no">
OK 1
</xsl:message>
<xsl:if test=" normalize-space(following-sibling::*) != '' ">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
<xsl:message terminate="no">
OK 2
</xsl:message>
</xsl:copy>
</xsl:if>
</xsl:template>
<xsl:template match=" tr[ (normalize-space(.)='')
and
(parent::table[ @class='tabular' ])
] " >
<xsl:message terminate="no">
OK 1
</xsl:message>
<xsl:if test=" normalize-space(following-sibling::*) != '' ">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
<xsl:message terminate="no">
OK 2
</xsl:message>
</xsl:copy>
</xsl:if>
</xsl:template>
<xsl:template match="*|@*|text()|comment()" >
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
]]>
</set>
<xslt name="." xml="." xsl="tabular" />
</script>
<script element="table::longtable" >
<set name="longtbl" >
<![CDATA[
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output omit-xml-declaration = "yes" method="xml" />
<xsl:template match=" table[ @class='longtable' ]
/ tr[ (normalize-space(.)='') ] " >
<xsl:if test=" normalize-space(following-sibling::*) != '' ">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
</xsl:copy>
</xsl:if>
</xsl:template>
<xsl:template match="*|@*|text()|comment()" >
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
]]>
</set>
<xslt name="." xml="." xsl="longtbl" />
</script>
</sax>
</xtpipes>
|