575 |
$msg =~ s{<var>{\@}</var>}{ |
$msg =~ s{<var>{\@}</var>}{ |
576 |
UNIVERSAL::can ($node, 'value') ? htescape ($node->value) : '' |
UNIVERSAL::can ($node, 'value') ? htescape ($node->value) : '' |
577 |
}ge; |
}ge; |
578 |
|
$msg =~ s{<var>{local-name}</var>}{ |
579 |
|
UNIVERSAL::can ($node, 'manakai_local_name') |
580 |
|
? htescape ($node->manakai_local_name) : '' |
581 |
|
}ge; |
582 |
|
$msg =~ s{<var>{element-local-name}</var>}{ |
583 |
|
(UNIVERSAL::can ($node, 'owner_element') and |
584 |
|
$node->owner_element) |
585 |
|
? htescape ($node->owner_element->manakai_local_name) |
586 |
|
: '' |
587 |
|
}ge; |
588 |
return ($type, $Msg->{$type}->[0], $msg); |
return ($type, $Msg->{$type}->[0], $msg); |
589 |
} elsif ($type =~ s/:([^:]*)$//) { |
} elsif ($type =~ s/:([^:]*)$//) { |
590 |
unshift @arg, $1; |
unshift @arg, $1; |