well, I don't use Mason or AxKit, but...

Apache::Filter (1.011) automatically sends the headers for you on the first
write to STDOUT by the last filter in the chain.  So, no module should be
calling $r->perl_send_headers except for Filter.  the Mason parameter
auto_send_headers should control whether Mason automatically sends the
headers or not.  Anyway, perhaps that explains the double headers.  I dunno
about the files...

HTH at least some...

--Geoff

> -----Original Message-----
> From: Barry Hoggard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 05, 2000 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: HTML::Mason/ AxKit / Apache::Filter
> 
> 
> Does anyone have this combination working?  I'm using Mason 
> 0.89, Filter
> 1.011.  I'm getting my files twice, and headers twice.
> 
> I have asked on the Mason and AxKit mailing lists, but we 
> haven't been able
> to figure it out.
> 
> Here's the info from my other postings:
> 
> I'm trying to debug using HTML::Mason as the provider (using 
> Apache::Filter)
> for AxKit's XML step.  I'm forwarding mine and Matt's 
> discussion so far to
> see if anyone here has figured this out.
> 
> Apache::Filter is 1.011
> HTML::Mason is 0.89.
> 
> 
> Additionally, here's my error log if I turn on debug=1 in 
> Apache::Filter
> (the http request for test.xsl is because I'm using IE to 
> request the page
> and it's attempting its own XSLT transformation):
> 
> 
> [AxKit] : (Re)loading Apache/AxKit/Provider/Filter.pm
> *******info for /home/httpd/comp_root/docs/test.xml is  at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 33.
> /home/httpd/comp_root/docs/test.xml: This is the first filter at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 66.
> Untie()ing STDOUT at 
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line
> 76.
> Tie()ing STDOUT to Apache::Filter at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 90.
> END info is old_stdout Apache count 1 fh_in GLOB(0x8e56390)  at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 94.
> [AxKit] : handler called for /test.xml
> [AxKit] : checking if we process this resource
> [AxKit] : media: screen, preferred style: #default
> [AxKit] : getting styles and external entities from the XML
> [AxKit] : styles and external entities not cached - calling 
> get_styles()
> [AxKit] : get_styles: creating XML::Parser
> [AxKit] : get_styles: calling
> XML::Parser->parse('/home/httpd/comp_root/docs/test.xml')
> [AxKit] : parse_pi: href = test.xsl
> [AxKit] : parse_pi: type = text/xsl
> [AxKit] : get_styles: parse returned: >> OK
>  <<
> [AxKit] : get_styles: parse returned successfully
> [AxKit] : get_styles: loading style modules
> [AxKit] : get_styles: looking for mapping for style type: 'text/xsl'
> [AxKit] : (Re)loading Apache/AxKit/Language/Sablot.pm
> [AxKit] : resetting cache with no preferred style
> [AxKit] : some condition failed. recreating output
> [AxKit] : File Provider set filename to 
> /home/httpd/comp_root/docs/test.xsl
> [AxKit] : about to execute: Apache::AxKit::Language::Sablot::handler
> [AxKit] : execution of: 
> Apache::AxKit::Language::Sablot::handler finished
> [AxKit] : writing xml string to browser
> [AxKit] : (Re)loading Apache/AxKit/Provider/Filter.pm
> *******info for /home/httpd/comp_root/docs/test.xsl is  at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 33.
> /home/httpd/comp_root/docs/test.xsl: This is the first filter at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 66.
> Untie()ing STDOUT at 
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line
> 76.
> Tie()ing STDOUT to Apache::Filter at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 90.
> END info is old_stdout Apache count 1 fh_in GLOB(0x8e5f420)  at
> /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 94.
> [AxKit] : handler called for /test.xsl
> [AxKit] : checking if we process this resource
> [AxKit] : media: screen, preferred style: #default
> [AxKit] : getting styles and external entities from the XML
> [AxKit] : styles and external entities not cached - calling 
> get_styles()
> [AxKit] : get_styles: creating XML::Parser
> [AxKit] : get_styles: calling
> XML::Parser->parse('/home/httpd/comp_root/docs/test.xsl')
> [AxKit] : get_styles: parse returned: >> OK
>  <<
> [AxKit] : get_styles: parse returned successfully
> [Wed Oct  4 12:28:23 2000] [error] [client 172.19.0.106] 
> [AxKit] [Error] No
> styles defined for '/home/httpd/comp_root/docs/test.xsl'
> [Wed Oct  4 12:28:23 2000] [error] [client 172.19.0.106] [AxKit] From:
> /usr/lib/perl5/site_perl/5.005/i586-linux/Apache/AxKit/Provide
> r.pm : 135
> [Wed Oct  4 12:28:23 2000] [error] [client 172.19.0.106] 
> [AxKit] [Backtrace]
> No styles defined for '/home/httpd/comp_root/docs/test.xsl' at
> /usr/lib/perl5/site_perl/5.005/i586-linux/Apache/AxKit/Provide
> r.pm line 135
> 
> Apache::AxKit::Provider::get_styles('Apache::AxKit::Provider::
> Filter=HASH(0x
> 8e5f348)', 'screen', '#default') called at
> /usr/lib/perl5/site_perl/5.005/i586-linux/AxKit.pm line 710
>         AxKit::get_styles_and_ext_ents('screen', '#default',
> 'Apache::AxKit::Cache=HASH(0x8e63eec)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8e5f348)') called at
> /usr/lib/perl5/site_perl/5.005/i586-linux/AxKit.pm line 460
>         AxKit::handler('Apache=SCALAR(0x8b94b4c)') called at 
> /dev/null line
> 0
>         eval {...} called at /dev/null line 0
> 
> 
> 
> 
> --
> Barry Hoggard
> Chief Technology Officer
> http://www.investorama.com
> v: 212.905.1639 x194
> e: [EMAIL PROTECTED]
> 
> 

Reply via email to