Revision 1712
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-attribute-2.0.0.xsl | ||
---|---|---|
329 | 329 |
<xsl:for-each select="missingValueCode"> |
330 | 330 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Code</b></td> |
331 | 331 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="code"/></td></tr> |
332 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Explanation</b></td>
|
|
332 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Expl</b></td> |
|
333 | 333 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="codeExplanation"/></td> |
334 | 334 |
</tr> |
335 | 335 |
</xsl:for-each> |
... | ... | |
352 | 352 |
<xsl:for-each select="missingValueCode"> |
353 | 353 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Code</b></td> |
354 | 354 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="code"/></td></tr> |
355 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Explanation</b></td>
|
|
355 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Expl</b></td> |
|
356 | 356 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="codeExplanation"/></td> |
357 | 357 |
</tr> |
358 | 358 |
</xsl:for-each> |
... | ... | |
450 | 450 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Value</b></td> |
451 | 451 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="attributeAccuracyValue"/></td> |
452 | 452 |
</tr> |
453 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Explanation</b></td>
|
|
453 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Expl</b></td> |
|
454 | 454 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="attributeAccuracyExplanation"/></td> |
455 | 455 |
</tr> |
456 | 456 |
</xsl:for-each> |
... | ... | |
476 | 476 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Value</b></td> |
477 | 477 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="attributeAccuracyValue"/></td> |
478 | 478 |
</tr> |
479 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Explanation</b></td>
|
|
479 |
<tr><td width="{$firstColWidth}" class="{$innerstripes}"><b>Expl</b></td> |
|
480 | 480 |
<td width="{$secondColWidth}" class="{$innerstripes}"><xsl:value-of select="attributeAccuracyExplanation"/></td> |
481 | 481 |
</tr> |
482 | 482 |
</xsl:for-each> |
... | ... | |
498 | 498 |
<!-- The tenth row for coverage--> |
499 | 499 |
<tr><th colspan="1" align="center" class="bordered">Coverage</th> |
500 | 500 |
<xsl:for-each select="attribute"> |
501 |
<xsl:variable name="index" select="position()"/> |
|
501 | 502 |
<xsl:variable name="stripes"> |
502 | 503 |
<xsl:choose> |
503 | 504 |
<xsl:when test="position() mod 2 = 0">coleven</xsl:when> |
... | ... | |
513 | 514 |
<xsl:when test="coverage!=''"> |
514 | 515 |
<td colspan="1" align="center" class="{$stripes}"> |
515 | 516 |
<xsl:for-each select="coverage"> |
516 |
<xsl:call-template name="attributecoverage"/> |
|
517 |
<xsl:call-template name="attributecoverage"> |
|
518 |
<xsl:with-param name="docid" select="$docid"/> |
|
519 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
520 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
521 |
<xsl:with-param name="attributeindex" select="$index"/> |
|
522 |
</xsl:call-template> |
|
517 | 523 |
</xsl:for-each> |
518 | 524 |
</td> |
519 | 525 |
</xsl:when> |
... | ... | |
530 | 536 |
<xsl:when test="coverage!=''"> |
531 | 537 |
<td colspan="1" align="center" class="{$stripes}"> |
532 | 538 |
<xsl:for-each select="coverage"> |
533 |
<xsl:call-template name="attributecoverage"/> |
|
539 |
<xsl:call-template name="attributecoverage"> |
|
540 |
<xsl:with-param name="docid" select="$docid"/> |
|
541 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
542 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
543 |
<xsl:with-param name="attributeindex" select="$index"/> |
|
544 |
</xsl:call-template> |
|
534 | 545 |
</xsl:for-each> |
535 | 546 |
</td> |
536 | 547 |
</xsl:when> |
... | ... | |
549 | 560 |
<!-- The eleventh row for method--> |
550 | 561 |
<tr><th colspan="1" align="center" class="bordered">Method</th> |
551 | 562 |
<xsl:for-each select="attribute"> |
563 |
<xsl:variable name="index" select="position()"/> |
|
552 | 564 |
<xsl:variable name="stripes"> |
553 | 565 |
<xsl:choose> |
554 | 566 |
<xsl:when test="position() mod 2 = 0">coleven</xsl:when> |
... | ... | |
564 | 576 |
<xsl:when test="method!=''"> |
565 | 577 |
<td colspan="1" align="center" class="{$stripes}"> |
566 | 578 |
<xsl:for-each select="method"> |
567 |
<xsl:call-template name="attributemethod"/> |
|
579 |
<xsl:call-template name="attributemethod"> |
|
580 |
<xsl:with-param name="docid" select="$docid"/> |
|
581 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
582 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
583 |
<xsl:with-param name="attributeindex" select="$index"/> |
|
584 |
</xsl:call-template> |
|
568 | 585 |
</xsl:for-each> |
569 | 586 |
</td> |
570 | 587 |
</xsl:when> |
... | ... | |
581 | 598 |
<xsl:when test="method!=''"> |
582 | 599 |
<td colspan="1" align="center" class="{$stripes}"> |
583 | 600 |
<xsl:for-each select="method"> |
584 |
<xsl:call-template name="attributemethod"/> |
|
601 |
<xsl:call-template name="attributemethod"> |
|
602 |
<xsl:with-param name="docid" select="$docid"/> |
|
603 |
<xsl:with-param name="entitytype" select="$entitytype"/> |
|
604 |
<xsl:with-param name="entityindex" select="$entityindex"/> |
|
605 |
<xsl:with-param name="attributeindex" select="$index"/> |
|
606 |
</xsl:call-template> |
|
585 | 607 |
</xsl:for-each> |
586 | 608 |
</td> |
587 | 609 |
</xsl:when> |
... | ... | |
869 | 891 |
<xsl:param name="entityindex"/> |
870 | 892 |
<xsl:param name="attributeindex"/> |
871 | 893 |
<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> |
872 |
<b>Coverage Info</b></a>
|
|
894 |
<b>Method Info</b></a>
|
|
873 | 895 |
</xsl:template> |
874 | 896 |
|
875 | 897 |
</xsl:stylesheet> |
Also available in: Unified diff
Fixed two bugs in coverage and method.