Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132117 - mod_xslt typo in default configfile
Summary: mod_xslt typo in default configfile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-03 06:05 UTC by Robin Bankhead
Modified: 2006-06-05 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Bankhead 2006-05-03 06:05:35 UTC
Problem is in the file /etc/apache2/modules.d/25_mod_xslt.conf

The module name is given as mod_xslt in the LoadModule directive

<IfDefine XSLT>
        <IfModule !mod_xslt.c>
                LoadModule mod_xslt    modules/mod_xslt.so
        </IfModule>
</IfDefine>

...but is given as mod-xslt in the following commented examples:

### EXAMPLE 1: transform all .xml files
###
#       <IfModule mod_xslt.c>
#               AddOutputFilter mod_xslt .xml
#       </IfModule>

### EXAMPLE 2: transform all files within a special location (_REPLACE_ME_)
###
#       <IfModule mod_xslt.c>
#               <Location _REPLACE_ME_>
#                       SetOutputFilter mod-xslt
#               </Location>
#       </IfModule>

### EXAMPLE 3: transform all files whose content type is either
###            text/xml or application/xml within a given directory
###
#       <IfModule mod_xslt.c>
#               <Directory "/var/www/localhost/htdocs">
#                       AddOutputFilterByType mod-xslt text/xml
#                       AddOutputFilterByType mod-xslt application/xml
#               </Directory>
#       </IfModule>

package version: net-www/mod_xslt-2.0.4

Result: Those not eagle-eyed enough nor aware of the necessity of this correlation (such as myself for the first couple of hours) will be b0rked if they use one of these examples.
Comment 1 Robin Bankhead 2006-05-03 06:07:48 UTC
Apologies; I posted my edited file.  The first example initially reads:

### EXAMPLE 1: transform all .xml files
###
#       <IfModule mod_xslt.c>
#               AddOutputFilter mod_xslt .xml
#       </IfModule>
Comment 2 Robin Bankhead 2006-05-03 06:09:20 UTC
Apologies; I posted my edited file.  The first example initially reads:

### EXAMPLE 1: transform all .xml files
###
#       <IfModule mod_xslt.c>
#               AddOutputFilter mod-xslt .xml
#       </IfModule>
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2006-06-05 11:41:58 UTC
Ok, so the problem was that mod-xslt is incorrect as OutputFilter reference, and it should have been mod_xslt. This was just fixed and committed to CVS.
Best regards, CHTEKK.