Revision 1702
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-distribution-2.0.0.xsl | ||
---|---|---|
221 | 221 |
<td width="{$firstColWidth}" class="{$disfirstColStyle}"> |
222 | 222 |
<xsl:text>Description:</xsl:text> |
223 | 223 |
</td> |
224 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
224 |
<td width="{$secondColWidth}"> |
|
225 | 225 |
<xsl:apply-templates select="description"> |
226 | 226 |
<xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" /> |
227 | 227 |
</xsl:apply-templates> |
... | ... | |
245 | 245 |
<xsl:param name="disfirstColStyle"/> |
246 | 246 |
<tr> |
247 | 247 |
<td width="{$firstColWidth}" class="{$disfirstColStyle}"> |
248 |
<xsl:text>     </xsl:text><xsl:value-of select="name" /> |
|
248 |
<xsl:text>     </xsl:text><xsl:value-of select="name" /><xsl:text>:</xsl:text>
|
|
249 | 249 |
</td> |
250 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
250 |
<td width="{$secondColWidth}"> |
|
251 | 251 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
252 | 252 |
<tr> |
253 | 253 |
<td width="{$firstColWidth}" class="{$disfirstColStyle}"> |
254 |
<xsl:value-of select="defaultValue" /> |
|
254 |
<xsl:choose> |
|
255 |
<xsl:when test="defaultValue"> |
|
256 |
<xsl:value-of select="defaultValue" /> |
|
257 |
</xsl:when> |
|
258 |
<xsl:otherwise> |
|
259 |
  |
|
260 |
</xsl:otherwise> |
|
261 |
</xsl:choose> |
|
262 |
|
|
255 | 263 |
</td> |
256 | 264 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
257 | 265 |
<xsl:value-of select="definition" /> |
... | ... | |
322 | 330 |
<!-- for top top distribution--> |
323 | 331 |
<xsl:if test="$level='toplevel'"> |
324 | 332 |
<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>
|
|
333 |
<b>Inline Data</b></a>
|
|
326 | 334 |
</xsl:if> |
327 | 335 |
<xsl:if test="$level='entitylevel'"> |
328 | 336 |
<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="$physicalindex"/>&distributionindex=<xsl:value-of select="$distributionindex"/></xsl:attribute> |
329 |
<br>Inline Data</br></a>
|
|
337 |
<b>Inline Data</b></a>
|
|
330 | 338 |
</xsl:if> |
331 | 339 |
</td></tr> |
332 | 340 |
</xsl:template> |
lib/style/eml2/eml-resource-2.0.0.xsl~ | ||
---|---|---|
30 | 30 |
* suitable for rendering with modern web browsers. |
31 | 31 |
--> |
32 | 32 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
33 |
<xsl:import href="eml-party-2.0.0.xsl"/> |
|
33 |
<!--<xsl:import href="eml-party-2.0.0.xsl"/>
|
|
34 | 34 |
<xsl:import href="eml-distribution-2.0.0.xsl"/> |
35 |
<xsl:import href="eml-coverage-2.0.0.xsl"/>--> |
|
35 | 36 |
<xsl:output method="html" encoding="iso-8859-1"/> |
36 | 37 |
|
37 | 38 |
<!-- This module is for resouce and it is self-contained (it is table)--> |
38 | 39 |
<xsl:template name="resource"> |
39 | 40 |
<xsl:param name="resfirstColStyle"/> |
40 | 41 |
<xsl:param name="ressubHeaderStyle"/> |
41 |
<table class="tabledefault" width="100%"> |
|
42 |
<xsl:param name="creator">Data Set Owner(s):</xsl:param> |
|
43 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
|
42 | 44 |
<xsl:for-each select="alternateIdentifier"> |
43 | 45 |
<xsl:call-template name="resourcealternateIdentifier"> |
44 | 46 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
... | ... | |
58 | 60 |
</xsl:call-template> |
59 | 61 |
</xsl:for-each> |
60 | 62 |
|
63 |
<xsl:for-each select="pubDate"> |
|
64 |
<xsl:call-template name="resourcepubDate" > |
|
65 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
66 |
</xsl:call-template> |
|
67 |
</xsl:for-each> |
|
68 |
|
|
69 |
<xsl:for-each select="language"> |
|
70 |
<xsl:call-template name="resourcelanguage" > |
|
71 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
72 |
</xsl:call-template> |
|
73 |
</xsl:for-each> |
|
74 |
|
|
75 |
<xsl:for-each select="series"> |
|
76 |
<xsl:call-template name="resourceseries" > |
|
77 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
78 |
</xsl:call-template> |
|
79 |
</xsl:for-each> |
|
80 |
|
|
61 | 81 |
<xsl:if test="creator"> |
62 | 82 |
<tr><td class="{$ressubHeaderStyle}" colspan="2"> |
63 |
<xsl:text>Data Set Owner(s):</xsl:text>
|
|
83 |
<xsl:value-of select="$creator"/>
|
|
64 | 84 |
</td></tr> |
65 | 85 |
</xsl:if> |
66 | 86 |
<xsl:for-each select="creator"> |
... | ... | |
90 | 110 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
91 | 111 |
</xsl:call-template> |
92 | 112 |
</xsl:for-each> |
93 |
|
|
94 |
<xsl:for-each select="pubDate"> |
|
95 |
<xsl:call-template name="resourcepubDate" > |
|
96 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
97 |
</xsl:call-template> |
|
98 |
</xsl:for-each> |
|
99 |
|
|
100 |
<xsl:for-each select="language"> |
|
101 |
<xsl:call-template name="resourcelanguage" > |
|
102 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
103 |
</xsl:call-template> |
|
104 |
</xsl:for-each> |
|
105 |
|
|
106 |
<xsl:for-each select="series"> |
|
107 |
<xsl:call-template name="resourceseries" > |
|
108 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
109 |
</xsl:call-template> |
|
110 |
</xsl:for-each> |
|
111 |
|
|
113 |
|
|
112 | 114 |
<xsl:for-each select="abstract"> |
113 | 115 |
<xsl:call-template name="resourceabstract" > |
114 | 116 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
... | ... | |
144 | 146 |
<xsl:call-template name="resourcedistribution"> |
145 | 147 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
146 | 148 |
<xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/> |
149 |
<xsl:with-param name="index" select="position()"/> |
|
147 | 150 |
</xsl:call-template> |
148 | 151 |
</xsl:for-each> |
149 | 152 |
</table> |
153 |
|
|
154 |
<xsl:for-each select="coverage"> |
|
155 |
<xsl:call-template name="resourcecoverage"> |
|
156 |
<xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/> |
|
157 |
<xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/> |
|
158 |
</xsl:call-template> |
|
159 |
</xsl:for-each> |
|
160 |
|
|
150 | 161 |
</xsl:template> |
151 | 162 |
|
152 | 163 |
<xsl:template name="resourcealternateIdentifier" > |
... | ... | |
202 | 213 |
<xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/> |
203 | 214 |
</xsl:call-template> |
204 | 215 |
</td></tr> |
205 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
|
206 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> </td></tr> |
|
207 |
</xsl:template> |
|
216 |
</xsl:template> |
|
208 | 217 |
|
209 | 218 |
<!--<xsl:template match="metadataProvider[1]" mode="resource"> |
210 | 219 |
<xsl:param name="ressubHeaderStyle"/> |
... | ... | |
227 | 236 |
<xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/> |
228 | 237 |
</xsl:call-template> |
229 | 238 |
</td></tr> |
230 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
|
231 |
<td width="{$secondColWidth}" class="{$secondColStyle}">  |
|
232 |
</td></tr> |
|
233 | 239 |
</xsl:template> |
234 | 240 |
|
235 | 241 |
|
... | ... | |
249 | 255 |
</td></tr> |
250 | 256 |
</xsl:template>--> |
251 | 257 |
|
252 |
<xsl:template name="resourceassociateParty"> |
|
258 |
<xsl:template name="resourceassociatedParty">
|
|
253 | 259 |
<xsl:param name="resfirstColStyle"/> |
254 | 260 |
<tr><td colspan="2"> |
255 | 261 |
<xsl:call-template name="party"> |
256 | 262 |
<xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/> |
257 | 263 |
</xsl:call-template> |
258 | 264 |
</td></tr> |
259 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
|
260 |
<td width="{$secondColWidth}" class="{$secondColStyle}">  |
|
261 |
</td></tr> |
|
262 | 265 |
</xsl:template> |
263 | 266 |
|
264 | 267 |
|
... | ... | |
298 | 301 |
<tr><td class="{$ressubHeaderStyle}" colspan="2"> |
299 | 302 |
<xsl:text>Abstract:</xsl:text> |
300 | 303 |
</td></tr> |
301 |
<tr><td colspan="2" width="100%"> |
|
302 |
<xsl:call-template name="text"> |
|
303 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
304 |
</xsl:call-template> |
|
305 |
</td></tr> |
|
306 | 304 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
307 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> </td></tr> |
|
305 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
306 |
<xsl:call-template name="text"> |
|
307 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
308 |
</xsl:call-template> |
|
309 |
</td> |
|
310 |
</tr> |
|
308 | 311 |
</xsl:template> |
309 | 312 |
|
310 | 313 |
|
... | ... | |
357 | 360 |
<tr><td class="{$ressubHeaderStyle}" colspan="2"> |
358 | 361 |
<xsl:text>Additional Information:</xsl:text> |
359 | 362 |
</td></tr> |
360 |
<tr><td colspan="2" width="100%"> |
|
361 |
<xsl:call-template name="text"> |
|
362 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
363 |
</xsl:call-template> |
|
364 |
</td></tr> |
|
363 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
|
364 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
365 |
<xsl:call-template name="text"> |
|
366 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
367 |
</xsl:call-template> |
|
368 |
</td> |
|
369 |
</tr> |
|
365 | 370 |
</xsl:template> |
366 | 371 |
|
367 | 372 |
|
... | ... | |
371 | 376 |
<tr><td class="{$ressubHeaderStyle}" colspan="2"> |
372 | 377 |
<xsl:text>License and Usage Rights:</xsl:text> |
373 | 378 |
</td></tr> |
374 |
<tr><td colspan="2" width="100%"> |
|
375 |
<xsl:call-template name="text"> |
|
376 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
377 |
</xsl:call-template> |
|
378 |
</td></tr> |
|
379 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
|
380 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
381 |
<xsl:call-template name="text"> |
|
382 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
|
383 |
</xsl:call-template> |
|
384 |
</td> |
|
385 |
</tr> |
|
379 | 386 |
</xsl:template> |
380 | 387 |
|
381 | 388 |
<xsl:template name="resourcedistribution"> |
382 | 389 |
<xsl:param name="ressubHeaderStyle"/> |
383 | 390 |
<xsl:param name="resfirstColStyle"/> |
391 |
<xsl:param name="index"/> |
|
384 | 392 |
<tr><td colspan="2" width="100%"> |
385 | 393 |
<xsl:call-template name="distribution"> |
386 | 394 |
<xsl:with-param name="disfirstColStyle" select="$resfirstColStyle"/> |
387 | 395 |
<xsl:with-param name="dissubHeaderStyle" select="$ressubHeaderStyle"/> |
396 |
<xsl:with-param name="level">toplevel</xsl:with-param> |
|
397 |
<xsl:with-param name="distributionindex" select="$index"/> |
|
388 | 398 |
</xsl:call-template> |
389 | 399 |
</td></tr> |
390 | 400 |
</xsl:template> |
391 |
|
|
392 |
|
|
393 |
<xsl:template match="triple"/> |
|
394 |
<xsl:template match="triple[1]" mode="resource"> |
|
395 |
<tr><td class="{$subHeaderStyle}" colspan="2"> |
|
396 |
<xsl:text>Related Metadata and Data Files:</xsl:text></td></tr> |
|
397 |
<xsl:call-template name="renderTriple"> |
|
398 |
<xsl:with-param name="indentation" select="1"></xsl:with-param> |
|
399 |
</xsl:call-template> |
|
400 |
|
|
401 |
|
|
402 |
<xsl:template name="resourcecoverage"> |
|
403 |
<xsl:param name="ressubHeaderStyle"/> |
|
404 |
<xsl:param name="resfirstColStyle"/> |
|
405 |
<tr><td colspan="2" width="100%"> |
|
406 |
<xsl:call-template name="coverage"> |
|
407 |
</xsl:call-template> |
|
408 |
</td></tr> |
|
401 | 409 |
</xsl:template> |
402 | 410 |
|
403 |
<xsl:template match="triple" mode="resource"> |
|
404 |
<xsl:if test="(./subject)!=(./object)"> |
|
405 |
<!-- render only for subsequent data files --> |
|
406 |
<xsl:if test="starts-with(./relationship,'isDataFileFor')"> |
|
407 |
<xsl:call-template name="renderTriple"> |
|
408 |
<xsl:with-param name="indentation" select="1"></xsl:with-param> |
|
409 |
</xsl:call-template> |
|
410 |
</xsl:if> |
|
411 |
<xsl:if test="starts-with(./relationship,'provides eml-project information')"> |
|
412 |
<xsl:call-template name="renderTriple"> |
|
413 |
<xsl:with-param name="indentation" select="1"></xsl:with-param> |
|
414 |
</xsl:call-template> |
|
415 |
</xsl:if> |
|
416 | 411 |
|
417 |
</xsl:if> |
|
418 |
</xsl:template> |
|
419 |
|
|
420 |
<!--xsl:template name="renderTriple"> |
|
421 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
422 |
<xsl:text> </xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
423 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute><xsl:value-of select="./subject"/></a> |
|
424 |
<xsl:text>   </xsl:text> |
|
425 |
<xsl:value-of select="./relationship"/> |
|
426 |
<xsl:text>   </xsl:text> |
|
427 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./object"/></xsl:attribute><xsl:value-of select="./object"/></a> |
|
428 |
</td></tr> |
|
429 |
</xsl:template--> |
|
430 |
|
|
431 |
<xsl:template name="renderTriple"> |
|
432 |
<xsl:param name="indentation">1</xsl:param> |
|
433 |
<tr></tr><tr> <td></td> |
|
434 |
<td width="{$secondColWidth}" class="{$secondColStyle}" padding-left="{$indentation}em"> |
|
435 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
436 |
<xsl:if test="$indentation=2"> |
|
437 |
     • |
