Some pages of my site are driven by perl cgi scripts. To produce the final 
output of these script to the browser, I use XML::LibXML and XML::LibXSLT 
to transform some XML (which gets mangled together by the script) into 
xhtml via my main output.xsl stylesheet - this is the final stylesheet 
from my main AxKit transformation pipeline, which converts my site 
specific XML tags into valid XHTML.

I do the output this way to ensure that the perl scripts are producing 
output exactly the same as all the AxKit driven pages.

However, since implementing the BasicSession Stuff, I have noticed a 
slight problem. The stylesheet I am using, basicly draws all the page 
navigation and standard elements etc. One of the standard elements is a 
little bit of text which gets displayed in the top left corner of the 
page, which shows if you are currently loged in or not. It does this by 
checking a parameter which usually gets passed to the stylesheet via the 
Apache::AxKit::Plugin::AddXSLParams::BasicSession directive in the 
httpd.conf file.

It appears however that when applying the stylesheet to some xml via a 
perl script, this paramater is not made available to the stylesheet. My 
httpd.conf file looks a bit like this:

<filesMatch "\.(xsp|xml|rdf)$">
        PerlModule AxKit
        AddHandler axkit .xml .xsp .rdf

        ...... standard (Axkit bits)

        AxAddPlugin Apache::AxKit::Plugin::BasicSession
        AxAddPlugin Apache::AxKit::Plugin::AddXSLParams::BasicSession
 
        ...etc etc etc..
</filesMatch/>

So is this because I am only applying this axkit stuff to .xsp, .xml and 
.rdf files? ie. do I need to include .cgi in there too?
Or do I have to access this parameter directly from the perl script 
somehow?

I also wanted to make the perl script set a new session variable and tried 
to do this by using the object interface as described on the CPAN pages. 
It seemed that I could make the script set up a new AxKit BasicSession 
object, and indeed I could set up session variables within this object, 
but this object actually had nothing to do with apache - the session 
variables I set up in the script were available to the script and only the 
script, so when I then moved to another page in the site, the variable I 
had set in the perl script had no effect and was not available to any of 
my stylesheets/xsp pages.

Any thoughts?

-- 
Tom David Kirkpatrick
Virus Bulletin Web Developer, Virus Bulletin

Tel: +44 1235 555139
Web: www.virusbtn.com


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

Reply via email to