I don't know if this is AxKit related, but since i only get it in axkit under special circumstances, I gotta start here. My setup is AxKit 1.60 (1.61 &1.62 wouldn't install under RedHat 9 on my machine) and using LibXSLT as the renderer.

What it looks like is that when AxKit does the a Stylesheet sub-requests the transhandler doesn't get called properly. I.e. i'm using a sub handler ($$) prototype, which means a call to handler should pass ($pkg,$r) instead of just($r). When AxKit hits the <xsl:include>, it does a subrequest but does not respect the ($$) prototype. Here's my testbed:

package TransTest;

use Apache::Constants qw(:common);

use strict;

sub new {bless{},shift};

sub handler ($$) {
  my $self       = shift;
  my $r          = shift;
  print STDERR "--- self: $self\n";
  print STDERR "    r: $r\n";
  $r ||= $self; # the ($$) prototype wasn't respected
  print STDERR "    uri: ",$r->uri,"\n";

  return DECLINED;
}
1;

----------------------
Output in Error log:
--- self: TransTest
    r: Apache=SCALAR(0x87bbce4)
    uri: /docs/index.xml
--- self: TransTest
    r: Apache=SCALAR(0x88e7614)
    uri: /xsl/core/cookie.xsl
--- self: Apache=SCALAR(0x88e77dc)
    r:
    uri: /xsl/core/chrome.xsl
--- self: Apache=SCALAR(0x89069dc)
    r:
    uri: /xsl/core/chrome.xml


I can work around this with my hack of checking whether $r is defined, but this looks like a bug to me.


thanks,
arne


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to