forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r209935 - /forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
Date Sat, 09 Jul 2005 08:40:02 GMT
Author: rgardler
Date: Sat Jul  9 01:40:01 2005
New Revision: 209935

remove commented out lenya notes, these are in the main docs


Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
Sat Jul  9 01:40:01 2005
@@ -84,86 +84,6 @@
-<!-- Comment out as this requries additions to the sitemap, they should really be done
in a plugin
-      <section>
-        <title>Retrieving HTML from Lenya</title>
-        <p><a href="">Apache Lenya</a> is a Java
Open-Source Content Management System based 
-        on open standards such as XML and XSLT and the Apache Software Stack, in particular
the XML publishing 
-        framework Apache Cocoon. Apache Forrest can retrieve an publish content from an Apache
Lenya CMS.</p>
-        <p>For example, the following locationmap matcher will instruct Forrest to
retrieve content from
-        <code>*.html?raw=true</code>,
whenever a local URL of
-        <code>lenya/**</code> is encountered.</p>
-        <source>
- &lt;match pattern="lenya/**.xml"&gt;
-   &lt;location src="{1}.html?raw=true"
- &lt;/match&gt;
-        </source>
-        <p>However, since the source returned by this match is HTML and not XDoc we
also neet to convert this
-        to our internal XDoc format. We do this by adding the match below to our projects
-        file.</p>
-        <source>
-&lt;map:match pattern="lenya/**.xml"&gt;
-  &lt;map:generate type="html" src="{lm:{0}}" /&gt;
-  &lt;map:transform src="{forrest:stylesheets}/html2document.xsl" /&gt;
-  &lt;map:serialize type="xml"/&gt;
-        </source>
-        <p>Since this snippet uses the HTML generator you must also ensure that your
sitemap has the HTML generator
-        component defined. That is, your sitemap must also include:</p>
-        <source>
-  &lt;map:generators default="file"&gt;
-    &lt;map:generator name="html"
-      src="org.apache.cocoon.generation.HTMLGenerator"&gt;
-      &lt;jtidy-config&gt;WEB-INF/;/jtidy-config&gt;
-    &lt;/map:generator&gt;
-  &lt;/map:generators&gt;
-        </source>
-        <p>Since the HTML generator uses JTidy we need to make available a JTidy configuration
-        This is placed in <code>PROJECT_HOME/src/documentation/WEB-INF/</code>
-        location can be changed in the above sitemap snippet). A sample config file is given
-        <source>
-        </source>
-        <note>This requirement to add items to your project sitemap will be removed
in a future version either by Lenya
-        outputting XDoc or by Forrest switching to using XHTMl as its internal format (whichever
-        first.</note>
-        <p>Here is the <a href="/lenya/index.html">index page</a> from
that location.</p>
-        <warning>This functionality is still under development. It does not work fully
yet. For exammple, absolute URLs
-        in the source document need to be rewritten to ensure that they are matched by the
-      </section>
         <title>Link Rewriting</title>
         <p>The locationmap can be used to rewrite URLs when the page is generated.

View raw message