You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/07/09 10:40:02 UTC
svn commit: r209935 -
/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/locationmap/index.xml
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>
- <match pattern="lenya/**.xml">
- <location src="http://lenya.zones.apache.org:8888/default/live/{1}.html?raw=true" />
- </match>
- </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>
-<map:match pattern="lenya/**.xml">
- <map:generate type="html" src="{lm:{0}}" />
- <map:transform src="{forrest:stylesheets}/html2document.xsl" />
- <map:serialize type="xml"/>
-</map:match>
- </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>
-<map:components>
- <map:generators default="file">
- <map:generator name="html"
- src="org.apache.cocoon.generation.HTMLGenerator">
- <jtidy-config>WEB-INF/jtidy.properties</jtidy-config>
- </map:generator>
- </map:generators>
-</map:components>
- </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.