72 |
|
|
73 |
my $out = $self->output; |
my $out = $self->output; |
74 |
|
|
75 |
$out->start_section (id => 'document-errors', title => 'Document Errors'); |
$out->start_section (role => 'structure-errors'); |
76 |
$out->html ('<p>Not supported for this kind of contents.'); |
$out->start_error_list (role => 'structure-errors'); |
77 |
## TODO: class="???" |
$self->result->layer_applicable ('structure'); |
78 |
|
|
79 |
|
$self->result->add_error (input => $self->input, |
80 |
|
level => 'u', |
81 |
|
layer => 'structure', |
82 |
|
type => 'media type not supported:structure', |
83 |
|
text => $self->input->{media_type}); |
84 |
|
|
85 |
|
$out->end_error_list (role => 'structure-errors'); |
86 |
$out->end_section; |
$out->end_section; |
87 |
|
|
88 |
|
$self->result->layer_uncertain ('semantics'); |
89 |
} # generate_structure_error_section |
} # generate_structure_error_section |
90 |
|
|
91 |
sub source_charset ($) { |
sub source_charset ($) { |
127 |
|
|
128 |
my $out = $self->output; |
my $out = $self->output; |
129 |
my $i = 1; |
my $i = 1; |
130 |
$out->start_section (id => 'source-string', title => 'Document Source', |
$out->start_section (role => 'source'); |
|
short_title => 'Source'); |
|
131 |
$out->start_tag ('ol', lang => ''); |
$out->start_tag ('ol', lang => ''); |
132 |
|
|
133 |
if (length $$s) { |
if (length $$s) { |
145 |
} |
} |
146 |
$out->end_tag ('ol'); |
$out->end_tag ('ol'); |
147 |
$out->add_source_to_parse_error_list ('parse-errors-list'); |
$out->add_source_to_parse_error_list ('parse-errors-list'); |
148 |
$out->end_section |
$out->end_section; |
149 |
} # generate_source_string_section |
} # generate_source_string_section |
150 |
|
|
151 |
sub generate_additional_sections ($) { |
sub generate_additional_sections ($) { |