I have a problem when trying to use axkit:/ based uris in XSL stylesheets... This explanation is going to be kinda vague, because I'm really not sure what on earth is going on.
Basically what I'm trying to do is this: I have a custom provider which generates XML "component". I believe it's working, because when I access the uri, the correct raw XML is displayed in the browser.
What I'm trying to do is to include this XML in another page via
<xsl:apply-templates
select="document('axkit://path/to/custom/provider/uri')" />Now this is where it gets hairy. When I do this to a regular XML based file (i.e. stock provider that comes with AxKit), it works. When I try to do this with my custom provider, I get:
input call back died: Died at /usr/local/lib /perl5/site_perl/5.8.0/i686-linux/Apache/AxKit/Language/LibXSLT.pm line 129.
Which is really weird, because I can't see how on earth the codepath leads there. Here's the error_log output (lines with XXX are mine)
===
## This is where the LibXSLT matches the axkit uri, and starts processing it
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] LibXSLT match_uri: axkit://components/bbs/thread
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] LibXSLT open_content_uri: axkit://components/bbs/thread
XXX - open content uri for (axkit://components/bbs/thread) at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Apache/AxKit/Language/LibXSLT.pm line 169.
[Sat Mar 1 15:40:24 2003] [warn] XXX - in get_axkit_uri(axkit://components/bbs/thread)
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] get_axkit_uri(axkit://components/bbs/thread)
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] Content Provider Override: NikkiSite::Provider::BBS::Thread
[Sat Mar 1 15:40:24 2003] [warn] XXX - content provider is : NikkiSite::Provider::BBS::Thread
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] media: screen, preferred style: #default
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] Cache: key = 08a32f8c0e06315071c2632194337edc
[Sat Mar 1 15:40:24 2003] [warn] XXX - get_styles called for NikkiSite::Provider::BBS::Thread
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] getting styles and external entities from the XML
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] styles not cached - calling $provider->get_styles()
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] using XS get_styles (libxml2)
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] calling xs_get_styles_str()
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] xs_get_styles returned: , , thread
[Sat Mar 1 15:40:24 2003] [warn] [client 127.0.0.1] [AxKit] Calling GetMatchingProcessors with (screen, , , , thread)
XXX - no styles defined for '/components/test.xml.'. throwing exception at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Apache/AxKit/Provider.pm line 204
[Sat Mar 1 15:40:24 2003] [warn] XXX - check OK or Retval
[Sat Mar 1 15:40:24 2003] [warn] XXX - maybe set content type
[Sat Mar 1 15:40:24 2003] [warn] XXX - check declined
[Sat Mar 1 15:40:24 2003] [warn] XXX - $E is Apache::AxKit::Exception::Error
[Sat Mar 1 15:40:24 2003] [error] [client 127.0.0.1] [AxKit] [Error] input call back died for /components/test.xml: input callback died: Died at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Apache/AxKit/Language/LibXSLT.pm line 129.
===
Specifically, I don't understand how $E, which to me looks like it should be Apache::AxKit::Exception::Declined is turning out to be Apache::AxKit::Exception::Error -- unless the error occurs while propagating that Declined exception to main_handler(). I'm thinking that's quite possible, as that "input call back died ..." error is an error raised from XS code within LibXML.xs. Or perhaps I'm missing something in the Provider subclass?
Any suggestions as to where I should look next??
--d
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
