diff options
author | Ville Skytt? <ville.skytta@iki.fi> | 2011-11-28 22:16:21 +0200 |
---|---|---|
committer | Ville Skytt? <ville.skytta@iki.fi> | 2011-11-28 22:16:21 +0200 |
commit | 24a28031b468b379a5799a4a68a7a87920598c08 (patch) | |
tree | 2e1e0f1c89299b1b86b837caf31aefeaf6bda0af /httpd/mod_perl | |
parent | e4b996703a2c908f57ddb09c0faceef1359a4a48 (diff) | |
download | markup-validator-24a28031b468b379a5799a4a68a7a87920598c08.zip markup-validator-24a28031b468b379a5799a4a68a7a87920598c08.tar.gz markup-validator-24a28031b468b379a5799a4a68a7a87920598c08.tar.bz2 |
Make XML::LibXML catalog setup work with mod_perl.
Diffstat (limited to 'httpd/mod_perl')
-rw-r--r-- | httpd/mod_perl/startup.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httpd/mod_perl/startup.pl b/httpd/mod_perl/startup.pl new file mode 100644 index 0000000..39d8e40 --- /dev/null +++ b/httpd/mod_perl/startup.pl @@ -0,0 +1,14 @@ +# mod_perl startup file for the W3C Markup Validator +# http://perl.apache.org/docs/2.0/user/handlers/server.html#mod_perl_Startup + +use warnings; +use strict; + +# If the validator is not installed in its default dir layout in +# /usr/local/validator, be sure to modify this file so that the path to +# catalog.xml below is correct for validator's sgml-lib/catalog.xml + +my $home = $ENV{W3C_VALIDATOR_HOME} || "/usr/local/validator"; +$ENV{XML_CATALOG_FILES} = "$home/htdocs/sgml-lib/catalog.xml"; + +1; |