I got it to work by doing the following On Friday, February 14, 2003, at 08:38 PM, S Woodside wrote:
I just can't get this to work. Help! I'm just trying to use the AxHandleDirs option...
..htaccess
-----------------------------------------
....
AxHandleDirs OnAxHandleDirs On
AxAddRootProcessor text/xsl /people/username.xsl {http://axkit.org/2002/filelist}filelist
-----------------------------------------
#AxAddRootProcessor text/xsl /people/username.xsl {http://axkit.org/2002/filelist}filelist
#AxStyle /people/username.xsl
AxAddProcessor text/xsl /people/username.xsl
AxAddProcessor text/xsl /xsl/site.xsl
dunno why that didn't work though.
/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>
-----------------------------------------
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0"
xmlns:fl="http://axkit.org/2002/filelist"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output method = "html"/>
<xsl:template match="/">
<page>
<title>OpenICT.net</title>
<xhtml>
<h1>People hosted at OpenICT.net</h1>
<xsl:apply-templates/>
</xhtml>
</page>
</xsl:template>
<xsl:template match="fl:directory">
<ul>
<xsl:if test="not(.=document('exclude.xml')/exclude/directory)">
<li>
<a><xsl:attribute name="href"><xsl:value-of select="."/>/wiki/</xsl:attribute>
<xsl:value-of select="."/>
</a>
</li>
</xsl:if>
</ul>
</xsl:template>
<xsl:template match="fl:file">
</xsl:template>
</xsl:stylesheet>
Again, the difference seems moot so I'm confused about why the original didn't work.
simon
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
--- www.simonwoodside.com <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
