Hey guys,
Between AxKit 1.6 and 1.6.1, there seems to have been a minor change in
AxKit::Apache, namely the addition of the pnotes() function. This is
causing some unexpected behaviors for me...
I'm using axkit: uris in my XSL files, with uris like this:
axkit:/foo/bar.xml?key=value
I wanted the XML file to be transformed slightly differently depending
on the query string. While I was working on my development box (with
AxKit 1.6), this was working -- but when I started work on my production
box, and installed (unknowingly) 1.6.1 from CPAN, things started
failing....
I first traced that somewhere along the line the following no longer worked:
my $apr = Apache::Request->instance($r);
warn "XXX key => " . $apr->param('key'); # this was turning up empty
So then I traced and traced, and found that the moment where that
parameter becomes unavailable is in run_axkit_engine():
(lines with a + are mine)
# reconsecrate Apache request object (& STDOUT) into our own class
+ my $apr = Apache::Request->instance($r);
+ warn "XXX - in run_axkit_engine (before tie) -> " . $apr->param('key');
bless $r, 'AxKit::Apache';
tie *STDOUT, 'AxKit::Apache', $r;
+ my $apr = Apache::Request->instance($r);
+ warn "XXX - in run_axkit_engine (after tie) -> " . $apr->param('key');
Looking into this further, if you comment out AxKit::Apache::pnotes(),
things start working again!
So now I've commented out AxKit::Apache::pnotes() -- but is this going
to break something? I'm not quite sure why it's there in the first place...
--d
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]