So,

I setup a provider, that returned XML, in a scalar reference.

I then tried to access this provider from within XSLT using an axkit provider.
and I would get:


[Error] input callback died: axkit:/attachments.xml?filename=03.jpg internal request didn't store anything in dom_tree or xml_string at [.../]Language/LibXSLT.pm


So, I added some debugging in Axkit.pm::get_axkit_uri() and I found that


if ($@) {
eval {
my $pstr = $provider->get_strref;
$str = $$pstr;
print STDERR "Debug: $str\n";
$r->pnotes('xml_string', $str);
print STDERR "Debug: ", $r->pnotes('xml_string'), "\n";
print STDERR "Debug: ", ref($r), "\n"
$result_code = OK;


                };
                if ($@) {
                    $result_code = 'provider_declined';
                }
            }

even though, my scalar reference is being returned, and it has the xml snippet in it,
it's not being stored in the pnotes, as that comes out empty, when trying to read it
back. I'm not sure what the issue is. $r is an Apache::SubRequest object,
so I guess it's possible that that has something to do with it.


I didn't have time to do further testing, but I wanted to point this out
in case it rang any bells with anyone.

I found a work around, which was to add an xslt stylesheet to the pipeline
on top of my provider, this caused things to work, not sure why.


--fess





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



Reply via email to