forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
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

URL: http://svn.apache.org/viewcvs?rev=209935&view=rev
Log:
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

Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml?rev=209935&r1=209934&r2=209935&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
(original)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
Sat Jul  9 01:40:01 2005
@@ -84,86 +84,6 @@
         
       </section>
 
-<!-- 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="http://lenya.apache.org">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>http://lenya.zones.apache.org:8888/default/live/*.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="http://lenya.zones.apache.org:8888/default/live/{1}.html?raw=true"
/&gt;
- &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
<code>sitemap.xmap</code>
-        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;
-&lt;/map:match&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:components&gt;
-  &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.properties&lt;/jtidy-config&gt;
-    &lt;/map:generator&gt;
-  &lt;/map:generators&gt;
-&lt;/map:components&gt;
-        </source>
-        
-        <p>Since the HTML generator uses JTidy we need to make available a JTidy configuration
file.
-        This is placed in <code>PROJECT_HOME/src/documentation/WEB-INF/jtidy.properties</code>
(the
-        location can be changed in the above sitemap snippet). A sample config file is given
below:</p>
-        
-        <source>
-indent=yes
-indent-spaces=8
-wrap=72
-markup=no
-output-xml=no
-input-xml=no
-show-warnings=yes
-numeric-entities=yes
-quote-marks=yes
-quote-nbsp=yes
-quote-ampersand=yes
-break-before-br=yes
-uppercase-tags=no
-uppercase-attributes=no
-char-encoding=latin1
-        </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
comes
-        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
locationmap.</warning>
-        
-      </section>
-
--->
-
       <section>
         <title>Link Rewriting</title>
         <p>The locationmap can be used to rewrite URLs when the page is generated.



Mime
View raw message