Revision 1647
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-distribution-2.0.0.xsl | ||
---|---|---|
39 | 39 |
<xsl:template name="distribution"> |
40 | 40 |
<xsl:param name="disfirstColStyle"/> |
41 | 41 |
<xsl:param name="dissubHeaderStyle"/> |
42 |
<xsl:param name="docid"/> |
|
43 |
<xsl:param name="level">entity</xsl:param> |
|
44 |
<xsl:param name="entitytype"/> |
|
45 |
<xsl:param name="entityindex"/> |
|
46 |
<xsl:param name="physicalindex"/> |
|
47 |
<xsl:param name="distributionindex"/> |
|
48 |
|
|
42 | 49 |
<table class="tabledefault" width="100%"> |
43 | 50 |
<xsl:choose> |
44 | 51 |
<xsl:when test="references!=''"> |
... | ... | |
56 | 63 |
<xsl:apply-templates select="inline"> |
57 | 64 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
58 | 65 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
59 |
</xsl:apply-templates> |
|
66 |
<xsl:with-param name="docid" select="$docid"/> |
|
67 |
<xsl:with-param name="level" select="$level"/> |
|
68 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
69 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
70 |
<xsl:with-param name="physicalindex" select="$physicalindex"/> |
|
71 |
<xsl:with-param name="distributionindex" select="$distributionindex"/> |
|
72 |
</xsl:apply-templates> |
|
60 | 73 |
</xsl:for-each> |
61 | 74 |
</xsl:when> |
62 | 75 |
<xsl:otherwise> |
63 |
<xsl:apply-templates select="online"> |
|
64 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
65 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
66 |
</xsl:apply-templates> |
|
67 |
<xsl:apply-templates select="offline"> |
|
68 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
69 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
70 |
</xsl:apply-templates> |
|
71 |
<xsl:apply-templates select="inline"> |
|
72 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
73 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
74 |
</xsl:apply-templates> |
|
76 |
<xsl:apply-templates select="online"> |
|
77 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
78 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
79 |
</xsl:apply-templates> |
|
80 |
<xsl:apply-templates select="offline"> |
|
81 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
82 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
83 |
</xsl:apply-templates> |
|
84 |
<xsl:apply-templates select="inline"> |
|
85 |
<xsl:with-param name="dissubHeaderStyle" select="$dissubHeaderStyle"/> |
|
86 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
|
87 |
<xsl:with-param name="docid" select="$docid"/> |
|
88 |
<xsl:with-param name="level" select="$level"/> |
|
89 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
90 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
91 |
<xsl:with-param name="physicalindex" select="$physicalindex"/> |
|
92 |
<xsl:with-param name="distributionindex" select="$distributionindex"/> |
|
93 |
</xsl:apply-templates> |
|
75 | 94 |
</xsl:otherwise> |
76 | 95 |
</xsl:choose> |
77 | 96 |
</table> |
... | ... | |
247 | 266 |
<!-- ******************************* Offline data ********************** --> |
248 | 267 |
<!-- ********************************************************************* --> |
249 | 268 |
|
250 |
<xsl:template match="offline">
|
|
269 |
<xsl:template name="offline">
|
|
251 | 270 |
<xsl:param name="disfirstColStyle"/> |
252 | 271 |
<xsl:param name="dissubHeaderStyle"/> |
253 | 272 |
<tr><td class="{$dissubHeaderStyle}" colspan="2"> |
... | ... | |
284 | 303 |
<!-- ********************************************************************* --> |
285 | 304 |
|
286 | 305 |
|
287 |
<xsl:template match="inline">
|
|
306 |
<xsl:template name="inline">
|
|
288 | 307 |
<xsl:param name="disfirstColStyle"/> |
289 | 308 |
<xsl:param name="dissubHeaderStyle"/> |
309 |
<xsl:param name="docid"/> |
|
310 |
<xsl:param name="level">entity</xsl:param> |
|
311 |
<xsl:param name="entitytype"/> |
|
312 |
<xsl:param name="entityindex"/> |
|
313 |
<xsl:param name="physicalindex"/> |
|
314 |
<xsl:param name="distributionindex"/> |
|
315 |
<xsl:param name="index"/> |
|
290 | 316 |
<tr><td class="{$dissubHeaderStyle}" colspan="2"> |
291 |
<xsl:text>Inline Data Distribution:</xsl:text>
|
|
317 |
<xsl:text>Inline Data:</xsl:text> |
|
292 | 318 |
</td></tr> |
293 | 319 |
<tr><td width="{$firstColWidth}" class="{$disfirstColStyle}"> |
294 | 320 |
<xsl:text> </xsl:text></td> |
295 | 321 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
296 |
<xsl:value-of select="."/> |
|
322 |
<!-- for top top distribution--> |
|
323 |
<xsl:if test="$level='toplevel'"> |
|
324 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&displaymodule=inlinedata&distributionlevel=<xsl:value-of select="$level"/>&distributionindex=<xsl:value-of select="$distributionindex"/></xsl:attribute> |
|
325 |
<br>Inline Data</br></a> |
|
326 |
</xsl:if> |
|
327 |
<xsl:if test="$level='entitylevel'"> |
|
328 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&displaymodule=inlinedata&distributionlevel=<xsl:value-of select="$level"/>&entitytype=<xsl:value-of select="$entitytype"/>&entityindex=<xsl:value-of select="$entityindex"/>&physicalindex=<xsl:value-of select="$entityindex"/>entityindex=<xsl:value-of select="$physicalindex"/>&distributionindex=<xsl:value-of select="$distributionindex"/></xsl:attribute> |
|
329 |
<br>Inline Data</br></a> |
|
330 |
</xsl:if> |
|
297 | 331 |
</td></tr> |
298 | 332 |
</xsl:template> |
299 | 333 |
|
Also available in: Unified diff
Revise some templats.