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
| <xsl:choose>
<xsl:when test="caption">
<xsl:message>CAPTION!</xsl:message>
<fo:table-and-caption id="{$id}"
xsl:use-attribute-sets="table.properties">
<xsl:apply-templates select="caption" mode="htmlTable"/>
<fo:table xsl:use-attribute-sets="table.table.properties">
<xsl:choose>
<xsl:when test="$fop.extensions != 0 or
$passivetex.extensions != 0">
<xsl:message>EXTENSIONS!</xsl:message>
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="@width">
<xsl:message>WIDTH ATTRIBUTE!</xsl:message>
<xsl:value-of select="@width"/>
</xsl:when>
<xsl therwise>
<xsl:message>NO WIDTH ATTRIBUTE!</xsl:message>100%
</xsl therwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="make-html-table-columns">
<xsl:with-param name="count" select="$numcols"/>
</xsl:call-template>
<xsl:apply-templates select="thead" mode="htmlTable"/>
<xsl:apply-templates select="tfoot" mode="htmlTable"/>
<xsl:choose>
<xsl:when test="tbody">
<xsl:message>TBODY!</xsl:message>
<xsl:apply-templates select="tbody" mode="htmlTable"/>
</xsl:when>
<xsl therwise>
<xsl:message>NO TBODY!</xsl:message>
<fo:table-body>
<xsl:apply-templates select="tr" mode="htmlTable"/>
</fo:table-body>
</xsl therwise>
</xsl:choose>
</fo:table>
</fo:table-and-caption>
<xsl:copy-of select="$footnotes"/>
</xsl:when>
<xsl therwise>
<xsl:message>NO CAPTION!</xsl:message>
<fo:block id="{$id}"
xsl:use-attribute-sets="informaltable.properties">
<fo:table table-layout="auto"
xsl:use-attribute-sets="table.table.properties">
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="@width">
<xsl:message>WIDTH ATTRIBUTE!</xsl:message>
<xsl:value-of select="@width"/>
</xsl:when>
<xsl therwise>
<xsl:message>NO WIDTH ATTRIBUTE!</xsl:message>
100%
</xsl therwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="make-html-table-columns">
<xsl:with-param name="count" select="$numcols"/>
</xsl:call-template>
<!--<xsl:apply-templates mode="htmlTable"/>-->
<xsl:choose>
<xsl:when test="tbody">
<xsl:message>TBODY!</xsl:message>
<xsl:apply-templates select="tbody" mode="htmlTable"/>
</xsl:when>
<xsl therwise>
<xsl:message>NO TBODY!</xsl:message>
<fo:table-body>
<xsl:apply-templates select="tr" mode="htmlTable"/>
</fo:table-body>
</xsl therwise>
</xsl:choose>
</fo:table>
</fo:block>
<xsl:copy-of select="$footnotes"/>
</xsl therwise>
</xsl:choose>
|