<% $t->{'section'}{showtag} = 0; $t->{'title'}{testcode} = sub { my ($node, $t) = @_; if ($node->getParentNode->getName eq 'section') { $t->{pre} = '

'; $t->{post} = '

'; } elsif ($node->getParentNode->getName eq 'subsection') { $t->{pre} = '

'; $t->{post} = '

'; } else { $t->{showtag} = 1; } return 1; }; $t->{'ulink'}{testcode} = sub { my ($node, $t) = @_; my $url = $node->getAttribute('url'); $t->{pre} = ""; $t->{post} = ""; return 1; }; $t->{'para'}{pre} = '

'; $t->{'para'}{post} = '

'; $t->{'emphasis'}{pre} = ''; $t->{'emphasis'}{post} = ''; sub spacer { my ($width, $height, $align) = @_; return ""; } %> <%= findvalue('/webpage/head/title/text()') %>
AxKit.org [logo curtesy of http://xml.com]
--sep--
Start Navigation
<%= spacer(8,20) %> <%= apply_templates('document("/sidebar_new.xml")') %> <%= spacer(8,20) %>
End Navigation
<%= spacer(10,1) %>
http://axkit.org/ :: <% { my $uri = $r->uri; $uri =~ s/^\///; my ($file) = $uri =~ /([^\/]+)$/; $uri =~ s/\Q$file\E$//; my $local = ''; foreach my $part (split('/', $uri)) { $local .= "/$part/index.xml"; my $title = findvalue("document('$local')//title[1]/text()"); if ($title eq 'Index') { print $part, " :: "; } else { print "", , " :: "; } $local =~ s/\/index\.xml$//; } if ($file ne 'index.xml') { my $location = "/$file"; $location = "/$uri$file" if $uri; print "", findvalue("document('$location')//title[1]/text()"), " :: "; } } %>
<%= spacer(20,1) %>
<% if ($r->uri eq '/index.xml') { %> <% } %>
<%= apply_templates('/webpage/body/*') %> <%= apply_templates('document("news.xml")') %>
<%= spacer(20,1) %>
These pages are copyright © 2000 AxKit.com Ltd
<%= spacer(10,1) %>