|
438 |
</xsl:if> |
|
439 |
<xsl:if test="$indentation=3"> |
|
440 |
          • |
|
441 |
</xsl:if> |
|
442 |
<xsl:if test="starts-with(./relationship,'isDataFileFor')"> |
|
443 |
<xsl:text>Data file for this document</xsl:text> |
|
444 |
<xsl:variable name="subj"> <xsl:value-of select="./subject"/> </xsl:variable> |
|
445 |
<xsl:for-each select="../triple"> |
|
446 |
<xsl:if test="(./object)=$subj"> |
|
447 |
<xsl:if test="starts-with(./relationship,'provides access control')"> |
|
448 |
    |
|
449 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
450 |
(Access Rules)</a> |
|
451 |
</xsl:if> |
|
452 |
</xsl:if> |
|
453 |
</xsl:for-each> |
|
454 |
<xsl:for-each select="../triple"> |
|
455 |
<xsl:if test="(./object)=$subj"> |
|
456 |
<xsl:if test="not(starts-with(./relationship,'provides access control'))"> |
|
457 |
<xsl:call-template name="renderTriple"> |
|
458 |
<xsl:with-param name="indentation" select="($indentation + 1)"> |
|
459 |
</xsl:with-param> |
|
460 |
</xsl:call-template> |
|
461 |
</xsl:if> |
|
462 |
</xsl:if> |
|
463 |
</xsl:for-each> |
|
464 |
</xsl:if> |
|
465 |
|
|
466 |
<xsl:if test="starts-with(./relationship,'provides table-entity information')"> |
|
467 |
<xsl:text>Information about the data file</xsl:text> |
|
468 |
<xsl:variable name="subj"> <xsl:value-of select="./subject"/> </xsl:variable> |
|
469 |
<xsl:for-each select="../triple"> |
|
470 |
<xsl:if test="(./object)=$subj"> |
|
471 |
<xsl:if test="starts-with(./relationship,'provides access control')"> |
|
472 |
    |
