You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2004/09/05 02:46:15 UTC

svn commit: rev 43356 - in cocoon/trunk: . src/documentation/xdocs/userdocs/selectors

Author: crossley
Date: Sat Sep  4 17:46:15 2004
New Revision: 43356

Modified:
   cocoon/trunk/src/documentation/xdocs/userdocs/selectors/regular-expression-header-selector.xml
   cocoon/trunk/status.xml
Log:
Attribution in "Changes" for regular-expression-header-selector.
Add some notes from the issue report to the doc.
Issue: 30321
Submitted by: Colin Adams


Modified: cocoon/trunk/src/documentation/xdocs/userdocs/selectors/regular-expression-header-selector.xml
==============================================================================
--- cocoon/trunk/src/documentation/xdocs/userdocs/selectors/regular-expression-header-selector.xml	(original)
+++ cocoon/trunk/src/documentation/xdocs/userdocs/selectors/regular-expression-header-selector.xml	Sat Sep  4 17:46:15 2004
@@ -23,7 +23,7 @@
 
 <document>
   <header>
-    <title>Regular-Ecpression-Header-Selector in Cocoon</title>
+    <title>Regular-Expression-Header-Selector in Cocoon</title>
     <version>0.1</version>
     <type>Technical document</type>
     <authors>
@@ -145,6 +145,15 @@
           any sitemap parameters. 
         </p>
       </s2>
+    </s1>
+    <s1 title="Notes">
+      <p>
+      The main motivation for this selector is to do some simple content
+      negotiation to serve XHTML 1.1 pages where the browser indicates it
+      accepts application/xhtml+xml, and HTML pages otherwise.
+      However, this has many more uses, including automatic i18n according
+      to the accept-language header.
+      </p>
     </s1>
     <s1 title="Bugs/Caveats">
       <p>

Modified: cocoon/trunk/status.xml
==============================================================================
--- cocoon/trunk/status.xml	(original)
+++ cocoon/trunk/status.xml	Sat Sep  4 17:46:15 2004
@@ -204,7 +204,13 @@
 
   <changes>
  <release version="@version@" date="@date@">
-    <action dev="NKB" type="add">
+   <action dev="DC" type="add" fixes-bug="30321" due-to="Colin Adams">
+     Selector for matching the request headers using a regular expression.
+     Simple content negotiation, e.g. serve XHTML if browser indicates it
+     accepts application/xhtml+xml and HTML otherwise; potentially do
+     automatic i18n according to the accept-language header.
+   </action>
+   <action dev="NKB" type="add">
      New @pass-through attribute for the sitemap mount node.
      If true, processing will resume in the base sitemap just after the mount node
      if the mounted sitemap has not already generated output (usually if no match