Revision 1687
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-text-2.0.0.xsl | ||
---|---|---|
40 | 40 |
<xsl:param name="textfirstColStyle" /> |
41 | 41 |
<xsl:if test="(section and normalize-space(section)!='') or (para and normalize-space(para)!='')"> |
42 | 42 |
<table class="tabledefault" width="100%"> |
43 |
<xsl:apply-templates mode="text"> |
|
44 |
<xsl:with-param name="textfirstColStyle" select="$textfirstColStyle"/> |
|
45 |
</xsl:apply-templates> |
|
46 |
|
|
43 |
<xsl:apply-templates select="." mode="text"/> |
|
47 | 44 |
</table> |
48 | 45 |
</xsl:if> |
49 | 46 |
</xsl:template> |
... | ... | |
56 | 53 |
<xsl:if test="normalize-space(.)!=''"> |
57 | 54 |
<xsl:if test="title and normalize-space(title)!=''"> |
58 | 55 |
<tr> |
59 |
<td width="{$firstColWidth}" align="right" class="{$textfirstColStyle}">
|
|
60 |
Title:
|
|
56 |
<td width="100%" align="left" class="{$secondColStyle}" >
|
|
57 |
<b><xsl:value-of select="title"/></b>
|
|
61 | 58 |
</td> |
62 |
<td width="{$secondColWidth}" class="{$secondColStyle}" > |
|
63 |
<xsl:value-of select="title"/> |
|
64 |
</td> |
|
65 | 59 |
</tr> |
66 | 60 |
</xsl:if> |
67 | 61 |
<xsl:if test="para and normalize-space(para)!=''"> |
68 | 62 |
<tr> |
69 |
<td width="{$firstColWidth}" class="{$textfirstColStyle}">
|
|
70 |
<xsl:text> </xsl:text>
|
|
63 |
<td width="100%" class="{$secondColStyle}">
|
|
64 |
<xsl:apply-templates select="para" mode="lowlevel"/>
|
|
71 | 65 |
</td> |
72 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
73 |
<xsl:apply-templates select="para" mode="lowlevel"/> |
|
74 |
</td> |
|
75 | 66 |
</tr> |
76 | 67 |
</xsl:if> |
77 | 68 |
<xsl:if test="section and normalize-space(section)!=''"> |
78 | 69 |
<tr> |
79 |
<td width="{$firstColWidth}" class="{$textfirstColStyle}"> |
|
80 |
<xsl:text> </xsl:text> |
|
81 |
</td> |
|
82 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
70 |
<td width="100%" class="{$secondColStyle}"> |
|
83 | 71 |
<xsl:apply-templates select="section" mode="lowlevel"/> |
84 | 72 |
</td> |
85 | 73 |
</tr> |
... | ... | |
92 | 80 |
<table width="100%"> |
93 | 81 |
<xsl:if test="title and normalize-space(title)!=''"> |
94 | 82 |
<tr> |
95 |
<td width="{$secondColIndent}" align="right" class="{$secondColStyle}">
|
|
96 |
Title:
|
|
83 |
<td width="10%" class="{$secondColStyle}">
|
|
84 |
 
|
|
97 | 85 |
</td> |
98 |
<td class="{$secondColStyle}"> |
|
86 |
<td class="{$secondColStyle}" width="90%" align="left">
|
|
99 | 87 |
<xsl:value-of select="title"/> |
100 | 88 |
</td> |
101 | 89 |
</tr> |
102 | 90 |
</xsl:if> |
103 | 91 |
<xsl:if test="para and normalize-space(para)!=''"> |
104 | 92 |
<tr> |
105 |
<td width="{$secondColIndent}" class="{$secondColStyle}">
|
|
106 |
<xsl:text> </xsl:text>
|
|
93 |
<td width="10%" class="{$secondColStyle}">
|
|
94 |
 
|
|
107 | 95 |
</td> |
108 |
<td class="{$secondColStyle}"> |
|
109 |
<xsl:apply-templates select="para" mode="lowlevel"/> |
|
96 |
<td width="90%" class="{$secondColStyle}">
|
|
97 |
<xsl:apply-templates select="para" mode="lowlevel"/>
|
|
110 | 98 |
</td> |
111 | 99 |
</tr> |
112 | 100 |
</xsl:if> |
113 | 101 |
<xsl:if test="section and normalize-space(section)!=''"> |
114 |
<tr> |
|
115 |
<td width="{$secondColIndent}" class="{$secondColStyle}">
|
|
116 |
<xsl:text> </xsl:text>
|
|
102 |
<tr>
|
|
103 |
<td width="10%" class="{$secondColStyle}">
|
|
104 |
 
|
|
117 | 105 |
</td> |
118 |
<td class="{$secondColStyle}"> |
|
119 |
<xsl:apply-templates select="setction" mode="lowlevel"/>
|
|
106 |
<td width="90%" class="{$secondColStyle}">
|
|
107 |
<xsl:apply-templates select="section" mode="lowlevel"/> |
|
120 | 108 |
</td> |
121 | 109 |
</tr> |
122 | 110 |
</xsl:if> |
... | ... | |
127 | 115 |
<xsl:template match="para" mode="text"> |
128 | 116 |
<xsl:param name="textfirstColStyle"/> |
129 | 117 |
<tr> |
130 |
<td width="{$firstColWidth}" class="{$textfirstColStyle}"> </td> |
|
131 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
132 |
<xsl:apply-templates select="." mode="lowlevel"/> |
|
118 |
<td width="100%" class="{$secondColStyle}"> |
|
119 |
<xsl:apply-templates mode="lowlevel"/> |
|
133 | 120 |
</td> |
134 | 121 |
</tr> |
135 | 122 |
</xsl:template> |
Also available in: Unified diff
Revise the templates.