I'm trying to implement a (relatively) simple AxHandleDirs solution.
I want AxKit to be process the XML resulting from a directory listing with an XSL sheet I have created.
Currently I have:
(in httpd.conf):
<Directory "/WWWdev/dir_handle_test"> AxHandleDirs On AxAddProcessor text/xsl /dir_handle_test/xsl/basic.xsl </Directory>
(in basic.xsl):
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<h1>Top level</h1><hr />
<xsl:apply-templates />
</xsl:template>
<xsl:template match="directory"> i have a directory: <xsl:value-of select="."/> <br /> </xsl:template>
<xsl:template match="file"> i have a file: <xsl:value-of select="." /> <br /> </xsl:template>
</xsl:stylesheet>
The HTML I get in the browser is as follows:
<h1>Top level</h1> <hr> . .. dir1 dir2 dir3 dir4 dir5 doc1.xml doc2.xml doc3.xml doc4.xml doc5.xml blah.xml out.html xsl doc6.xml
For some reason, it hasn't matched the <file> and <directory> tags and applied the appropriate templates. If I copy and paste the XML out of the directory listing and transform it manually, I get:
<h1>Top level</h1> <hr>
i have a directory: .<br>
i have a directory: ..<br>
i have a directory: dir1<br>
i have a directory: dir2<br>
i have a directory: dir3<br>
i have a directory: dir4<br>
i have a directory: dir5<br>
i have a file: doc1.xml<br>
i have a file: doc2.xml<br>
i have a file: doc3.xml<br>
i have a file: doc4.xml<br>
i have a file: doc5.xml<br>
i have a file: blah.xml<br>
i have a file: out.html<br>
i have a directory: xsl<br>
i have a file: doc6.xml<br>
i.e. the desired result.
Why isn't this happening when I request the directory in the browser?
Alex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]