|
473 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
474 |
(Access Rules)</a> |
|
475 |
</xsl:if> |
|
476 |
</xsl:if> |
|
477 |
</xsl:for-each> |
|
478 |
<xsl:for-each select="../triple"> |
|
479 |
<xsl:if test="(./object)=$subj"> |
|
480 |
<xsl:if test="not(starts-with(./relationship,'provides access control'))"> |
|
481 |
<xsl:call-template name="renderTriple"> |
|
482 |
<xsl:with-param name="indentation" select="($indentation + 1)"> |
|
483 |
</xsl:with-param> |
|
484 |
</xsl:call-template> |
|
485 |
</xsl:if> |
|
486 |
</xsl:if> |
|
487 |
</xsl:for-each> |
|
488 |
</xsl:if> |
|
489 |
|
|
490 |
<xsl:if test="starts-with(./relationship,'provides eml-attribute information')"> |
|
491 |
<xsl:text>Definition of each column in the data file</xsl:text> |
|
492 |
<xsl:variable name="subj"> <xsl:value-of select="./subject"/> </xsl:variable> |
|
493 |
<xsl:for-each select="../triple"> |
|
494 |
<xsl:if test="(./object)=$subj"> |
|
495 |
<xsl:if test="starts-with(./relationship,'provides access control')"> |
|
496 |
    |
|
497 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
498 |
(Access Rules)</a> |
|
499 |
</xsl:if> |
|
500 |
</xsl:if> |
|
501 |
</xsl:for-each> |
|
502 |
<xsl:for-each select="../triple"> |
|
503 |
<xsl:if test="(./object)=$subj"> |
|
504 |
<xsl:if test="not(starts-with(./relationship,'provides access control'))"> |
|
505 |
<xsl:call-template name="renderTriple"> |
|
506 |
<xsl:with-param name="indentation" select="($indentation + 1)"> |
|
507 |
</xsl:with-param> |
|
508 |
</xsl:call-template> |
|
509 |
</xsl:if> |
|
510 |
</xsl:if> |
|
511 |
</xsl:for-each> |
|
512 |
</xsl:if> |
|
513 |
<xsl:if test="starts-with(./relationship,'provides eml-physical information')"> |
|
514 |
<xsl:text>Physical data file layout information</xsl:text> |
|
515 |
<xsl:variable name="subj"> <xsl:value-of select="./subject"/> </xsl:variable> |
|
516 |
<xsl:for-each select="../triple"> |
|
517 |
<xsl:if test="(./object)=$subj"> |
|
518 |
<xsl:if test="starts-with(./relationship,'provides access control')"> |
|
519 |
    |
|
520 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
521 |
(Access Rules)</a> |
|
522 |
</xsl:if> |
|
523 |
</xsl:if> |
|
524 |
</xsl:for-each> |
|
525 |
<xsl:for-each select="../triple"> |
|
526 |
<xsl:if test="(./object)=$subj"> |
|
527 |
<xsl:if test="not(starts-with(./relationship,'provides access control'))"> |
|
528 |
<xsl:call-template name="renderTriple"> |
|
529 |
<xsl:with-param name="indentation" select="($indentation + 1)"> |
|
530 |
</xsl:with-param> |
|
531 |
</xsl:call-template> |
|
532 |
</xsl:if> |
|
533 |
</xsl:if> |
|
534 |
</xsl:for-each> |
|
535 |
</xsl:if> |
|
536 |
<xsl:if test="starts-with(./relationship,'provides eml-project information')"> |
|
537 |
<xsl:text>Project information</xsl:text> |
|
538 |
<xsl:variable name="subj"> <xsl:value-of select="./subject"/> </xsl:variable> |
|
539 |
<xsl:for-each select="../triple"> |
|
540 |
<xsl:if test="(./object)=$subj"> |
|
541 |
<xsl:if test="starts-with(./relationship,'provides access control')"> |
|
542 |
    |
|
543 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI" /><xsl:value-of select="./subject"/></xsl:attribute> |
|
544 |
(Access Rules)</a> |
|
545 |
</xsl:if> |
|
546 |
</xsl:if> |
|
547 |
</xsl:for-each> |
|
548 |
<xsl:for-each select="../triple"> |
|
549 |
<xsl:if test="(./object)=$subj"> |
|
550 |
<xsl:if test="not(starts-with(./relationship,'provides access control'))"> |
|
551 |
<xsl:call-template name="renderTriple"> |
|
552 |
<xsl:with-param name="indentation" select="($indentation + 1)"> |
|
553 |
</xsl:with-param> |
|
554 |
</xsl:call-template> |
|
555 |
</xsl:if> |
|
556 |
</xsl:if> |
|
557 |
</xsl:for-each> |
|
558 |
</xsl:if> |
|
559 |
</a> |
|
560 |
</td></tr> |
|
561 |
</xsl:template> |
|
562 |
|
|
563 | 412 |
</xsl:stylesheet> |
lib/style/eml2/eml-coverage-2.0.0.xsl~ | ||
---|---|---|
31 | 31 |
--> |
32 | 32 |
|
33 | 33 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
34 |
<!-- <xsl:import href="eml-literature-2.0.0beta6-@name@.xsl"/>-->
|
|
34 |
<xsl:import href="eml-literature-2.0.0.xsl"/>
|
|
35 | 35 |
<xsl:output method="html" encoding="iso-8859-1"/> |
36 | 36 |
|
37 | 37 |
<!-- This module is for coverage and it is self contained(It is a table |
38 | 38 |
and will handle reference by it self)--> |
39 | 39 |
<xsl:template name="coverage"> |
40 |
<table class="tabledefault" width="100%"> |
|
40 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
41 | 41 |
<xsl:choose> |
42 | 42 |
<xsl:when test="references!=''"> |
43 | 43 |
<xsl:variable name="ref_id" select="references"/> |
44 | 44 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
45 | 45 |
<xsl:for-each select="$references"> |
46 |
<xsl:apply-templates mode="coverage"> |
|
47 |
</xsl:apply-templates> |
|
46 |
<xsl:for-each select="geographicCoverage"> |
|
47 |
<xsl:call-template name="geographicCoverage"> |
|
48 |
</xsl:call-template> |
|
49 |
</xsl:for-each> |
|
50 |
<xsl:for-each select="temporalCoverage"> |
|
51 |
<xsl:call-template name="temporalCoverage"> |
|
52 |
</xsl:call-template> |
|
53 |
</xsl:for-each> |
|
54 |
<xsl:for-each select="taxonomicCoverage"> |
|
55 |
<xsl:call-template name="taxonomicCoverage"> |
|
56 |
</xsl:call-template> |
|
57 |
</xsl:for-each> |
|
48 | 58 |
</xsl:for-each> |
49 | 59 |
</xsl:when> |
50 | 60 |
<xsl:otherwise> |
51 |
<xsl:apply-templates mode="coverage"> |
|
52 |
</xsl:apply-templates> |
|
61 |
<xsl:for-each select="geographicCoverage"> |
|
62 |
<xsl:call-template name="geographicCoverage"> |
|
63 |
</xsl:call-template> |
|
64 |
</xsl:for-each> |
|
65 |
<xsl:for-each select="temporalCoverage"> |
|
66 |
<xsl:call-template name="temporalCoverage"> |
|
67 |
</xsl:call-template> |
|
68 |
</xsl:for-each> |
|
69 |
<xsl:for-each select="taxonomicCoverage"> |
|
70 |
<xsl:call-template name="taxonomicCoverage"> |
|
71 |
</xsl:call-template> |
|
72 |
</xsl:for-each> |
|
53 | 73 |
</xsl:otherwise> |
54 | 74 |
</xsl:choose> |
55 | 75 |
</table> |
... | ... | |
58 | 78 |
<!-- ********************************************************************* --> |
59 | 79 |
<!-- ************** G E O G R A P H I C C O V E R A G E ************** --> |
60 | 80 |
<!-- ********************************************************************* --> |
61 |
<xsl:template match="geographicCov" mode="coverage">
|
|
81 |
<xsl:template name="geographicCoverage">
|
|
62 | 82 |
<xsl:choose> |
63 | 83 |
<xsl:when test="references!=''"> |
64 | 84 |
<xsl:variable name="ref_id" select="references"/> |
... | ... | |
81 | 101 |
<xsl:apply-templates select="geographicDescription"/> |
82 | 102 |
<xsl:apply-templates select="boundingCoordinates"/> |
83 | 103 |
<xsl:for-each select="datasetGPolygon"> |
84 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
85 |
Dataset G-Polygon:</td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
86 |
<xsl:apply-templates select="datasetGPolygonOuterGRing"/></td></tr> |
|
87 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
88 |
 </td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
