On Fri, 5 May 2000, Doug MacEachern wrote:

> On Thu, 4 May 2000, Matt Sergeant wrote:
>  
> > How do you get at $r in a directive handler?
> 
> other way around, you get at directive handler config from a handler,
> which has been passed $r, e.g.:
> 
> sub handler {
>     my $r = shift;
>     my $cfg = Apache::ModuleConfig->get($r, __PACKAGE__);
> 
> $cfg would contain the data stashed by the directive handler.

Ya - got that bit now. See AxKit 0.57 - it has an overloadable class for
getting the configuration, so you can either get it from
ModuleConfig() via .htaccess, or provide another method, such as brian
wants to be able to emulate Cocoon 2's sitemap feature. This allows you to
do that. Gotta love OO.

For anyone interested, AxKit is proceeding at an incredible rate. We've
now got an almost complete XSLT implementation curtesy of the Sablotron
library, and lots of other excellent things going on.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org

Reply via email to