[Apache::ASP] Problems with SSI and XSLT
Hello, I've been having some troubles with the SSI and XSLT examples in the /eg/ directory in my Apache::ASP installation: the SSI example works to a point, but there's an extra opening comment tag ("!--") that appears at the end of the file, after the closing tag for the html element. The XSLT problem is worse - it won't work at all. The process seems to loop and finally short out. Excuse me if I'm missing something obvious here. I'm still a bit green with these things. :( Any ideas what could be causing the problems? I'm guessing that the odd opening comment effect is related to the $Response-End() call in the "virtual" include in ssi_filter.ssi, but I'm at a loss as to what could be causing the problems with the xslt.xml example. Sincerely, Scott Kearn I have the current versions (according to CPAN) of all the modules included in Bundle::Apache::ASP installed, and I'm using version 1.95.1 of Expat, downloaded from the Sourceforge project site. The other required modules that I have installed (and their versions) are as follows: Apache::Filter - 1.016 Apache::SSI - 2.16 XML::Parser - 2.30 XML::DOM - 1.27 XML::XSLT - 0.32 And here's the debug log from the attempt at running the xslt.xml example. Note that this is from /one/ request: [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.6310;0.] RUN ASP (v2.09) for /usr/local/etc/httpd/htdocs/client/documentation/ApacheAsp/eg/xslt.xml [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.6487;0.0177] call srand() post fork [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.6496;0.0009] GlobalASA package Apache::ASP::Demo [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.6499;0.0003] global.asa was not cached for _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg___global_asa [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.6755;0.0256] compiling global.asa Apache::ASP::Demo _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg___global_asa exists 1 - asp: Apache::ASP=HASH(0x82f8760); compiled: HASH(0x82f75c8); exists: 1; id: _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg___global_asa; package: Apache::ASP::Demo; - --- - exists: ; mtime: ; [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.7154;0.0399] global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.7170;0.0016] parsing xslt.xml [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8030;0.0860] loaded module Apache::Symbol [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8035;0.0005] active undefing sub Apache::ASP::Demo::_usr_local_etc_httpd_htdocs_client_documentation_ApacheAs p_eg_xslt_xmlxDYN code CODE(0x82ee338) [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8039;0.0004] compiling into package Apache::ASP::Demo subid Apache::ASP::Demo::_usr_local_etc_httpd_htdocs_client_documentation_ApacheAs p_eg_xslt_xmlxDYN [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8072;0.0033] Script_OnStart [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8076;0.0004] executing Script_OnStart [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8082;0.0006] tieing response package for STDOUT [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8087;0.0005] executing _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg_xslt_xmlxDYN [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8202;0.0115] Script_OnEnd [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8206;0.0004] executing Script_OnEnd [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8211;0.0005] Script_OnFlush [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8214;0.0003] executing Script_OnFlush [Fri Feb 23 02:10:55 2001] [error] [asp] [32023] [debug] [982919455.8225;0.0011] xslt processing with template.xsl [Fri Feb 23 02:10:58 2001] [error] [asp] [31744] [debug] [982919458.1842;0.] RUN ASP (v2.09) for /usr/local/etc/httpd/htdocs/client/documentation/ApacheAsp/eg/xslt.xml [Fri Feb 23 02:10:58 2001] [error] [asp] [31744] [debug] [982919458.1850;0.0008] call srand() post fork [Fri Feb 23 02:10:58 2001] [error] [asp] [31744] [debug] [982919458.1859;0.0009] GlobalASA package Apache::ASP::Demo [Fri Feb 23 02:10:58 2001] [error] [asp] [31744] [debug] [982919458.1863;0.0004] global.asa was not cached for _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg___global_asa [Fri Feb 23 02:10:58 2001] [error] [asp] [31744] [debug] [982919458.1890;0.0027] compiling global.asa Apache::ASP::Demo _usr_local_etc_httpd_htdocs_client_documentation_ApacheAsp_eg___global_asa exists 1 - asp: Apache::ASP=HASH(0x82f9760); compiled: HASH(0x82f75c8); exists:
Re: [Apache::ASP] Problems with SSI and XSLT
"S.tygian B.lacksmith S.tudios" wrote: Hello, I've been having some troubles with the SSI and XSLT examples in the /eg/ directory in my Apache::ASP installation: the SSI example works to a point, but there's an extra opening comment tag ("!--") that appears at the end of the file, after the closing tag for the html element. The XSLT problem is worse - it won't work at all. The process seems to loop and finally short out. Would you please send me separately the output of the HTML, and the source file itself for the ssi example. I thought I fixed a bug in there but perhaps not. Actually, if you'd like, I'll email you separately my dev 2.11 release which may fix your SSI problem, as the content length was being set when it shouldn't be in 2.09 while filtering, and this may be the issue, especially if viewing in IE I believe. Excuse me if I'm missing something obvious here. I'm still a bit green with these things. :( You have done remarkably to get this far! Any ideas what could be causing the problems? I'm guessing that the odd opening comment effect is related to the $Response-End() call in the "virtual" include in ssi_filter.ssi, but I'm at a loss as to what could be causing the problems with the xslt.xml example. For XML::XSLT, I would recommend sticking with the .24 release from the Bundle::XML, or which you can download from the SourceForge site for it. Sorry no URL handy. The issue seems that the new XML::XSLT module maintainer has harshly deprecated the old API I used, and may have broken some things in the process. I found .32 not to work on my own Linux box, where .24 still does. I will need to rewrite the XSLT interface for Apache::ASP for the lastest XML::XSLT, and while I'm at it, I think I will be adding support for XML::Sablotron, for those that need the speed. I may also add a caching layer to keep the pace up, as XSLT tends to be rather slow. I had a Tie::Cache RAM cache before, and I'll likely add a file based cache instead as that is more appropriate for these kinds of large slow data sets. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051