Me again!

Trying to disble processing of Xincludes for some of my content because 
it's really slowing things down and is not needed for these particular 
instances. I took a copy of Apache::AxKit::Language::LibXSLT, commented 
out the line $xml_doc->process_xinclude(); and resaved as 
Apache::AxKit::Language::LibXSLNoInclude.

All works great, except...
I really want to be able to reset the StyleMap based on an AxStyle 
directive... eg:

------------
<DirectoryMatch "^/www/xml//archive">

        # Transform docbook into XHTML
        <AxStyleName html>
            AxResetProcessors
            AxAddProcessor text/xsl /xsl/vbtn_docbook/xhtml/docbook.xsl
        </AxStyleName>

        # Extract the article's metadata as RDF
        # we disable XIncludes for speed
        <AxStyleName meta>
            AxResetStyleMap
            AxAddStyleMap text/xsl 
Apache::AxKit::Language::LibXSLTNoInclude
            AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
 
            AxResetProcessors
            AxAddProcessor       text/xsl 
/xsl/vbtn_docbook/docbook-meta.xsl
        </AxStyleName>

        # default style
        AxStyle html
    </Files>
</DirectoryMatch>
-------------

However, the AxResetStyleMap seems to apply to the entire directory, 
rather than just the AxStyleName bit. Is this meant to happen? How could I 
work around this?

-- 
Tom Kirkpatrick
Web Developer - Virus Bulletin

Reply via email to