89 |
<xsl:for-each select="datasetGPolygonExclusionGRing"> |
|
90 |
<xsl:apply-templates select="."/> |
|
91 |
</xsl:for-each></td></tr> |
|
92 |
</xsl:for-each> |
|
104 |
<xsl:if test="datasetGPolygonOuterGRing"> |
|
105 |
<xsl:apply-templates select="datasetGPolygonOuterGRing"/> |
|
106 |
</xsl:if> |
|
107 |
<xsl:if test="datasetGPolygonExclusionGRing"> |
|
108 |
<xsl:apply-templates select="datasetGPolygonExclusionGRing"/> |
|
109 |
</xsl:if> |
|
110 |
</xsl:for-each> |
|
93 | 111 |
</xsl:template> |
94 | 112 |
|
95 | 113 |
<xsl:template match="geographicDescription"> |
... | ... | |
100 | 118 |
|
101 | 119 |
<xsl:template match="boundingCoordinates"> |
102 | 120 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
103 |
Bounding Coordinates:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
104 |
<xsl:apply-templates select="westBoundingCoordinate"/></td></tr>
|
|
105 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
|
106 |
 </td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
107 |
<xsl:apply-templates select="eastBoundingCoordinate"/></td></tr>
|
|
108 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
|
109 |
 </td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
110 |
<xsl:apply-templates select="northBoundingCoordinate"/></td></tr>
|
|
111 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
|
112 |
 </td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
113 |
<xsl:apply-templates select="southBoundingCoordinate"/></td></tr>
|
|
114 |
<xsl:apply-templates select="boundingAltitudes"/>
|
|
121 |
Bounding Coordinates:
|
|
122 |
</td>
|
|
123 |
<td width="{$secondColWidth}">
|
|
124 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
125 |
<xsl:apply-templates select="westBoundingCoordinate"/>
|
|
126 |
<xsl:apply-templates select="eastBoundingCoordinate"/>
|
|
127 |
<xsl:apply-templates select="northBoundingCoordinate"/>
|
|
128 |
<xsl:apply-templates select="southBoundingCoordinate"/>
|
|
129 |
<xsl:apply-templates select="boundingAltitudes"/>
|
|
130 |
</table>
|
|
131 |
</td>
|
|
132 |
</tr>
|
|
115 | 133 |
</xsl:template> |
116 | 134 |
|
117 | 135 |
<xsl:template match="westBoundingCoordinate"> |
118 |
<xsl:text>West:  </xsl:text> |
|
119 |
<xsl:value-of select="."/>  degrees |
|
136 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
137 |
<xsl:text>West:  </xsl:text> |
|
138 |
</td> |
|
139 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
140 |
<xsl:value-of select="."/>  degrees |
|
141 |
</td> |
|
142 |
</tr> |
|
120 | 143 |
</xsl:template> |
121 | 144 |
|
122 | 145 |
<xsl:template match="eastBoundingCoordinate"> |
123 |
<xsl:text>East:  </xsl:text> |
|
124 |
<xsl:value-of select="."/>  degrees |
|
146 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
147 |
<xsl:text>East:  </xsl:text> |
|
148 |
</td> |
|
149 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
150 |
<xsl:value-of select="."/>  degrees |
|
151 |
</td> |
|
152 |
</tr> |
|
125 | 153 |
</xsl:template> |
126 | 154 |
|
127 | 155 |
<xsl:template match="northBoundingCoordinate"> |
128 |
<xsl:text>North:  </xsl:text> |
|
129 |
<xsl:value-of select="."/>  degrees |
|
156 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
157 |
<xsl:text>North:  </xsl:text> |
|
158 |
</td> |
|
159 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
160 |
<xsl:value-of select="."/>  degrees |
|
161 |
</td> |
|
162 |
</tr> |
|
130 | 163 |
</xsl:template> |
131 | 164 |
|
132 | 165 |
<xsl:template match="southBoundingCoordinate"> |
133 |
<xsl:text>South:  </xsl:text> |
|
134 |
<xsl:value-of select="."/>  degrees |
|
166 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
167 |
<xsl:text>South:  </xsl:text> |
|
168 |
</td> |
|
169 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
170 |
<xsl:value-of select="."/>  degrees |
|
171 |
</td> |
|
172 |
</tr> |
|
135 | 173 |
</xsl:template> |
136 | 174 |
|
137 | 175 |
|
138 | 176 |
<xsl:template match="boundingAltitudes"> |
177 |
|
|
139 | 178 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
140 |
Bounding Altitudes:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
179 |
Mimimum Altitude:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
141 | 180 |
<xsl:apply-templates select="altitudeMinimum"/></td></tr> |
142 | 181 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
143 |
 </td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
