Author: rgardler
Date: Fri Aug 4 04:24:39 2006
New Revision: 428695
URL: http://svn.apache.org/viewvc?rev=428695&view=rev
Log:
(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
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap?rev=428695&r1=428694&r2=428695&view=diff
==============================================================================
---
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}"/>
</map:call>
</map:match>