I wrote a post to axkit-users talking about AxKit2 (see my previous entry on the httpd). Here's how setting up a transformation is looking:
sub hook_response {
my $self = shift;
my $input = shift;
my $s1 = "/path/to/xslt1.xsl";
my $s2 = "/path/to/xslt2.xsl";
my $out = $proc->transform(
XSP => XSLT($s1) => XSLT($s2)
);
return OK, $out;
}
(This is slightly updated from my axkit-users post - it does wonders posting to the list to realise how you could simplify things!)