On Fri, 5 May 2000, Stas Bekman wrote:

> On Fri, 5 May 2000, Matt Sergeant wrote:
> 
> > Answering myself: It works.
> > 
> > Damn this product (mod_perl) is cool!
> > 
> > On Fri, 5 May 2000, Matt Sergeant wrote:
> > 
> > > I have someone on the AxKit list asking if there's a way to do
> > > configuration outside of .htaccess files. I figure rather than writing
> > > some new code to do this, <Perl> sections could be used.
> > > 
> > > Will this work with custom directives, so basically could I do:
> > > 
> > > <Perl>
> > > @AxAddStyleMap = (
> > >   [ 'text/xsl' => 'Apache::AxKit::Language::XSLT' ],
> > >   ...
> > > );
> > > </Perl>
> 
> Even a cleaner solution, especially if you distribute some sample
> configuration files, would be to write this Perl file and load it with
> PerlModule
> 
> AxConfig.pm:
> ------------
> package Apache::ReadConfig;
> 
> @AxAddStyleMap = (
>     [ 'text/xsl' => 'Apache::AxKit::Language::XSLT' ],
>     ...
> );
> 
> 1;

Actually the idea comes from setting up the style map based on an external
XML site map, which would do things similar to apache's <Files> and
<Location> directives, and then put them into the appropriate sections in
Apache::ReadConfig. It's not something I'm going to ship with the product
just now though - but someone wants the ability to do so.

-- 
<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