Date: Tuesday December 11, 2001 @ 13:02
Author: matt
Update of /home/cvs/AxKit
In directory ted:/home/matt/Perl/AxKit
Modified Files:
AxKit.pm INSTALL MANIFEST Makefile.PL axconfig.c
Log Message:
Removed AxKit On/Off directive
Removed docs for "AxKit On", and replaced with SetHandler/AddHandler
Added QueryStringCache plugin
Updated Makefile to test for latest XML::LibXML/LibXSLT
Index: AxKit.pm
===================================================================
RCS file: /home/cvs/AxKit/AxKit.pm,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- AxKit.pm 2001/12/11 11:17:00 1.124
+++ AxKit.pm 2001/12/11 13:02:58 1.125
@@ -1,4 +1,4 @@
-# $Id: AxKit.pm,v 1.124 2001/12/11 11:17:00 matt Exp $
+# $Id: AxKit.pm,v 1.125 2001/12/11 13:02:58 matt Exp $
package AxKit;
use strict;
@@ -855,8 +855,7 @@
.htaccess):
# Install AxKit main parts
- SetHandler perl-script
- PerlHandler AxKit
+ SetHandler AxKit
# Setup style type mappings
AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
@@ -948,7 +947,8 @@
Setting this to a module, will load that module and execute the
handler method of the module before any AxKit processing is done.
-This allows you to setup things like sessions, do authentication, or other
actions that require no XML output, before the actual
+This allows you to setup things like sessions, do authentication,
+or other actions that require no XML output, before the actual
XML processing stage of AxKit.
AxAddPlugin MyAuthHandler
Index: INSTALL
===================================================================
RCS file: /home/cvs/AxKit/INSTALL,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- INSTALL 2001/05/01 18:41:10 1.3
+++ INSTALL 2001/12/11 13:02:58 1.4
@@ -128,22 +128,19 @@
# sections.
PerlModule AxKit
- AxKit On
+ SetHandler axkit
AxCacheDir /tmp/axkit_cache/
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
If, however, you are using other content handler modules, such
as PHP or mod_cgi to send content to the browser, you will more
-than likely want to wrap the previous configuration lines in
-a <Files> or <Location> tag such as:
+than likely want to use AddHandler:
PerlModule AxKit
-
- <Files "*.xml">
- AxKit On
- ...
- </Files>
+
+ AddHandler axkit .xml
+ AddHandler axkit .xsp
Another symptom that you want to wrap your configuration in a conditional
block is if you turn on debugging (see perldoc AxKit for AxDebugLevel),
Index: MANIFEST
===================================================================
RCS file: /home/cvs/AxKit/MANIFEST,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- MANIFEST 2001/11/14 13:31:49 1.38
+++ MANIFEST 2001/12/11 13:02:58 1.39
@@ -41,6 +41,7 @@
lib/Apache/AxKit/MediaChooser/WAPCheck.pm
lib/Apache/AxKit/Plugins/Passthru.pm
lib/Apache/AxKit/Plugins/Fragment.pm
+lib/Apache/AxKit/Plugins/QueryStringCache.pm
lib/Apache/AxKit/Provider.pm
lib/Apache/AxKit/Provider/File.pm
lib/Apache/AxKit/Provider/Scalar.pm
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/AxKit/Makefile.PL,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- Makefile.PL 2001/07/19 19:10:37 1.49
+++ Makefile.PL 2001/12/11 13:02:58 1.50
@@ -1,4 +1,4 @@
-# $Id: Makefile.PL,v 1.49 2001/07/19 19:10:37 matt Exp $
+# $Id: Makefile.PL,v 1.50 2001/12/11 13:02:58 matt Exp $
package AxKit;
# file Makefile.PL
@@ -106,14 +106,14 @@
but you won't be able to use Apache::AxKit::Language::Sablot without it.
REASON
-test_module('XML::LibXML', '0.96', <<"REASON");
-XML::LibXML 0.96 or higher is required for the XSP engine
+test_module('XML::LibXML', '1.31', <<"REASON");
+XML::LibXML 1.31 or higher is required for the XSP engine
to work. You don't have to install it, but you won't
be able to use XSP pages without it.
REASON
-test_module('XML::LibXSLT', '0.99', <<"REASON");
-XML::LibXSLT 0.96 or higher is required for our LibXSLT
+test_module('XML::LibXSLT', '1.31', <<"REASON");
+XML::LibXSLT 1.31 or higher is required for our LibXSLT
XSLT processor to work. You don't have to install it,
but you won't be able to use Apache::AxKit::Language::LibXSLT without it.
REASON
Index: axconfig.c
===================================================================
RCS file: /home/cvs/AxKit/axconfig.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- axconfig.c 2001/11/20 16:27:02 1.13
+++ axconfig.c 2001/12/11 13:02:58 1.14
@@ -1,4 +1,4 @@
-/* $Id: axconfig.c,v 1.13 2001/11/20 16:27:02 matt Exp $ */
+/* $Id: axconfig.c,v 1.14 2001/12/11 13:02:58 matt Exp $ */
#ifndef WIN32
#include <modules/perl/mod_perl.h>
@@ -1001,22 +1001,6 @@
return NULL;
}
-CHAR_P
-ax_axkit_onoff (cmd_parms *cmd, axkit_dir_config *ax, int flag)
-{
- void * oldconf;
- const char * errmsg;
- SV *sva;
- SV *ignore;
-
- if (flag) {
- return (const char *)ap_handle_command(cmd, cmd->server->lookup_defaults,
"SetHandler axkit");
- }
- else {
- return (const char *)ap_handle_command(cmd, cmd->server->lookup_defaults,
"SetHandler default-handler");
- }
-}
-
void axkit_module_init(server_rec *s, pool *p)
{
STRLEN len = 0;
@@ -1058,12 +1042,6 @@
static command_rec axkit_mod_cmds[] = {
-#ifndef WIN32
- { "AxKit", ax_axkit_onoff,
- NULL, OR_ALL, FLAG,
- "On or Off, turns AxKit processing On or Off" },
-#endif
-
{ "AxAddProcessor", ax_add_processor,
(void*)"NORMAL", OR_ALL, TAKE2,
"a mime type and a stylesheet to use" },
@@ -1236,7 +1214,7 @@
NULL, /* [5] check/validate user_id */
NULL, /* [6] check user_id is valid *here* */
NULL, /* [4] check access by host address */
- NULL, /* [7] MIME type checker/setter */
+ axkit_ct, /* [7] MIME type checker/setter */
NULL, /* [8] fixups */
NULL, /* [10] logger */
NULL, /* [3] header parser */
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]