I just can't get this to work. Help! I'm just trying to use the AxHandleDirs option...

..htaccess
-----------------------------------------
SetHandler axkit

AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT

AxNoCache On
AxGzipOutput Off
AxDebugLevel 10
AxLogDeclines On
AxTraceIntermediate /tmp/axtrace.openict.net

AxHandleDirs On
AxAddRootProcessor text/xsl /people/username.xsl {http://axkit.org/2002/filelist}filelist
-----------------------------------------

/people/username.xsl
-----------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns="http://axkit.org/2002/filelist";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>

<xsl:output
method = "text"
media-type = "text/plain" />

<xsl:template match="filelist">
Hello world!
</xsl:template>

</xsl:stylesheet>
-----------------------------------------

output is:
-----------------------------------------
..
...
..DS_Store
..htaccess
CVS
simon
username.xsl
wangenge
xsl
-----------------------------------------

output should be:
-----------------------------------------
Hello World!
-----------------------------------------

log spew is:
-----------------------------------------
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] fast handler called for /people/
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] decoding from UTF-8
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [req] File Provider given $r: /Library/WebServer/Apache2/people
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] checking if we process this resource
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] encoding to UTF-8
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Generated file list: <?xml version="1.0" encoding="UTF-8"?>
<filelist xmlns="http://axkit.org/2002/filelist";>
<directory size="306" atime="1045273050" mtime="1045273009" ctime="1045272202" readable="1" executable="1">.</directory>
<directory size="544" atime="1045272370" mtime="1045260050" ctime="1045260050" readable="1" executable="1">..</directory>
<file size="6148" atime="1045264215" mtime="1045264215" ctime="1045264215" readable="1" executable="1">.DS_Store</file>
<file size="292" atime="1045273050" mtime="1045272401" ctime="1045272401" readable="1">.htaccess</file>
<directory size="170" atime="1045259445" mtime="1045259447" ctime="1045259447" readable="1" executable="1">CVS</directory>
<directory size="136" atime="1045264155" mtime="1045259446" ctime="1045263723" readable="1" writable="1" executable="1">simon</directory>
<file size="349" atime="1045273009" mtime="1045273009" ctime="1045273009" readable="1">username.xsl</file>
<directory size="170" atime="1045264258" mtime="1045264266" ctime="1045264215" readable="1" executable="1">wangenge</directory>
<directory size="272" atime="1045260029" mtime="1045260084" ctime="1045260084" readable="1" executable="1">xsl</directory>
</filelist>

[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] media: screen, preferred style: #default
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Cache: key = b16c4d5cd5b90159c2508418bd265368
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] getting styles and external entities from the XML
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] styles not cached - calling $provider->get_styles()
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] using XS get_styles (libxml2)
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] calling xs_get_styles_str()
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] xs_get_styles returned: , , {http://axkit.org/2002/filelist}filelist
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Calling GetMatchingProcessors with (screen, , , , {http://axkit.org/2002/filelist}filelist)
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] get_styles: loading style modules
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] cache doesn't exist
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] some condition failed. recreating output
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] styles: Apache::AxKit::Language::LibXSLT(/people/username.xsl)
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] could not open /tmp/axtrace.openict.net/_2fpeople.0 for writing: No such file or directory
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [uri] File Provider looking up uri /people/username.xsl
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [uri] File Provider set filename to /Library/WebServer/Apache2/people/username.xsl
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] about to execute: Apache::AxKit::Language::LibXSLT::handler
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] getting the XML
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] parsing stylesheet
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] parsing stylesheet /people/username.xsl
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] performing transformation
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] transformation finished, creating XML::LibXML::Document=SCALAR(0xe0c164)
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] outputting to $r
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] [LibXSLT] storing results in pnotes(dom_tree) (AxKit::Apache=SCALAR(0xe27308))
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Apache::AxKit::Language::LibXSLT::handler finished with code 0
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] could not open /tmp/axtrace.openict.net/_2fpeople.0 for writing: No such file or directory
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] execution of: Apache::AxKit::Language::LibXSLT::handler finished
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] delivering to browser
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] Delivering xml_string
[Fri Feb 14 20:37:30 2003] [warn] [client 192.168.1.102] [AxKit] writing xml string to browser
-----------------------------------------


TIA!!!

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to