182 |
Maximum Altitude:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
144 | 183 |
<xsl:apply-templates select="altitudeMaximum"/></td></tr> |
184 |
|
|
145 | 185 |
</xsl:template> |
146 | 186 |
|
147 | 187 |
<xsl:template match="altitudeMinimum"> |
148 |
<xsl:text>Minimum:  </xsl:text> |
|
149 |
<xsl:value-of select="."/>  <xsl:value-of select="../altitudeUnits"/> |
|
188 |
<xsl:value-of select="."/>  <xsl:value-of select="../altitudeUnits"/> |
|
150 | 189 |
</xsl:template> |
151 | 190 |
|
152 | 191 |
<xsl:template match="altitudeMaximum"> |
153 |
<xsl:text>Maximum:  </xsl:text> |
|
154 | 192 |
<xsl:value-of select="."/>  <xsl:value-of select="../altitudeUnits"/> |
155 | 193 |
</xsl:template> |
156 | 194 |
|
157 | 195 |
<xsl:template match="datasetGPolygonOuterGRing"> |
158 |
<xsl:text>Outer Ring:  </xsl:text> |
|
159 |
<xsl:for-each select="gringpoint"> |
|
160 |
<xsl:apply-templates select="."/> |
|
161 |
</xsl:for-each> |
|
162 |
<xsl:apply-templates select="gring"/> |
|
196 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
197 |
<xsl:text>G-Ploygon(Outer Ring): </xsl:text> |
|
198 |
</td> |
|
199 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
200 |
<xsl:apply-templates select="gRingPoint"/> |
|
201 |
<xsl:apply-templates select="gRing"/> |
|
202 |
</td> |
|
203 |
</tr> |
|
163 | 204 |
</xsl:template> |
164 | 205 |
|
165 | 206 |
<xsl:template match="datasetGPolygonExclusionGRing"> |
166 |
<xsl:text>Exclusion Ring:  </xsl:text> |
|
167 |
<xsl:for-each select="gRingPoint"> |
|
168 |
<xsl:apply-templates select="."/> |
|
169 |
</xsl:for-each> |
|
170 |
<xsl:apply-templates select="gRing"/> |
|
207 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
208 |
<xsl:text>G-Ploygon(Exclusion Ring): </xsl:text> |
|
209 |
</td> |
|
210 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
211 |
<xsl:apply-templates select="gRingPoint"/> |
|
212 |
<xsl:apply-templates select="gRing"/> |
|
213 |
</td> |
|
214 |
</tr> |
|
171 | 215 |
</xsl:template> |
172 | 216 |
|
173 | 217 |
<xsl:template match="gRing"> |
... | ... | |
189 | 233 |
<!-- **************** T E M P O R A L C O V E R A G E **************** --> |
190 | 234 |
<!-- ********************************************************************* --> |
191 | 235 |
|
192 |
<xsl:template match="temporalCov" mode="coverage">
|
|
236 |
<xsl:template name="temporalCoverage">
|
|
193 | 237 |
<xsl:choose> |
194 | 238 |
<xsl:when test="references!=''"> |
195 | 239 |
<xsl:variable name="ref_id" select="references"/> |
... | ... | |
214 | 258 |
</xsl:template> |
215 | 259 |
|
216 | 260 |
<xsl:template match="singleDateTime"> |
217 |
<xsl:call-template name="singleDateType" /> |
|
218 |
</xsl:template> |
|
261 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
262 |
Date: |
|
263 |
</td> |
|
264 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
265 |
<xsl:call-template name="singleDateType" /> |
|
266 |
</td> |
|
267 |
</tr> |
|
268 |
</xsl:template> |
|
219 | 269 |
|
220 | 270 |
<xsl:template match="rangeOfDates"> |
221 | 271 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
222 | 272 |
Begin: |
223 | 273 |
</td> |
224 | 274 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
225 |
<xsl:apply-templates select="beginDate"/>
|
|
226 |
</td> |
|
275 |
<xsl:apply-templates select="beginDate"/> |
|
276 |
</td>
|
|
227 | 277 |
</tr> |
228 | 278 |
|
229 | 279 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
... | ... | |
233 | 283 |
<xsl:apply-templates select="endDate"/> |
234 | 284 |
</td> |
235 | 285 |
</tr> |
236 |
|
|
237 |
|
|
238 | 286 |
</xsl:template> |
239 | 287 |
|
240 | 288 |
|
... | ... | |
247 | 295 |
</xsl:template> |
248 | 296 |
|
249 | 297 |
<xsl:template name="singleDateType"> |
250 |
<xsl:if test="calendarDate"> |
|
298 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
|
299 |
<xsl:if test="calendarDate"> |
|
251 | 300 |
<tr> |
252 |
<td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
253 |
Calendar Date:</td> |
|
254 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
301 |
<td width="100%" colspan="2" class="{$secondColStyle}"> |
|
255 | 302 |
<xsl:value-of select="calendarDate"/> |
256 | 303 |
<xsl:if test="./time and normalize-space(./time)!=''"> |
257 | 304 |
<xsl:text>  at  </xsl:text><xsl:apply-templates select="time"/> |
... | ... | |
260 | 307 |
</tr> |
261 | 308 |
</xsl:if> |
262 | 309 |
<xsl:if test="alternativeTimeScale"> |
263 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
264 |
Other Time Scale:</td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
265 |
<xsl:apply-templates select="alternativeTimeScale"/></td></tr> |
|
266 |
</xsl:if> |
|
310 |
<xsl:apply-templates select="alternativeTimeScale"/> |
|
311 |
</xsl:if> |
|
312 |
</table> |
|
267 | 313 |
</xsl:template> |
268 | 314 |
|
269 | 315 |
|
270 | 316 |
<xsl:template match="alternativeTimeScale"> |
271 |
<table width="100%"> |
|
317 |
|
|
272 | 318 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
273 |
timescale:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
|
|
319 |
Timescale:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
|
|
274 | 320 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
275 |
time estimate:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr> |
|
321 |
Time estimate:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr> |
|
322 |
<xsl:if test="timeScaleAgeUncertainty and normalize-space(timeScaleAgeUncertainty)!=''"> |
|
276 | 323 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
277 |
time uncertainty:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr> |
|
324 |
Time uncertainty:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr> |
|
325 |
</xsl:if> |
|
326 |
<xsl:if test="timeScaleAgeExplanation and normalize-space(timeScaleAgeExplanation)!=''"> |
|
278 | 327 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
279 |
time explanation:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr> |
|
328 |
Time explanation:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr> |
|
329 |
</xsl:if> |
|
330 |
<xsl:if test="timeScaleCitation and normalize-space(timeScaleCitation)!=''"> |
|
280 | 331 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
281 |
citation:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
282 |
<table width="100%"><xsl:apply-templates select="timeScaleCitation"/></table>
|
|
332 |
Citation:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
333 |
<xsl:apply-templates select="timeScaleCitation"/>
|
|
283 | 334 |
</td></tr> |
284 |
</table> |
|
335 |
</xsl:if> |
|
336 |
|
|
285 | 337 |
</xsl:template> |
286 | 338 |
|
287 | 339 |
<xsl:template match="timeScaleCitation"> |
288 | 340 |
<!-- Using citation module here --> |
289 |
|
|
341 |
<xsl:call-template name="citation"> |
|
342 |
</xsl:call-template> |
|
290 | 343 |
</xsl:template> |
291 | 344 |
|
292 | 345 |
<!-- ********************************************************************* --> |
293 | 346 |
<!-- *************** T A X O N O M I C C O V E R A G E *************** --> |
294 | 347 |
<!-- ********************************************************************* --> |
295 |
<xsl:template match="taxonomicCov" mode="coverage">
|
|
348 |
<xsl:template name="taxonomicCoverage">
|
|
296 | 349 |
<xsl:choose> |
297 | 350 |
<xsl:when test="references!=''"> |
298 | 351 |
<xsl:variable name="ref_id" select="references"/> |
... | ... | |
313 | 366 |
<xsl:template name="taxonomicCovCommon"> |
314 | 367 |
<tr class="{$subHeaderStyle}"><td class="{$subHeaderStyle}" colspan="2"> |
315 | 368 |
<xsl:text>Taxonomic Coverage:</xsl:text></td></tr> |
316 |
<xsl:apply-templates select="taxonsys"/>
|
|
369 |
<xsl:apply-templates select="taxonomicSystem"/>
|
|
317 | 370 |
<xsl:apply-templates select="generalTaxonomicCoverage"/> |
318 |
<xsl:for-each select="taxoncl">
|
|
371 |
<xsl:for-each select="taxonomicClassification">
|
|
319 | 372 |
<xsl:apply-templates select="."/> |
320 | 373 |
</xsl:for-each> |
321 | 374 |
</xsl:template> |
322 |
|
|
323 |
|
|
324 |
<xsl:template match="generalTaxonomicCoverage"> |
|
325 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
326 |
<xsl:text>General:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
327 |
<xsl:value-of select="."/></td></tr> |
|
328 |
</xsl:template> |
|
329 |
|
|
330 |
<!-- output for taxonomic system is not finished --> |
|
331 |
<xsl:template match="taxonomicSystem"> |
|
332 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
375 |
|
|
376 |
|
|
377 |
<xsl:template match="taxonomicSystem"> |
|
378 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
333 | 379 |
<xsl:text>Taxonomic System:</xsl:text></td> |
334 |
<td width="{$secondColWidth}" class="{$firstColStyle}"> </td></tr> |
|
335 |
<xsl:apply-templates select="./*"/> |
|
336 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
337 |
<xsl:text> </xsl:text></td><td width="{$secondColWidth}" class="{$firstColStyle}"> </td></tr> |
|
380 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
381 |
<table xsl:use-attribute-sets="cellspacing" width="100%" class="tabledefault"> |
|
382 |
<xsl:apply-templates select="./*"/> |
|
383 |
</table> |
|
384 |
</td> |
|
385 |
</tr> |
|
338 | 386 |
</xsl:template> |
387 |
|
|
339 | 388 |
|
340 | 389 |
<xsl:template match="classificationSystem"> |
341 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Classification System:</td> |
|
390 |
<xsl:for-each select="classificationSystemCitation"> |
|
391 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Classification Citation:</td> |
|
392 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
393 |
<xsl:call-template name="citation"> |
|
394 |
<xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/> |
|
395 |
<xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/> |
|
396 |
</xsl:call-template> |
|
397 |
</td> |
|
398 |
</tr> |
|
399 |
</xsl:for-each> |
|
400 |
<xsl:if test="classificationSystemModifications and normalize-space(classificationSystemModifications)!=''"> |
|
401 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Modification:</td> |
|
342 | 402 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
343 |
<table width="100%"> |
|
344 |
<xsl:apply-templates select="classificationSystemCitaion"/> |
|
345 |
<xsl:apply-templates select="./classmod"/> |
|
346 |
</table> |
|
347 |
</td></tr> |
|
403 |
<xsl:apply-templates select="classificationSystemModifications"/> |
|
404 |
</td> |
|
405 |
</tr> |
|
406 |
</xsl:if> |
|
348 | 407 |
</xsl:template> |
349 | 408 |
|
350 |
<xsl:template match="classificationSystemCitation"> |
|
351 |
<!-- Need using citaion module --> |
|
352 | 409 |
|
353 |
</xsl:template> |
|
354 |
|
|
355 |
<xsl:template match="classificationSystemModifications"> |
|
356 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
357 |
<xsl:text>Modifications:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
358 |
<xsl:value-of select="."/></td></tr> |
|
359 |
</xsl:template> |
|
360 |
|
|
361 | 410 |
<xsl:template match="identificationReference"> |
362 | 411 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">ID Reference:</td> |
363 | 412 |
<td width="{$secondColWidth}" class="{$secondColStyle}">  |
364 | 413 |
</td></tr> |
365 |
<!-- Need using citaion module--> |
|
414 |
<tr><td colspan="2"> |
|
415 |
<xsl:call-template name="citation"> |
|
416 |
<xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/> |
|
417 |
<xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/> |
|
418 |
</xsl:call-template> |
|
419 |
</td></tr> |
|
366 | 420 |
</xsl:template> |
367 | 421 |
|
368 | 422 |
<xsl:template match="identifierName"> |
369 | 423 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">ID Name:</td> |
370 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
371 |
  |
