Bible-OBML
view release on metacpan or search on metacpan
lib/Bible/OBML.pm view on Meta::CPAN
$obml =~ s|\{|<crossref>|g;
$obml =~ s|\}|</crossref>|g;
$obml =~ s|\[|<footnote>|g;
$obml =~ s|\]|</footnote>|g;
return "<obml>$obml</obml>";
}
sub _accessor ( $self, $input = undef ) {
my $want = ( split( '::', ( caller(1) )[3] ) )[-1];
if ($input) {
if ( ref $input ) {
my $data_refs_ocd;
$data_refs_ocd = sub ($node) {
if (
$node->{tag} and $node->{children} and
( $node->{tag} eq 'crossref' or $node->{tag} eq 'footnote' )
) {
for ( grep { $_->{text} } @{ $node->{children} } ) {
( run in 0.960 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )