Francesc Guasch wrote:
Tom Schindl wrote:

Francesc Guasch wrote:


Hi. I want to use the Axkit and Mason. Mason runs fine, but I got this error when I try to access to an AxKit page:



Hi Tom, thank you for answering me.

Can you show me the line 282 in your Provider.pm? On my system the error at this position doesn't make any sense.

 my @xml_stylesheet = @{$bits->[0]};

The context :

    if ($@) {
        my $strref = $self->get_strref();
        AxKit::Debug(4, "calling xs_get_styles_str()");
        $bits = xs_get_styles_str($self->apache_request, $$strref);
    }

Ok. Now we now that the "error" happens in XS-Code the line of interest is the following:


------------------8<------------------
ptr = SvPV(xmlstring, len);

...

if (!ptr || len < 4) {
  XSRETURN_UNDEF;
}
------------------8<------------------

This simply means that you don't pass in any meaningful xml-string. Still what really bothers me here is that AxKit doesn't croak before returning undef.

if ($@) {
  AxKit::Debug(4, "Trying to get xml as string ref");
  my $strref = $self->get_strref();
  AxKit::Debug(4, "calling xs_get_styles_str()");
  AxKit::Debug(4, "XML-File 2 parse: " . $$strref);
  $bits = xs_get_styles_str($self->apache_request, $$strref);
  AxKit::Debug(4, "Retrieved styles; " . $bits );
}

I have not worked with filters my self so I not of much help for you from this point on.

Tom


my @xml_stylesheet = @{$bits->[0]}; my %attribs = @{$bits->[2]}; my $element = $bits->[1];




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



Reply via email to