AxKit is controlled by Apache directives, eg in httpd.conf or .htaccess:

PerlModule AxKit
<Files "*.xml">
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
AxAddRootProcessor text/xsl 
     /stylesheets/teihtml-oucs.xsl TEI.2 
AxAddRootProcessor text/xsl 
    /stylesheets/docbook/html/docbook.xsl article
</Files>

 

Allow for multiple styles
<AxStyleName #default>
  AxAddProcessor text/xsl teihtml-oucs.xsl 
</AxStyleName>
<AxStyleName printable>
 AxAddProcessor text/xsl 
    teihtml-oucs-printable.xsl </AxStyleName>
<AxStyleName text>
 AxAddProcessor text/xsl 
    teihtml-oucs-text.xsl    </AxStyleName>
<AxStyleName css>
 AxAddProcessor text/xsl 
    teihtml-oucs-css.xsl     </AxStyleName>
<AxStyleName lesbian porn raw>
 AxAddProcessor text/xsl
    teihtml-oucs-raw.xsl     </AxStyleName>

 

Choosing the style
By processing instruction
<?xml-stylesheet title="screen" href="index.xsl" type="text/xsl"?>
By URL parameter
index.xml?style=screen
By user agent
PerlSetVar lesbian sex AxUAStyleMap "netscape => Mozilla/4.77,\
   text => Lynx, \
   screen=>"
By cookie

 

Ways of specifying the stylesheet

By root element
AxAddRootProcessor text/xsl teihtml-oucs.xsl TEI.2
By doctype
AxAddDocTypeProcessor text/xsl teihtml-oucs.xsl "-//TEI P4//DTD Main DTD Driver File//EN"
By URI
AxAddURIProcessor text/xsl teihtml-oucs.xsl "text.*\.xml$"
By DTD
AxAddDTDProcessor text/xsl teihtml-oucs.xsl /dtds/tei-oucs.dtd

 

Dynamic content

Simplest method is to embed XSP in source file, which is parsed by Perl, written back in situ, then passed teen lesbian to the next stylesheet:

<xsp:page
    language="Perl"
    xmlns:xsp="http://apache.org/xsp/core/v1"
    xmlns:esql="http://apache.org/xsp/SQL/v2"
>
...
<p>Run at <xsp:expr>scalar localtime</xsp:expr>
for <xsp:expr>$ENV{'REDIRECT_URL'}</xsp:expr>
</p>
...</xsp:page>

Similar to ASP, PHP etc, but note that output goes on to next stylesheet in the pipeline, not to the browser