181 |
if ($self->{section_rank} == 2 or length $opt{parent_id}) { |
if ($self->{section_rank} == 2 or length $opt{parent_id}) { |
182 |
my $st = $opt{short_title} || $opt{title}; |
my $st = $opt{short_title} || $opt{title}; |
183 |
push @{$self->{nav}}, |
push @{$self->{nav}}, |
184 |
[$id => $st => $opt{text}]; |
[$id => $st => $opt{text}] if $self->{section_rank} == 2; |
185 |
|
|
186 |
$self->start_tag ('script'); |
$self->start_tag ('script'); |
187 |
$self->html (qq[ addSectionLink ('$id', ']); |
$self->html (qq[ addSectionLink ('$id', ']); |
433 |
my ($self, $type, %opt) = @_; |
my ($self, $type, %opt) = @_; |
434 |
my $node = $opt{node}; |
my $node = $opt{node}; |
435 |
|
|
436 |
my @arg; |
if (defined $Msg->{$type}) { |
437 |
{ |
my $msg = $Msg->{$type}->[1]; |
438 |
if (defined $Msg->{$type}) { |
if ($msg =~ /<var>/) { |
439 |
my $msg = $Msg->{$type}->[1]; |
$msg =~ s{<var>{\@([A-Za-z0-9:_.-]+)}</var>}{ |
440 |
if ($msg =~ /<var>/) { |
UNIVERSAL::can ($node, 'get_attribute_ns') |
441 |
$msg =~ s{<var>\$([0-9]+)</var>}{ |
? $htescape->($node->get_attribute_ns (undef, $1)) : '' |
442 |
defined $arg[$1] ? $htescape->($arg[$1]) : '(undef)'; |
}ge; |
443 |
}ge; |
$msg =~ s{<var>{\@}</var>}{ |
444 |
$msg =~ s{<var>{\@([A-Za-z0-9:_.-]+)}</var>}{ |
UNIVERSAL::can ($node, 'value') ? $htescape->($node->value) : '' |
445 |
UNIVERSAL::can ($node, 'get_attribute_ns') |
}ge; |
446 |
? $htescape->($node->get_attribute_ns (undef, $1)) : '' |
$msg =~ s{<var>{text}</var>}{ |
447 |
}ge; |
defined $opt{text} ? $htescape->($opt{text}) : '' |
448 |
$msg =~ s{<var>{\@}</var>}{ |
}ge; |
449 |
UNIVERSAL::can ($node, 'value') ? $htescape->($node->value) : '' |
$msg =~ s{<var>{value}</var>}{ |
450 |
}ge; |
defined $opt{value} ? $htescape->($opt{value}) : '' |
451 |
$msg =~ s{<var>{text}</var>}{ |
}ge; |
452 |
defined $opt{text} ? $htescape->($opt{text}) : '' |
$msg =~ s{<var>{local-name}</var>}{ |
453 |
}ge; |
UNIVERSAL::can ($node, 'manakai_local_name') |
|
$msg =~ s{<var>{value}</var>}{ |
|
|
defined $opt{value} ? $htescape->($opt{value}) : '' |
|
|
}ge; |
|
|
$msg =~ s{<var>{local-name}</var>}{ |
|
|
UNIVERSAL::can ($node, 'manakai_local_name') |
|
454 |
? $htescape->($node->manakai_local_name) : '' |
? $htescape->($node->manakai_local_name) : '' |
455 |
}ge; |
}ge; |
456 |
$msg =~ s{<var>{element-local-name}</var>}{ |
$msg =~ s{<var>{element-local-name}</var>}{ |
457 |
(UNIVERSAL::can ($node, 'owner_element') and |
(UNIVERSAL::can ($node, 'owner_element') and $node->owner_element) |
|
$node->owner_element) |
|
458 |
? $htescape->($node->owner_element->manakai_local_name) : '' |
? $htescape->($node->owner_element->manakai_local_name) : '' |
459 |
}ge; |
}ge; |
|
} |
|
|
$self->html ($msg); |
|
|
return; |
|
|
} elsif ($type =~ s/:([^:]*)$//) { |
|
|
unshift @arg, $1; |
|
|
redo; |
|
460 |
} |
} |
461 |
|
$self->html ($msg); |
462 |
|
} else { |
463 |
|
$self->text ($type); |
464 |
} |
} |
|
$self->text ($type); |
|
465 |
} # nl_text |
} # nl_text |
466 |
|
|
467 |
} |
} |
543 |
$out->select ([ |
$out->select ([ |
544 |
{value => '', label => 'As specified'}, |
{value => '', label => 'As specified'}, |
545 |
{value => 'application/atom+xml'}, |
{value => 'application/atom+xml'}, |
546 |
|
{value => 'text/cache-manifest'}, |
547 |
|
{value => 'text/css'}, |
548 |
|
{value => 'text/x-h2h'}, |
549 |
|
{value => 'text/html'}, |
550 |
|
{value => 'text/x-webidl'}, |
551 |
{value => 'application/xhtml+xml'}, |
{value => 'application/xhtml+xml'}, |
552 |
{value => 'application/xml'}, |
{value => 'application/xml'}, |
|
{value => 'text/html'}, |
|
553 |
{value => 'text/xml'}, |
{value => 'text/xml'}, |
|
{value => 'text/css'}, |
|
|
{value => 'text/cache-manifest'}, |
|
|
{value => 'text/x-webidl'}, |
|
554 |
], name => 'i', selected => scalar $cgi->get_parameter ('i')); |
], name => 'i', selected => scalar $cgi->get_parameter ('i')); |
555 |
$out->end_tag ('label'); |
$out->end_tag ('label'); |
556 |
|
|