cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30321] New: - Added RegexpHeaderSelector
Date Mon, 26 Jul 2004 13:52:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30321>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30321

Added RegexpHeaderSelector

           Summary: Added RegexpHeaderSelector
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: colin@colina.demon.co.uk


I have created a selector for matching the request headers using a regular
expression.
My motivation being to do some simple content negotiation - I wish to serve up
XHTML 1.1 pages where the browser indicates it accepts application/xhtml+xml, and
HTML pages otherwise. But I think this has many more uses, including automatic
i18n, according to the accept-language header.
I have written documentation, linked into the user manual (but I note that the
selectors book needs updating generally). I have put some question markls on the
page concerned, as I am not too sure of a couple of things. Please review it.

Unit test to follow later.

Mime
View raw message