| 571 |
<div id="result-summary" class="section"> |
<div id="result-summary" class="section"> |
| 572 |
<h2>Result</h2>]; |
<h2>Result</h2>]; |
| 573 |
|
|
| 574 |
if ($result->{unsupported}) { |
if ($result->{unsupported} and $result->{conforming_max}) { |
| 575 |
print STDOUT qq[<p class=uncertain id=result-para>The conformance |
print STDOUT qq[<p class=uncertain id=result-para>The conformance |
| 576 |
checker cannot decide whether the document is conforming or |
checker cannot decide whether the document is conforming or |
| 577 |
not, since the document contains one or more unsupported |
not, since the document contains one or more unsupported |
| 578 |
features.</p>]; |
features. The document might or might not be conforming.</p>]; |
| 579 |
} elsif ($result->{conforming_min}) { |
} elsif ($result->{conforming_min}) { |
| 580 |
print STDOUT qq[<p class=PASS id=result-para>No conformance-error is |
print STDOUT qq[<p class=PASS id=result-para>No conformance-error is |
| 581 |
found in this document.</p>]; |
found in this document.</p>]; |
| 602 |
my $score_min = 0; |
my $score_min = 0; |
| 603 |
my $score_max = 0; |
my $score_max = 0; |
| 604 |
my $score_base = 20; |
my $score_base = 20; |
| 605 |
|
my $score_unit = $score_base / 100; |
| 606 |
for ( |
for ( |
| 607 |
[Transfer => 'transfer', ''], |
[Transfer => 'transfer', ''], |
| 608 |
[Character => 'char', ''], |
[Character => 'char', ''], |
| 612 |
$must_error += ($result->{$_->[1]}->{must} += 0); |
$must_error += ($result->{$_->[1]}->{must} += 0); |
| 613 |
$should_error += ($result->{$_->[1]}->{should} += 0); |
$should_error += ($result->{$_->[1]}->{should} += 0); |
| 614 |
$warning += ($result->{$_->[1]}->{warning} += 0); |
$warning += ($result->{$_->[1]}->{warning} += 0); |
| 615 |
$score_min += ($result->{$_->[1]}->{score_min} += $score_base); |
$score_min += (($result->{$_->[1]}->{score_min} *= $score_unit) += $score_base); |
| 616 |
$score_max += ($result->{$_->[1]}->{score_max} += $score_base); |
$score_max += (($result->{$_->[1]}->{score_max} *= $score_unit) += $score_base); |
| 617 |
|
|
| 618 |
my $uncertain = $result->{$_->[1]}->{unsupported} ? '?' : ''; |
my $uncertain = $result->{$_->[1]}->{unsupported} ? '?' : ''; |
| 619 |
my $label = $_->[0]; |
my $label = $_->[0]; |
| 626 |
|
|
| 627 |
print STDOUT qq[<tr class="@{[$uncertain ? 'uncertain' : '']}"><th scope=row>$label</th><td class="@{[$result->{$_->[1]}->{must} ? 'FAIL' : '']}">$result->{$_->[1]}->{must}$uncertain</td><td class="@{[$result->{$_->[1]}->{should} ? 'SEE-RESULT' : '']}">$result->{$_->[1]}->{should}$uncertain</td><td>$result->{$_->[1]}->{warning}$uncertain</td>]; |
print STDOUT qq[<tr class="@{[$uncertain ? 'uncertain' : '']}"><th scope=row>$label</th><td class="@{[$result->{$_->[1]}->{must} ? 'FAIL' : '']}">$result->{$_->[1]}->{must}$uncertain</td><td class="@{[$result->{$_->[1]}->{should} ? 'SEE-RESULT' : '']}">$result->{$_->[1]}->{should}$uncertain</td><td>$result->{$_->[1]}->{warning}$uncertain</td>]; |
| 628 |
if ($uncertain) { |
if ($uncertain) { |
| 629 |
print qq[<td class="@{[$score_max < $score_base ? $score_min < $score_max ? 'FAIL' : 'SEE-RESULT' : '']}">−∞..$result->{$_->[1]}->{score_max}</td>]; |
print qq[<td class="@{[$result->{$_->[1]}->{must} ? 'FAIL' : $result->{$_->[1]}->{should} ? 'SEE-RESULT' : '']}">−∞..$result->{$_->[1]}->{score_max}</td>]; |
| 630 |
} elsif ($result->{$_->[1]}->{score_min} != $result->{$_->[1]}->{score_max}) { |
} elsif ($result->{$_->[1]}->{score_min} != $result->{$_->[1]}->{score_max}) { |
| 631 |
print qq[<td class="@{[$score_max < $score_base ? 'FAIL' : 'SEE-RESULT']}">$result->{$_->[1]}->{score_min}..$result->{$_->[1]}->{score_max} + $score_base</td></tr>]; |
print qq[<td class="@{[$result->{$_->[1]}->{must} ? 'FAIL' : 'SEE-RESULT']}">$result->{$_->[1]}->{score_min}..$result->{$_->[1]}->{score_max}</td></tr>]; |
| 632 |
} else { |
} else { |
| 633 |
print qq[<td class="@{[$score_max < $score_base ? 'FAIL' : '']}">$result->{$_->[1]}->{score_min}</td></tr>]; |
print qq[<td class="@{[$result->{$_->[1]}->{must} ? 'FAIL' : '']}">$result->{$_->[1]}->{score_min}</td></tr>]; |
| 634 |
} |
} |
| 635 |
} |
} |
| 636 |
|
|
| 639 |
print STDOUT qq[ |
print STDOUT qq[ |
| 640 |
<tr class=uncertain><th scope=row>Semantics</th><td>0?</td><td>0?</td><td>0?</td><td>−∞..$score_base</td></tr> |
<tr class=uncertain><th scope=row>Semantics</th><td>0?</td><td>0?</td><td>0?</td><td>−∞..$score_base</td></tr> |
| 641 |
</tbody> |
</tbody> |
| 642 |
<tfoot><tr class=uncertain><th scope=row>Total</th><td>$must_error?</td><td>$should_error?</td><td>$warning?</td><td><strong>−∞..$score_max</strong></td></tr></tfoot> |
<tfoot><tr class=uncertain><th scope=row>Total</th> |
| 643 |
|
<td class="@{[$must_error ? 'FAIL' : '']}">$must_error?</td> |
| 644 |
|
<td class="@{[$should_error ? 'SEE-RESULT' : '']}">$should_error?</td> |
| 645 |
|
<td>$warning?</td> |
| 646 |
|
<td class="@{[$must_error ? 'FAIL' : $should_error ? 'SEE-RESULT' : '']}"><strong>−∞..$score_max</strong></td></tr></tfoot> |
| 647 |
</table> |
</table> |
| 648 |
|
|
| 649 |
<p><strong>Important</strong>: This conformance checking service |
<p><strong>Important</strong>: This conformance checking service |