|
372 |
</td></tr> |
|
373 |
<tr><td colspan="2"> |
|
374 |
<xsl:call-template name="party"> |
|
375 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/> |
|
376 |
</xsl:call-template> |
|
377 |
</td></tr> |
|
424 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
425 |
<xsl:call-template name="party"> |
|
426 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/> |
|
427 |
</xsl:call-template> |
|
428 |
</td> |
|
429 |
</tr> |
|
378 | 430 |
</xsl:template> |
379 | 431 |
|
380 | 432 |
<xsl:template match="taxonomicProcedures"> |
381 | 433 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
382 | 434 |
<xsl:text>Procedures:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
383 |
<xsl:apply-templates select="."/></td></tr>
|
|
435 |
<xsl:value-of select="."/></td></tr>
|
|
384 | 436 |
</xsl:template> |
385 | 437 |
|
386 | 438 |
<xsl:template match="taxonomicCompleteness"> |
387 | 439 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
388 | 440 |
<xsl:text>Completeness:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
389 |
<xsl:apply-templates select="."/></td></tr>
|
|
441 |
<xsl:value-of select="."/></td></tr>
|
|
390 | 442 |
</xsl:template> |
391 | 443 |
|
392 | 444 |
<xsl:template match="vouchers"> |
393 | 445 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Vouchers:</td> |
394 | 446 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
395 |
<table width="100%"> |
|
447 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
396 | 448 |
<xsl:apply-templates select="specimen"/> |
397 | 449 |
<xsl:apply-templates select="repository"/> |
398 | 450 |
</table> |
... | ... | |
402 | 454 |
<xsl:template match="specimen"> |
403 | 455 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
404 | 456 |
<xsl:text>Specimen:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
405 |
<xsl:apply-templates select="./*"/></td></tr>
|
|
457 |
<xsl:value-of select="."/></td></tr>
|
|
406 | 458 |
</xsl:template> |
407 | 459 |
|
408 | 460 |
<xsl:template match="repository"> |
409 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Repository:</td>
|
|
461 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Repository:</td> |
|
410 | 462 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
411 |
 
|
|
412 |
</td></tr>
|
|
413 |
<tr><td colspan="2">
|
|
414 |
<xsl:call-template name="party">
|
|
415 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
|
|
416 |
</xsl:call-template>
|
|
417 |
</td></tr>
|
|
463 |
<xsl:for-each select="originator">
|
|
464 |
<xsl:call-template name="party">
|
|
465 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
|
|
466 |
</xsl:call-template>
|
|
467 |
</xsl:for-each>
|
|
468 |
</td>
|
|
469 |
</tr> |
|
418 | 470 |
</xsl:template> |
419 | 471 |
|
472 |
|
|
473 |
<xsl:template match="generalTaxonomicCoverage"> |
|
474 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
475 |
<xsl:text>General Coverage:</xsl:text></td> |
|
476 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
477 |
<xsl:value-of select="."/> |
|
478 |
</td> |
|
479 |
</tr> |
|
480 |
</xsl:template> |
|
481 |
|
|
482 |
|
|
420 | 483 |
<xsl:template match="taxonomicClassification"> |
421 | 484 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
422 | 485 |
<xsl:text>Classification:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
423 |
<table width="100%"> |
|
424 |
<xsl:apply-templates select="./*"/> |
|
486 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
487 |
<xsl:apply-templates select="./*" mode="nest"/>
|
|
425 | 488 |
</table> |
426 | 489 |
</td></tr> |
427 | 490 |
</xsl:template> |
428 | 491 |
|
429 |
<xsl:template match="taxonRankName"> |
|
430 |
<tr><td width="{$secondColIndent}" class="{$secondColStyle}">
|
|
492 |
<xsl:template match="taxonRankName" mode="nest" >
|
|
493 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
|
431 | 494 |
<xsl:text>Rank Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
432 | 495 |
<xsl:value-of select="."/></td></tr> |
433 | 496 |
</xsl:template> |
434 | 497 |
|
435 |
<xsl:template match="taxonRankValue"> |
|
436 |
<tr><td width="{$secondColIndent}" class="{$secondColStyle}">
|
|
498 |
<xsl:template match="taxonRankValue" mode="nest">
|
|
499 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
|
437 | 500 |
<xsl:text>Rank Value:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
438 | 501 |
<xsl:value-of select="."/></td></tr> |
439 | 502 |
</xsl:template> |
440 | 503 |
|
441 |
<xsl:template match="commonName"> |
|
442 |
<tr><td width="{$secondColIndent}" class="{$secondColStyle}"> |
|
443 |
<xsl:text>Common Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
444 |
<xsl:for-each select="."> |
|
504 |
<xsl:template match="commonName" mode="nest"> |
|
505 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
506 |
<xsl:text>Common Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
445 | 507 |
<xsl:value-of select="."/> |
446 |
</xsl:for-each></td></tr> |
|
508 |
</td> |
|
509 |
</tr> |
|
447 | 510 |
</xsl:template> |
448 | 511 |
|
512 |
<xsl:template match="taxonomicClassification" mode="nest"> |
|
513 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
514 |
<xsl:text>Classification:</xsl:text> |
|
515 |
</td> |
|
516 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
517 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
|
518 |
<xsl:apply-templates select="./*" mode="nest"/> |
|
519 |
</table> |
|
520 |
</td> |
|
521 |
</tr> |
|
522 |
</xsl:template> |
|
449 | 523 |
|
450 | 524 |
</xsl:stylesheet> |
lib/style/eml2/eml-software-2.0.0.xsl | ||
---|---|---|
43 | 43 |
<xsl:variable name="ref_id" select="references"/> |
44 | 44 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
45 | 45 |
<xsl:for-each select="$references"> |
46 |
<xsl:call-template name="softwareCommon">
|
|
46 |
<xsl:call-template name="softwarecommon">
|
|
47 | 47 |
<xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/> |
48 | 48 |
<xsl:with-param name="softsubHeaderStyle" select="$softwaresubHeaderStyle"/> |
49 | 49 |
</xsl:call-template> |
50 | 50 |
</xsl:for-each> |
51 | 51 |
</xsl:when> |
52 | 52 |
<xsl:otherwise> |
53 |
<xsl:call-template name="softwareCommon">
|
|
53 |
<xsl:call-template name="softwarecommon">
|
|
54 | 54 |
<xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/> |
55 | 55 |
<xsl:with-param name="softsubHeaderStyle" select="$softwaresubHeaderStyle"/> |
56 | 56 |
</xsl:call-template> |
lib/style/eml2/eml-party-2.0.0.xsl | ||
---|---|---|
133 | 133 |
Address:</td><td width="{$secondColWidth}" > |
134 | 134 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%"> |
135 | 135 |
<xsl:for-each select="deliveryPoint"> |
136 |
<tr><td><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr> |
|
136 |
<tr><td class="{$secondColStyle}"><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
|
|
137 | 137 |
</xsl:for-each> |
138 | 138 |
<!-- only include comma if city exists... --> |
139 |
<tr><td> |
|
139 |
<tr><td class="{$secondColStyle}" >
|
|
140 | 140 |
<xsl:if test="normalize-space(city)!=''"> |
141 | 141 |
<xsl:value-of select="city"/><xsl:text>, </xsl:text> |
142 | 142 |
</xsl:if> |
... | ... | |
153 | 153 |
<xsl:template match="phone" mode="party"> |
154 | 154 |
<xsl:param name="partyfirstColStyle"/> |
155 | 155 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
156 |
Phone:</td><td width="{$secondColWidth}" > |
|
156 |
Phone:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
157 | 157 |
<xsl:value-of select="."/> |
158 | 158 |
<xsl:if test="normalize-space(./@phonetype)!=''"> |
159 | 159 |
<xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text> |
... | ... | |
165 | 165 |
<xsl:param name="partyfirstColStyle"/> |
166 | 166 |
<xsl:if test="normalize-space(.)!=''"> |
167 | 167 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
168 |
Email Address:</td><td width="{$secondColWidth}"> |
|
168 |
Email Address:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
169 | 169 |
<a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/> |
170 | 170 |
<xsl:value-of select="."/></a></td></tr> |
171 | 171 |
</xsl:if> |
... | ... | |
176 | 176 |
<xsl:param name="partyfirstColStyle"/> |
177 | 177 |
<xsl:if test="normalize-space(.)!=''"> |
178 | 178 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
179 |
Web Address:</td><td width="{$secondColWidth}"> |
|
179 |
Web Address:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
180 | 180 |
<xsl:value-of select="."/></td></tr> |
181 | 181 |
</xsl:if> |
182 | 182 |
</xsl:template> |
... | ... | |
186 | 186 |
<xsl:param name="partyfirstColStyle"/> |
187 | 187 |
<xsl:if test="normalize-space(.)!=''"> |
188 | 188 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
189 |
Id:</td><td width="{$secondColWidth}"> |
|
189 |
Id:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
190 | 190 |
<xsl:value-of select="."/></td></tr> |
191 | 191 |
</xsl:if> |
192 | 192 |
</xsl:template> |
lib/style/eml2/eml-literature-2.0.0.xsl | ||
---|---|---|
201 | 201 |
 </td></tr> |
