Revision 1659
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-attribute-2.0.0.xsl | ||
---|---|---|
70 | 70 |
|
71 | 71 |
|
72 | 72 |
<!-- First row for attribute name--> |
73 |
<tr><th colspan="1" valign="center" align="center" class="bordered">Columns</th>
|
|
73 |
<tr><th colspan="1" valign="center" align="center" class="bordered">Attribute Names</th>
|
|
74 | 74 |
<xsl:for-each select="attribute"> |
75 | 75 |
<xsl:choose> |
76 | 76 |
<xsl:when test="references!=''"> |
... | ... | |
237 | 237 |
<td colspan="1" align="center" class="{$stripes}"> |
238 | 238 |
<table width="100%"> |
239 | 239 |
<xsl:for-each select="missingValueCode"> |
240 |
<tr><td width="20%"><br>Code</br></td>
|
|
240 |
<tr><td width="20%"><b>Code</b></td>
|
|
241 | 241 |
<td width="80%"><xsl:value-of select="code"/></td></tr> |
242 |
<tr><td width="20%"><br>Explanation</br></td>
|
|
242 |
<tr><td width="20%"><b>Explanation</b></td>
|
|
243 | 243 |
<td width="80%"><xsl:value-of select="codeExplanation"/></td> |
244 | 244 |
</tr> |
245 | 245 |
</xsl:for-each> |
... | ... | |
251 | 251 |
<td colspan="1" align="center" class="{$stripes}"> |
252 | 252 |
<table width="100%"> |
253 | 253 |
<xsl:for-each select="missingValueCode"> |
254 |
<tr><td width="20%"><br>Code</br></td>
|
|
254 |
<tr><td width="20%"><b>Code</b></td>
|
|
255 | 255 |
<td width="80%"><xsl:value-of select="code"/></td></tr> |
256 |
<tr><td width="20%"><br>Explanation</br></td>
|
|
256 |
<tr><td width="20%"><b>Explanation</b></td>
|
|
257 | 257 |
<td width="80%"><xsl:value-of select="codeExplanation"/></td> |
258 | 258 |
</tr> |
259 | 259 |
</xsl:for-each> |
... | ... | |
282 | 282 |
<td colspan="1" align="center" class="{$stripes}"> |
283 | 283 |
<xsl:for-each select="accuracy"> |
284 | 284 |
<table width="100%"> |
285 |
<tr><td width="{$firstColWidth}"><br>Report</br></td>
|
|
285 |
<tr><td width="{$firstColWidth}"><b>Report</b></td>
|
|
286 | 286 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyReport"/> |
287 | 287 |
</td> |
288 | 288 |
</tr> |
289 | 289 |
<xsl:for-each select="quantitativeAttributeAccuracyAssessment"> |
290 |
<tr><td width="{$firstColWidth}"><br>Value</br></td>
|
|
290 |
<tr><td width="{$firstColWidth}"><b>Value</b></td>
|
|
291 | 291 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyValue"/></td> |
292 | 292 |
</tr> |
293 |
<tr><td width="{$firstColWidth}"><br>Explanation</br></td>
|
|
293 |
<tr><td width="{$firstColWidth}"><b>Explanation</b></td>
|
|
294 | 294 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyExplanation"/></td> |
295 | 295 |
</tr> |
296 | 296 |
</xsl:for-each> |
... | ... | |
303 | 303 |
<td colspan="1" align="center" class="{$stripes}"> |
304 | 304 |
<xsl:for-each select="accuracy"> |
305 | 305 |
<table width="100%"> |
306 |
<tr><td width="{$firstColWidth}"><br>Report</br></td>
|
|
306 |
<tr><td width="{$firstColWidth}"><b>Report</b></td>
|
|
307 | 307 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyReport"/> |
308 | 308 |
</td> |
309 | 309 |
</tr> |
310 | 310 |
<xsl:for-each select="quantitativeAttributeAccuracyAssessment"> |
311 |
<tr><td width="{$firstColWidth}"><br>Value</br></td>
|
|
311 |
<tr><td width="{$firstColWidth}"><b>Value</b></td>
|
|
312 | 312 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyValue"/></td> |
313 | 313 |
</tr> |
314 |
<tr><td width="{$firstColWidth}"><br>Explanation</br></td>
|
|
314 |
<tr><td width="{$firstColWidth}"><b>Explanation</b></td>
|
|
315 | 315 |
<td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyExplanation"/></td> |
316 | 316 |
</tr> |
317 | 317 |
</xsl:for-each> |
... | ... | |
406 | 406 |
<xsl:param name="attributeindex"/> |
407 | 407 |
<table width="100%"> |
408 | 408 |
<xsl:for-each select="nominal"> |
409 |
<tr><td colspan="2" align="center"><br>Nominal</br></td></tr>
|
|
409 |
<tr><td colspan="2" align="center"><b>Nominal</b></td></tr>
|
|
410 | 410 |
<xsl:call-template name="attributenonnumericdomain"> |
411 | 411 |
<xsl:with-param name="docid" select="$docid"/> |
412 | 412 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
... | ... | |
415 | 415 |
</xsl:call-template> |
416 | 416 |
</xsl:for-each> |
417 | 417 |
<xsl:for-each select="ordinal"> |
418 |
<tr><td colspan="2" align="center"><br>Ordinal</br></td></tr>
|
|
418 |
<tr><td colspan="2" align="center"><b>Ordinal</b></td></tr>
|
|
419 | 419 |
<xsl:call-template name="attributenonnumericdomain"> |
420 | 420 |
<xsl:with-param name="docid" select="$docid"/> |
421 | 421 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
... | ... | |
424 | 424 |
</xsl:call-template> |
425 | 425 |
</xsl:for-each> |
426 | 426 |
<xsl:for-each select="interval"> |
427 |
<tr><td colspan="2" align="center"><br>Interval</br></td></tr>
|
|
427 |
<tr><td colspan="2" align="center"><b>Interval</b></td></tr>
|
|
428 | 428 |
<xsl:call-template name="intervalratio"> |
429 | 429 |
</xsl:call-template> |
430 | 430 |
</xsl:for-each> |
431 | 431 |
<xsl:for-each select="ratio"> |
432 |
<tr><td colspan="2" align="center"><br>Ratio</br></td></tr>
|
|
432 |
<tr><td colspan="2" align="center"><b>Ratio</b></td></tr>
|
|
433 | 433 |
<xsl:call-template name="intervalratio"> |
434 | 434 |
</xsl:call-template> |
435 | 435 |
</xsl:for-each> |
436 | 436 |
<xsl:for-each select="datetime"> |
437 |
<tr><td colspan="2" align="center"><br>Time</br></td></tr>
|
|
437 |
<tr><td colspan="2" align="center"><b>Time</b></td></tr>
|
|
438 | 438 |
<xsl:call-template name="datetime"> |
439 | 439 |
</xsl:call-template> |
440 | 440 |
</xsl:for-each> |
... | ... | |
481 | 481 |
it will be displayed inline otherwith will be show a link--> |
482 | 482 |
<xsl:choose> |
483 | 483 |
<xsl:when test="count(textDomain)=1 and not(enumeratedDomain)"> |
484 |
<tr><td width="{$firstColWidth}">Definition</td>
|
|
484 |
<tr><td width="{$firstColWidth}"><b>Definition</b></td>
|
|
485 | 485 |
<td width="{$secondColWidth}"><xsl:value-of select="textDomain/definition"/> |
486 | 486 |
</td> |
487 | 487 |
</tr> |
488 |
<xsl:for-each select="textDomain/parttern"> |
|
489 |
<tr><td width="{$firstColWidth}"><b>Pattern</b></td> |
|
490 |
<td width="{$secondColWidth}"><xsl:value-of select="."/> |
|
491 |
</td> |
|
492 |
</tr> |
|
493 |
</xsl:for-each> |
|
494 |
<xsl:for-each select="textDomain/source"> |
|
495 |
<tr><td width="{$firstColWidth}"><b>Source</b></td> |
|
496 |
<td width="{$secondColWidth}"><xsl:value-of select="."/> |
|
497 |
</td> |
|
498 |
</tr> |
|
499 |
</xsl:for-each> |
|
488 | 500 |
</xsl:when> |
489 | 501 |
<xsl:otherwise> |
490 | 502 |
<tr><td colspan="2" align="center"> |
491 | 503 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&displaymodule=attributedomain&entitytype=<xsl:value-of select="$entitytype"/>&entityindex=<xsl:value-of select="$entityindex"/>&attributeindex=<xsl:value-of select="$attributeindex"/></xsl:attribute> |
492 |
<br>Domain Info</br></a>
|
|
504 |
<b>Domain Info</b></a>
|
|
493 | 505 |
</td></tr> |
494 | 506 |
</xsl:otherwise> |
495 | 507 |
</xsl:choose> |
... | ... | |
497 | 509 |
|
498 | 510 |
<xsl:template name="intervalratio"> |
499 | 511 |
<xsl:if test="unit/standardUnit"> |
500 |
<tr><td width="{$firstColWidth}"><br>Standard Unit</br></td>
|
|
512 |
<tr><td width="{$firstColWidth}"><b>Standard Unit</b></td>
|
|
501 | 513 |
<td width="{$secondColWidth}"><xsl:value-of select="unit/standardUnit"/> |
502 | 514 |
</td> |
503 | 515 |
</tr> |
504 | 516 |
</xsl:if> |
505 | 517 |
<xsl:if test="unit/customUnit"> |
506 |
<tr><td width="{$firstColWidth}"><br>Custom Unit</br></td>
|
|
518 |
<tr><td width="{$firstColWidth}"><b>Custom Unit</b></td>
|
|
507 | 519 |
<td width="{$secondColWidth}"><xsl:value-of select="unit/customUnit"/> |
508 | 520 |
</td> |
509 | 521 |
</tr> |
510 | 522 |
</xsl:if> |
511 | 523 |
<xsl:for-each select="precision"> |
512 |
<tr><td width="{$firstColWidth}"><br>Precision</br></td>
|
|
524 |
<tr><td width="{$firstColWidth}"><b>Precision</b></td>
|
|
513 | 525 |
<td width="{$secondColWidth}"><xsl:value-of select="."/> |
514 | 526 |
</td> |
515 | 527 |
</tr> |
516 | 528 |
</xsl:for-each> |
517 | 529 |
<xsl:for-each select="numericDomain"> |
518 |
<tr><td width="{$firstColWidth}"><br>Numeric</br></td>
|
|
530 |
<tr><td width="{$firstColWidth}"><b>Numeric</b></td>
|
|
519 | 531 |
<td width="{$secondColWidth}"> |
520 | 532 |
<xsl:call-template name="numericDomain"/> |
521 | 533 |
</td> |
... | ... | |
580 | 592 |
</xsl:template> |
581 | 593 |
|
582 | 594 |
<xsl:template name="datetime"> |
583 |
<tr><td width="{$firstColWidth}"><br>String Format</br></td>
|
|
595 |
<tr><td width="{$firstColWidth}"><b>String Format</b></td>
|
|
584 | 596 |
<td width="{$secondColWidth}"> |
585 | 597 |
<xsl:value-of select="formatString"/> |
586 | 598 |
</td> |
587 | 599 |
</tr> |
588 |
<tr><td width="{$firstColWidth}"><br>Precision</br></td>
|
|
600 |
<tr><td width="{$firstColWidth}"><b>Precision</b></td>
|
|
589 | 601 |
<td width="{$secondColWidth}"> |
590 | 602 |
<xsl:value-of select="dateTimePrecision"/> |
591 | 603 |
</td> |
592 | 604 |
</tr> |
593 |
<tr><td width="{$firstColWidth}"><br>Domain</br></td>
|
|
605 |
<tr><td width="{$firstColWidth}"><b>Domain</b></td>
|
|
594 | 606 |
<td width="{$secondColWidth}"> |
595 | 607 |
<xsl:call-template name="timedomain"/> |
596 | 608 |
</td> |
... | ... | |
651 | 663 |
<xsl:param name="entityindex"/> |
652 | 664 |
<xsl:param name="attributeindex"/> |
653 | 665 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&displaymodule=attributecoverage&entitytype=<xsl:value-of select="$entitytype"/>&entityindex=<xsl:value-of select="$entityindex"/>&attributeindex=<xsl:value-of select="$attributeindex"/></xsl:attribute> |
654 |
<br>Coverage Info</br></a>
|
|
666 |
<b>Coverage Info</b></a>
|
|
655 | 667 |
</xsl:template> |
656 | 668 |
|
657 | 669 |
<xsl:template name="attributemethod"> |
... | ... | |
660 | 672 |
<xsl:param name="entityindex"/> |
661 | 673 |
<xsl:param name="attributeindex"/> |
662 | 674 |
<a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&displaymodule=attributemethod&entitytype=<xsl:value-of select="$entitytype"/>&entityindex=<xsl:value-of select="$entityindex"/>&attributeindex=<xsl:value-of select="$attributeindex"/></xsl:attribute> |
663 |
<br>Coverage Info</br></a>
|
|
675 |
<b>Coverage Info</b></a>
|
|
664 | 676 |
</xsl:template> |
665 | 677 |
|
666 | 678 |
</xsl:stylesheet> |
Also available in: Unified diff
Revised the templates.