221 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
222 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
223 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
224 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
225 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
226 |
|
} |
227 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
228 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
229 |
} |
} |
261 |
unshift @nodes, @$sib; |
unshift @nodes, @$sib; |
262 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
263 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
264 |
# |
$todo->{flag}->{has_descendant}->{significant} = 1; |
265 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
266 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
267 |
} |
} |
300 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
301 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
302 |
$s .= $node->data; |
$s .= $node->data; |
303 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
304 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
305 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
306 |
} |
} |
347 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
348 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
349 |
$s .= $node->data; |
$s .= $node->data; |
350 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
351 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
352 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
353 |
} |
} |
389 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
390 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
391 |
$s .= $node->data; |
$s .= $node->data; |
392 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
393 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
394 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
395 |
} |
} |
522 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
523 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
524 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
525 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
526 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
527 |
|
} |
528 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
529 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
530 |
} |
} |
640 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
641 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
642 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
643 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
644 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
645 |
|
} |
646 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
647 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
648 |
} |
} |
770 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
771 |
$self->{onerror}->(node => $node, type => 'character not allowed') |
$self->{onerror}->(node => $node, type => 'character not allowed') |
772 |
if $src_attr; |
if $src_attr; |
773 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
774 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
775 |
|
} |
776 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
777 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
778 |
} |
} |
806 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
807 |
$self->{onerror}->(node => $node, type => 'character not allowed') |
$self->{onerror}->(node => $node, type => 'character not allowed') |
808 |
if $src_attr; |
if $src_attr; |
809 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
810 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
811 |
|
} |
812 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
813 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
814 |
} |
} |
853 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
854 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
855 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
856 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
857 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
858 |
|
} |
859 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
860 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
861 |
} |
} |
897 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
898 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
899 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
900 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
901 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
902 |
|
} |
903 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
904 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
905 |
} |
} |
937 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
938 |
$self->{onerror}->(node => $node, type => 'character not allowed') |
$self->{onerror}->(node => $node, type => 'character not allowed') |
939 |
if $src_attr; |
if $src_attr; |
940 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
941 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
942 |
|
} |
943 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
944 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
945 |
} |
} |
972 |
$s .= $node->data; |
$s .= $node->data; |
973 |
$self->{onerror}->(node => $node, type => 'character not allowed') |
$self->{onerror}->(node => $node, type => 'character not allowed') |
974 |
if $src_attr; |
if $src_attr; |
975 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
976 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
977 |
|
} |
978 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
979 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
980 |
} |
} |
1032 |
unshift @nodes, @$sib; |
unshift @nodes, @$sib; |
1033 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
1034 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1035 |
# |
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1036 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1037 |
|
} |
1038 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1039 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1040 |
} |
} |
1084 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1085 |
## MUST be a string that is a human-readable name for |
## MUST be a string that is a human-readable name for |
1086 |
## the generating agent |
## the generating agent |
1087 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1088 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1089 |
|
} |
1090 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1091 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1092 |
} |
} |
1118 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
1119 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1120 |
$s .= $node->data; |
$s .= $node->data; |
1121 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1122 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1123 |
|
} |
1124 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1125 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1126 |
} |
} |
1163 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
1164 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1165 |
$s .= $node->data; |
$s .= $node->data; |
1166 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1167 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1168 |
|
} |
1169 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1170 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1171 |
} |
} |
1274 |
unshift @nodes, @$sib; |
unshift @nodes, @$sib; |
1275 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
1276 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1277 |
# |
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1278 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1279 |
|
} |
1280 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1281 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1282 |
} |
} |
1308 |
push @$new_todos, @$ch; |
push @$new_todos, @$ch; |
1309 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1310 |
$s .= $node->data; |
$s .= $node->data; |
1311 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1312 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1313 |
|
} |
1314 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1315 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1316 |
} |
} |
1408 |
} elsif ($nt == 3 or $nt == 4) { |
} elsif ($nt == 3 or $nt == 4) { |
1409 |
## TODO: Are white spaces allowed? |
## TODO: Are white spaces allowed? |
1410 |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
$self->{onerror}->(node => $node, type => 'character not allowed'); |
1411 |
|
if ($node->data =~ /[^\x09-\x0D\x20]/) { |
1412 |
|
$todo->{flag}->{has_descendant}->{significant} = 1; |
1413 |
|
} |
1414 |
} elsif ($nt == 5) { |
} elsif ($nt == 5) { |
1415 |
unshift @nodes, @{$node->child_nodes}; |
unshift @nodes, @{$node->child_nodes}; |
1416 |
} |
} |