forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r428695 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
Date Fri, 04 Aug 2006 11:24:42 GMT
Author: rgardler
Date: Fri Aug  4 04:24:39 2006
New Revision: 428695

(fixing previous erroneous commit) add a hack to make the cocoon docs FAQ swectionwork again.
This is a workaround not a fix, I've added plenty of comments to help guide a fix when more
time is available.


Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap Fri
Aug  4 04:24:39 2006
@@ -62,11 +62,17 @@
       <!-- Workaround: When Cocoondocs are generated the FAQ index page (id 856)
       has URLs that have the *.daisy.html extension. I don't have the time
       now to work out why this is, so the match below is a quick hack to get the
-      FAQ pages working again -->
-      <!--<map:match pattern="{project:daisy.pathPrefix}*.daisy.xml">-->
-      <map:match pattern="2.1/806.daisy.xml">
+      FAQ pages working again.
+      Note, that the FAQ pages in the cocoon site are generated by a select. So
+      the resulting document has a number of parts. It is this difference that 
+      is likely to be the root cause of the problem. Therefore any site using
+      selects to generate pages are likely to have the same problem is they
+      do not use the default ".daisy" extension for daisy hosted pages.
+      -->
+      <map:match pattern="{project:daisy.pathPrefix}*.daisy.xml">
         <map:call resource="daisy-to-document">
-          <map:parameter name="docID" value="806"/>
+          <map:parameter name="docID" value="{1}"/>
           <map:parameter name="path" value="{0}"/>

View raw message