202 | 202 |
<xsl:for-each select="publisher"> |
203 | 203 |
<tr><td colspan="2"> |
204 |
<xsl:call-template name="partry">
|
|
204 |
<xsl:call-template name="party"> |
|
205 | 205 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
206 | 206 |
<xsl:with-param name="partysubHeaderStyle" select="$citationsubHeaderStyle"/> |
207 | 207 |
</xsl:call-template> |
... | ... | |
235 | 235 |
 </td></tr> |
236 | 236 |
<xsl:for-each select="publisher"> |
237 | 237 |
<tr><td colspan="2"> |
238 |
<xsl:call-template name="partry">
|
|
238 |
<xsl:call-template name="party"> |
|
239 | 239 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
240 | 240 |
</xsl:call-template> |
241 | 241 |
</td></tr> |
... | ... | |
389 | 389 |
 </td></tr> |
390 | 390 |
<xsl:for-each select="publisher"> |
391 | 391 |
<tr><td colspan="2"> |
392 |
<xsl:call-template name="partry">
|
|
392 |
<xsl:call-template name="party"> |
|
393 | 393 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
394 | 394 |
|
395 | 395 |
</xsl:call-template> |
... | ... | |
424 | 424 |
 </td></tr> |
425 | 425 |
<xsl:for-each select="institution"> |
426 | 426 |
<tr><td colspan="2"> |
427 |
<xsl:call-template name="partry">
|
|
427 |
<xsl:call-template name="party"> |
|
428 | 428 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
429 | 429 |
<xsl:with-param name="partysubHeaderStyle" select="$citationsubHeaderStyle"/> |
430 | 430 |
</xsl:call-template> |
... | ... | |
485 | 485 |
 </td></tr> |
486 | 486 |
<xsl:for-each select="publisher"> |
487 | 487 |
<tr><td colspan="2"> |
488 |
<xsl:call-template name="partry">
|
|
488 |
<xsl:call-template name="party"> |
|
489 | 489 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
490 | 490 |
</xsl:call-template> |
491 | 491 |
</td></tr> |
... | ... | |
511 | 511 |
 </td></tr> |
512 | 512 |
<xsl:for-each select="recipient"> |
513 | 513 |
<tr><td colspan="2"> |
514 |
<xsl:call-template name="partry">
|
|
514 |
<xsl:call-template name="party"> |
|
515 | 515 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
516 | 516 |
</xsl:call-template> |
517 | 517 |
</td></tr> |
... | ... | |
530 | 530 |
 </td></tr> |
531 | 531 |
<xsl:for-each select="publisher"> |
532 | 532 |
<tr><td colspan="2"> |
533 |
<xsl:call-template name="partry">
|
|
533 |
<xsl:call-template name="party"> |
|
534 | 534 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
535 | 535 |
</xsl:call-template> |
536 | 536 |
</td></tr> |
... | ... | |
568 | 568 |
</td></tr> |
569 | 569 |
<xsl:for-each select="publisher"> |
570 | 570 |
<tr><td colspan="2"> |
571 |
<xsl:call-template name="partry">
|
|
571 |
<xsl:call-template name="party"> |
|
572 | 572 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
573 | 573 |
</xsl:call-template> |
574 | 574 |
</td></tr> |
... | ... | |
663 | 663 |
</td></tr> |
664 | 664 |
<xsl:for-each select="publisher"> |
665 | 665 |
<tr><td colspan="2"> |
666 |
<xsl:call-template name="partry">
|
|
666 |
<xsl:call-template name="party"> |
|
667 | 667 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
668 | 668 |
</xsl:call-template> |
669 | 669 |
</td></tr> |
... | ... | |
688 | 688 |
 </td></tr> |
