You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by jw...@apache.org on 2002/07/30 12:33:42 UTC
cvs commit: xml-axkit/lib/Apache/AxKit/StyleChooser Cookie.pm FileSuffix.pm PathInfo.pm QueryString.pm UserAgent.pm
jwalt 2002/07/30 03:33:42
Modified: lib/Apache/AxKit/StyleChooser Cookie.pm FileSuffix.pm
PathInfo.pm QueryString.pm UserAgent.pm
Log:
- applied doc patches sent by Owen Stenseth
Revision Changes Path
1.3 +10 -7 xml-axkit/lib/Apache/AxKit/StyleChooser/Cookie.pm
Index: Cookie.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/StyleChooser/Cookie.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Cookie.pm 1 Feb 2002 14:45:07 -0000 1.2
+++ Cookie.pm 30 Jul 2002 10:33:42 -0000 1.3
@@ -29,16 +29,19 @@
=head1 SYNOPSIS
- PerlHandler Apache::AxKit::StyleChooser::Cookie \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::Cookie
=head1 DESCRIPTION
-This module checks for the presence of a cookie named
-'axkit_preferred_style' and sets the preferred style accordingly.
+This module checks for the presence of a cookie named 'axkit_preferred_style'
+and sets the preferred style accordingly.
+To use it, simply add this module as an AxKit plugin that
+will be run before main AxKit processing is done.
-Remember, use the B<title> attribute in your stylesheet PI to define a
-matching style.
+ AxAddPlugin Apache::AxKit::StyleChooser::Cookie
+
+See the B<AxStyleName> AxKit configuration directive
+for more information on how to setup named style.
=head1 AUTHOR
1.3 +3 -5 xml-axkit/lib/Apache/AxKit/StyleChooser/FileSuffix.pm
Index: FileSuffix.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/StyleChooser/FileSuffix.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FileSuffix.pm 1 Feb 2002 14:45:07 -0000 1.2
+++ FileSuffix.pm 30 Jul 2002 10:33:42 -0000 1.3
@@ -30,8 +30,7 @@
=head1 SYNOPSIS
PerlTypeHandler Apache::AxKit::StyleChooser::FileSuffix
- SetHandler perl-script
- PerlHandler AxKit
+ SetHandler AxKit
=head1 DESCRIPTION
@@ -39,8 +38,7 @@
it, simply add this module to the list of PerlTypeHandlers:
PerlTypeHandler Apache::AxKit::StyleChooser::FileSuffix
- SetHandler perl-script
- PerlHandler AxKit
+ SetHandler AxKit
Then simply by referencing your xml files as follows:
1.3 +15 -9 xml-axkit/lib/Apache/AxKit/StyleChooser/PathInfo.pm
Index: PathInfo.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/StyleChooser/PathInfo.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PathInfo.pm 1 Feb 2002 14:45:07 -0000 1.2
+++ PathInfo.pm 30 Jul 2002 10:33:42 -0000 1.3
@@ -41,23 +41,29 @@
=head1 SYNOPSIS
- PerlHandler Apache::AxKit::StyleChooser::PathInfo \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::PathInfo
=head1 DESCRIPTION
-This module lets you pick a stylesheet based on the extra PATH_INFO. To use
-it, simply add this module to the list of PerlHandlers prior to
-AxKit:
+This module lets you pick a stylesheet based on the extra PATH_INFO.
+To use it, simply add this module as an AxKit plugin that
+will be run before main AxKit processing is done.
- PerlHandler Apache::AxKit::StyleChooser::PathInfo \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::PathInfo
Then simply by referencing your xml files as follows:
- http://xml.server.com/myfile.xml/printable
+ http://xml.server.com/myfile.xml/printable
You will recieve the alternate stylesheets with title "printable". See
the HTML 4.0 specification for more details on stylesheet choice.
+See the B<AxStyleName> AxKit configuration directive
+for more information on how to setup named styles.
+
+=head1 SEE ALSO
+
+AxKit.
+
=cut
+
1.3 +14 -9 xml-axkit/lib/Apache/AxKit/StyleChooser/QueryString.pm
Index: QueryString.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/StyleChooser/QueryString.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- QueryString.pm 1 Feb 2002 14:45:07 -0000 1.2
+++ QueryString.pm 30 Jul 2002 10:33:42 -0000 1.3
@@ -24,23 +24,28 @@
=head1 SYNOPSIS
- PerlHandler Apache::AxKit::StyleChooser::QueryString \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::QueryString
=head1 DESCRIPTION
-This module lets you pick a stylesheet based on the querystring. To use
-it, simply add this module to the list of PerlHandlers prior to
-the main AxKit handler:
+This module lets you pick a stylesheet based on the querystring.
+To use it, simply add this module as an AxKit plugin that
+will be run before main AxKit processing is done.
- PerlHandler Apache::AxKit::StyleChooser::QueryString \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::QueryString
Then simply by referencing your xml files as follows:
- http://xml.server.com/myfile.xml?style=printable
+ http://xml.server.com/myfile.xml?style=printable
You will recieve the alternate stylesheets with title "printable". See
the HTML 4.0 specification for more details on stylesheet choice.
+
+See the B<AxStyleName> AxKit configuration directive
+for more information on how to setup named styles.
+
+=head1 SEE ALSO
+
+AxKit
=cut
1.3 +8 -5 xml-axkit/lib/Apache/AxKit/StyleChooser/UserAgent.pm
Index: UserAgent.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/StyleChooser/UserAgent.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UserAgent.pm 1 Feb 2002 14:45:07 -0000 1.2
+++ UserAgent.pm 30 Jul 2002 10:33:42 -0000 1.3
@@ -41,8 +41,7 @@
In your .conf or .htaccess file(s):
- PerlHandler Apache::AxKit::StyleChooser::UserAgent \
- AxKit
+ AxAddPlugin Apache::AxKit::StyleChooser::UserAgent
PerlSetVar AxUAStyleMap "lynx => Lynx,\
explorer => MSIE,\
@@ -53,9 +52,13 @@
This module sets the internal preferred style based on the user agent
string presented by the connecting client.
+To use it, simply add this module as an AxKit plugin that
+will be run before main AxKit processing is done.
-Remember, use the B<title> attribute in your stylesheet PI to define a
-matching style.
+ AxAddPlugin Apache::AxKit::StyleChooser::UserAgent
+
+See the B<AxStyleName> AxKit configuration directive
+for more information on how to setup named styles.
=head1 AUTHOR