Added: lib/Apache/AxKit/Language Petal.pm
Coolness!
if (my $dom = $r->pnotes('dom_tree')) {
$xmlstring = $dom->toString;
}
my $stylesheet = Petal->new(file => ugh);
my $hash = XMLin($xmlstring, forcearray => 1);
$r->print( $stylesheet->process($hash) );
Urgh. Has anyone tried to talk the Petal guys into also accepting other formats than XML::Simple? I find having to stringify scary :)
--robin the axkitten