Its just not really possible in Apache 1.3 land. Apache 2 lets you chain the 
output of different content handlers, but in 1.3 it requires special coding 
in the handler itself to accomplish the same thing. Apache::Filter provides 
perl based handlers with the infrastructure to do this, but my guess is that 
Apache::SSI isn't filter aware, and for that matter I don't know that AxKit 
especially is either.

Your best bet is to incorporate the logic you have in SSI now into your XSP 
page I would think. 

On Thursday 28 August 2003 06:10 pm, Nolan J. Darilek wrote:
> I'm trying to call CGIs from within my axkit-created
> pages. Specifically, I want to include an SSI directive in my xml,
> pass it to axkit for processing, after which axkit passes the
> resulting HTML to Apache::SSI which, spotting the directive, includes
> it and sends it to the browser. I have the following httpd.conf which
> I've slightly modified from the Apache::ASP example in the provider-howto:
>
> # If the perl module is installed, this will be enabled.
> <IfModule mod_perl.c>
> . . .
> PerlModule AxKit
> AddHandler axkit .xml
> AddHandler axkit .xsp
> PerlModule Apache::Filter
> PerlModule Apache::SSI
> </IfModule>
> . . .
> <VirtualHost *>
>     ServerAdmin [EMAIL PROTECTED]
>     DocumentRoot /home/nolan/public_html/www.thewordnerd.info
>     ServerName www.thewordnerd.info
> <Files ~ ".xml">
> SetHandler perl-script
> PerlSetVar Filter On
> AxProvider Apache::AxKit::Provider::Filter
> PerlHandler Apache::SSI AxKit
> </Files>
> AxDebugLevel 10
> </VirtualHost>
>
> I can run the CGI fine by itself, so the directory and such are
> configured fine. However, all atempts to load XML documents produce
> the following in my error.log:
>
> [Thu Aug 28 16:56:16 2003] [warn] [client 192.168.1.1] [AxKit] Content
> Provider Override: Apache::AxKit::Provider::Filter [Thu Aug 28 16:56:16
> 2003] [warn] [client 192.168.1.1] [AxKit] Caught an exception [Thu Aug 28
> 16:56:16 2003] [error] [client 192.168.1.1] [AxKit] [Error] Not a HASH
> reference at /usr/share/perl5/Apache/Filter.pm line 197.
>
> [Thu Aug 28 16:56:16 2003] [error] [client 192.168.1.1] [AxKit] From:
> /usr/lib/perl5/Apache/AxKit/Exception.pm : 9 [Thu Aug 28 16:56:16 2003]
> [error] [client 192.168.1.1] [AxKit] [Backtrace] Not a HASH reference at
> /usr/share/perl5/Apache/Filter.pm line 197.
> Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error','-text','No
>t a HASH reference at /usr/share/perl5/Apache/Filter.pm lin...') called at
> /usr/lib/perl5/AxKit.pm line 988 AxKit::prep_exception('Not a HASH
> reference at /usr/share/perl5/Apache/Filter.pm lin...') called at
> /usr/lib/perl5/AxKit.pm line 212 AxKit::__ANON__('Not a HASH reference at
> /usr/share/perl5/Apache/Filter.pm lin...') called at
> /usr/share/perl5/Apache/Filter.pm line 197
> Apache::Filter::READLINE('Apache::Filter=SCALAR(0x82eebd8)') called at
> /usr/lib/perl5/Apache/AxKit/Provider/Filter.pm line 32
> Apache::AxKit::Provider::Filter::init('Apache::AxKit::Provider::Filter=HASH
>(0x8763a28)') called at /usr/lib/perl5/Apache/AxKit/Provider.pm line 39
> Apache::AxKit::Provider::new_content_provider('Apache::AxKit::Provider','Ap
>ache::SubRequest=SCALAR(0x8763968)') called at
> /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 359
> XML::XPath::Function::document('XML::XPath::Function=HASH(0x8762a3c)','XML:
>:XPath::Node::Element=REF(0x858ca30)','XML::XPath::Literal=SCALAR(0x875f678)
>') called at /usr/share/perl5/XML/XPath/Function.pm line 69
> XML::XPath::Function::_execute('XML::XPath::Function=HASH(0x8762a3c)','docu
>ment','XML::XPath::Node::Element=REF(0x858ca30)','XML::XPath::Literal=SCALAR
>(0x875f678)') called at /usr/share/perl5/XML/XPath/Function.pm line 61
> XML::XPath::Function::evaluate('XML::XPath::Function=HASH(0x8762a3c)','XML:
>:XPath::Node::Element=REF(0x858ca30)') called at
> /usr/share/perl5/XML/XPath/Expr.pm line 138
> XML::XPath::Expr::evaluate('XML::XPath::Expr=HASH(0x875f7bc)','XML::XPath::
>Node::Element=REF(0x858ca30)') called at /usr/share/perl5/XML/XPath.pm line
> 86
> XML::XPath::find('XML::XPath=HASH(0x86aa02c)','document("menu.xml")','undef
>') called at /usr/share/perl5/XML/XPath.pm line 102
> XML::XPath::findnodes('XML::XPath=HASH(0x86aa02c)','document("menu.xml")')
> called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 478
> Apache::AxKit::Language::XPathScript::Toys::findnodes('document("menu.xml")
>') called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 517
> Apache::AxKit::Language::XPathScript::Toys::apply_templates('document("menu
>.xml")') called at
> /home/nolan/public_html/www.thewordnerd.info/stylesheets/page_html.xps line
> 64
> Apache::AxKit::Language::XPathScript::ROOT::home::nolan::public_html::www_2
>ethewordnerd_2einfo::stylesheets::page_html_2exps::handler('Apache::Filter=S
>CALAR(0x82eebd8)','XML::XPath=HASH(0x86aa02c)','HASH(0x8751fb0)') called at
> /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 106
> Apache::AxKit::Language::XPathScript::handler('Apache::AxKit::Language::XPa
>thScript','Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Provider::Filte
>r=HASH(0x84d4a68)','Apache::AxKit::Provider::Filter=HASH(0x84ec5b4)',1)
> called at /usr/lib/perl5/AxKit.pm line 739
> AxKit::process_request('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::P
>rovider::Filter=HASH(0x84d4a68)','ARRAY(0x8275610)','undef') called at
> /usr/lib/perl5/AxKit.pm line 461
> AxKit::run_axkit_engine('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::
>Provider::Filter=HASH(0x84d4a68)') called at /usr/lib/perl5/AxKit.pm line
> 288 eval {...} called at /usr/lib/perl5/AxKit.pm line 279
>       AxKit::main_handler('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Pro
>vider::Filter=HASH(0x84d4a68)') called at /usr/lib/perl5/AxKit.pm line 247
> AxKit::handler('Apache::Filter=SCALAR(0x82eebd8)') called at /dev/null line
> 0 eval {...} called at /dev/null line 0
>
> What am I doing wrong? Or is what I'm attempting simply not possible?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Tod Harter
Giant Electronic Brain
http://www.giantelectronicbrain.com

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

Reply via email to