689 | 689 |
<xsl:for-each select="performer"> |
690 | 690 |
<tr><td colspan="2"> |
691 |
<xsl:call-template name="partry">
|
|
691 |
<xsl:call-template name="party"> |
|
692 | 692 |
<xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/> |
693 | 693 |
</xsl:call-template> |
694 | 694 |
</td></tr> |
lib/style/eml2/eml-method-2.0.0.xsl | ||
---|---|---|
85 | 85 |
</xsl:call-template> |
86 | 86 |
<xsl:for-each select="dataSource"> |
87 | 87 |
<tr><td colspan="2"> |
88 |
<xsl:call-template name="dataset">
|
|
89 |
</xsl:call-template>
|
|
88 |
<xsl:apply-templates mode="dataset">
|
|
89 |
</xsl:apply-templates>
|
|
90 | 90 |
</td> |
91 | 91 |
</tr> |
92 | 92 |
</xsl:for-each> |
... | ... | |
108 | 108 |
<tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}"> |
109 | 109 |
Sampling Description: |
110 | 110 |
</td> |
111 |
<td width="${secondColWidth}" class="{$secondColStyle}">
|
|
111 |
<td width="${secondColWidth}"> |
|
112 | 112 |
<xsl:call-template name="text"> |
113 | 113 |
<xsl:with-param name="textfirstColStyle" select="$methodfirstColStyle"/> |
114 | 114 |
</xsl:call-template> |
... | ... | |
151 | 151 |
<tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}"> |
152 | 152 |
Sampling Area And Frequency: |
153 | 153 |
</td> |
154 |
<td width="${secondColWidth}" class="{$secondColStyle}">
|
|
154 |
<td width="${secondColWidth}" > |
|
155 | 155 |
<xsl:call-template name="text"> |
156 | 156 |
<xsl:with-param name="textfirstColStyle" select="$methodfirstColStyle"/> |
157 | 157 |
</xsl:call-template> |
lib/style/eml2/eml-text-2.0.0.xsl | ||
---|---|---|
39 | 39 |
<xsl:template name="text"> |
40 | 40 |
<xsl:param name="textfirstColStyle" /> |
41 | 41 |
<xsl:if test="(section and normalize-space(section)!='') or (para and normalize-space(para)!='')"> |
42 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%">
|
|
42 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
43 | 43 |
<xsl:apply-templates select="." mode="text"/> |
44 | 44 |
</table> |
45 | 45 |
</xsl:if> |
... | ... | |
77 | 77 |
|
78 | 78 |
<!-- Section template for low level. Cteate a nested table and second column --> |
79 | 79 |
<xsl:template match="section" mode="lowlevel"> |
80 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%">
|
|
80 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
81 | 81 |
<xsl:if test="title and normalize-space(title)!=''"> |
82 | 82 |
<tr> |
83 | 83 |
<td width="10%" class="{$secondColStyle}"> |
lib/style/eml2/eml-resource-2.0.0.xsl | ||
---|---|---|
255 | 255 |
</td></tr> |
256 | 256 |
</xsl:template>--> |
257 | 257 |
|
258 |
<xsl:template name="resourceassociateParty"> |
|
258 |
<xsl:template name="resourceassociatedParty">
|
|
259 | 259 |
<xsl:param name="resfirstColStyle"/> |
260 | 260 |
<tr><td colspan="2"> |
261 | 261 |
<xsl:call-template name="party"> |
... | ... | |
302 | 302 |
<xsl:text>Abstract:</xsl:text> |
303 | 303 |
</td></tr> |
304 | 304 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
305 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
305 |
<td width="{$secondColWidth}"> |
|
306 | 306 |
<xsl:call-template name="text"> |
307 | 307 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
308 | 308 |
</xsl:call-template> |
... | ... | |
361 | 361 |
<xsl:text>Additional Information:</xsl:text> |
362 | 362 |
</td></tr> |
363 | 363 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
364 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
364 |
<td width="{$secondColWidth}"> |
|
365 | 365 |
<xsl:call-template name="text"> |
366 | 366 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
367 | 367 |
</xsl:call-template> |
... | ... | |
377 | 377 |
<xsl:text>License and Usage Rights:</xsl:text> |
378 | 378 |
</td></tr> |
379 | 379 |
<tr><td width="{$firstColWidth}" class="{$resfirstColStyle}"> </td> |
380 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
380 |
<td width="{$secondColWidth}"> |
|
381 | 381 |
<xsl:call-template name="text"> |
382 | 382 |
<xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/> |
383 | 383 |
</xsl:call-template> |
lib/style/eml2/eml-coverage-2.0.0.xsl | ||
---|---|---|
261 | 261 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
262 | 262 |
Date: |
263 | 263 |
</td> |
264 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
264 |
<td width="{$secondColWidth}"> |
|
265 | 265 |
<xsl:call-template name="singleDateType" /> |
266 | 266 |
</td> |
267 | 267 |
</tr> |
... | ... | |
271 | 271 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
272 | 272 |
Begin: |
273 | 273 |
</td> |
274 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
274 |
<td width="{$secondColWidth}"> |
|
275 | 275 |
<xsl:apply-templates select="beginDate"/> |
276 | 276 |
</td> |
277 | 277 |
</tr> |
... | ... | |
279 | 279 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
280 | 280 |
End: |
281 | 281 |
</td> |
282 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
282 |
<td width="{$secondColWidth}"> |
|
283 | 283 |
<xsl:apply-templates select="endDate"/> |
284 | 284 |
</td> |
285 | 285 |
</tr> |
... | ... | |
377 | 377 |
<xsl:template match="taxonomicSystem"> |
378 | 378 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
379 | 379 |
<xsl:text>Taxonomic System:</xsl:text></td> |
380 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
380 |
<td width="{$secondColWidth}"> |
|
381 | 381 |
<table xsl:use-attribute-sets="cellspacing" width="100%" class="tabledefault"> |
382 | 382 |
<xsl:apply-templates select="./*"/> |
383 | 383 |
</table> |
... | ... | |
389 | 389 |
<xsl:template match="classificationSystem"> |
390 | 390 |
<xsl:for-each select="classificationSystemCitation"> |
391 | 391 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Classification Citation:</td> |
392 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
392 |
<td width="{$secondColWidth}"> |
|
393 | 393 |
<xsl:call-template name="citation"> |
394 | 394 |
<xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/> |
395 | 395 |
<xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/> |
... | ... | |
400 | 400 |
<xsl:if test="classificationSystemModifications and normalize-space(classificationSystemModifications)!=''"> |
401 | 401 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Modification:</td> |
402 | 402 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
403 |
<xsl:apply-templates select="classificationSystemModifications"/>
|
|
403 |
<xsl:value-of select="classificationSystemModifications"/>
|
|
404 | 404 |
</td> |
405 | 405 |
</tr> |
406 | 406 |
</xsl:if> |
... | ... | |
421 | 421 |
|
422 | 422 |
<xsl:template match="identifierName"> |
423 | 423 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">ID Name:</td> |
424 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
424 |
<td width="{$secondColWidth}"> |
|
425 | 425 |
<xsl:call-template name="party"> |
426 | 426 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/> |
427 | 427 |
</xsl:call-template> |
... | ... | |
443 | 443 |
|
444 | 444 |
<xsl:template match="vouchers"> |
445 | 445 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Vouchers:</td> |
446 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
446 |
<td width="{$secondColWidth}"> |
|
447 | 447 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
448 | 448 |
<xsl:apply-templates select="specimen"/> |
449 | 449 |
<xsl:apply-templates select="repository"/> |
... | ... | |
459 | 459 |
|
460 | 460 |
<xsl:template match="repository"> |
461 | 461 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">Repository:</td> |
462 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
462 |
<td width="{$secondColWidth}"> |
|
463 | 463 |
<xsl:for-each select="originator"> |
464 | 464 |
<xsl:call-template name="party"> |
465 | 465 |
<xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/> |
... | ... | |
482 | 482 |
|
483 | 483 |
<xsl:template match="taxonomicClassification"> |
484 | 484 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
485 |
<xsl:text>Classification:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
485 |
<xsl:text>Classification:</xsl:text></td><td width="{$secondColWidth}"> |
|
486 | 486 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
487 | 487 |
<xsl:apply-templates select="./*" mode="nest"/> |
488 | 488 |
</table> |
... | ... | |
513 | 513 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
514 | 514 |
<xsl:text>Classification:</xsl:text> |
515 | 515 |
</td> |
516 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
516 |
<td width="{$secondColWidth}"> |
|
517 | 517 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
518 | 518 |
<xsl:apply-templates select="./*" mode="nest"/> |
519 | 519 |
</table> |
lib/style/eml2/eml-protocol-2.0.0.xsl | ||
---|---|---|
44 | 44 |
<xsl:variable name="ref_id" select="references"/> |
45 | 45 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
46 | 46 |
<xsl:for-each select="$references"> |
47 |
<xsl:call-template name="protocolCommon">
|
|
47 |
<xsl:call-template name="protocolcommon">
|
|
48 | 48 |
<xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/> |
49 | 49 |
<xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/> |
50 | 50 |
</xsl:call-template> |
51 | 51 |
</xsl:for-each> |
52 | 52 |
</xsl:when> |
53 | 53 |
<xsl:otherwise> |
54 |
<xsl:call-template name="protocolCommon">
|
|
54 |
<xsl:call-template name="protocolcommon">
|
|
55 | 55 |
<xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/> |
56 | 56 |
<xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/> |
57 | 57 |
</xsl:call-template> |
... | ... | |
91 | 91 |
<tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}"> |
92 | 92 |
Description: |
93 | 93 |
</td> |
94 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
94 |
<td width="{$secondColWidth}"> |
|
95 | 95 |
<xsl:call-template name="text"> |
96 | 96 |
<xsl:with-param name="textfirstColStyle" select="$protocolfirstColStyle"/> |
97 | 97 |
</xsl:call-template> |
lib/style/knb.css | ||
---|---|---|
168 | 168 |
border-width: 0.05em; |
169 | 169 |
border-color: white; |
170 | 170 |
border-style: solid; |
171 |
padding-left: 0.4em; |
|
172 |
padding-top: 0.1em; |
|
173 |
padding-bottom: 0.1em; |
|
171 | 174 |
} |
172 | 175 |
.secondCol { |
173 | 176 |
font-size: 1em; |
174 | 177 |
border-collapse: collapse; |
178 |
padding-left: 0.4em; |
|
179 |
padding-top: 0.1em; |
|
180 |
padding-bottom: 0.1em |
|
175 | 181 |
} |
176 | 182 |
.plaintext { |
177 | 183 |
color: black; |
build.xml | ||
---|---|---|
65 | 65 |
<property name="systemidserver" value="http://pine.nceas.ucsb.edu:8080" /> |
66 | 66 |
<property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/data" /> |
67 | 67 |
<property name="inlinedatafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/inlinedata" /> |
68 |
<property name="debuglevel" value="55" />
|
|
68 |
<property name="debuglevel" value="35" />
|
|
69 | 69 |
<property name="forcereplicationwaitingtime" value="30000"/> |
70 | 70 |
<property name="cvsroot" |
71 | 71 |
value=":ext:tao@cvs.ecoinformatics.org:/cvs" /> |
... | ... | |
197 | 197 |
<include name="**/*.sql"/> |
198 | 198 |
<exclude name="**/CVS*"/> |
199 | 199 |
<exclude name="**/.#*"/> |
200 |
<exclude name="edu/ucsb/nceas/metacat/harvesterClient/*.*"/> |
|
200 | 201 |
</fileset> |
201 | 202 |
</copy> |
202 | 203 |
</target> |
... | ... | |
548 | 549 |
<delete dir="${dist.dir}"/> |
549 | 550 |
</target> |
550 | 551 |
|
552 |
<target name="stylesheettest"> |
|
553 |
<xslt in="${input}" out="eml.html" style="lib/style/eml2/eml-2.0.0.xsl"> |
|
554 |
<param name="displaymodule" expression="${displaymodule}"/> |
|
555 |
<param name="docid" expression="${input}"/> |
|
556 |
<param name="entitytype" expression="${entitytype}"/> |
|
557 |
<param name="entityindex" expression="${entityindex}"/> |
|
558 |
<outputproperty name="method" value="html"/> |
|
559 |
<outputproperty name="standalone" value="yes"/> |
|
560 |
<outputproperty name="encoding" value="iso8859_1"/> |
|
561 |
<outputproperty name="indent" value="yes"/> |
|
562 |
</xslt> |
|
563 |
</target> |
|
564 |
|
|
551 | 565 |
</project> |
Also available in: Unified diff
Revise some templates and in build file, when we compile, it would include harvest.