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/01/14 17:21:34 UTC
svn commit: r125178 - in forrest/trunk: etc/cocoon_upgrade lib/core main/webapp main/webapp/WEB-INF main/webapp/WEB-INF/xconf
Author: rgardler
Date: Fri Jan 14 08:21:31 2005
New Revision: 125178
URL: http://svn.apache.org/viewcvs?view=rev&rev=125178
Log:
upgrade to Cocoon R125082
Added:
forrest/trunk/lib/core/cocoon-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r125082.jar (contents, props changed)
forrest/trunk/main/webapp/WEB-INF/xconf/
forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf
forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf.bak
Removed:
forrest/trunk/lib/core/cocoon-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r111170.jar
forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r111170.jar
Modified:
forrest/trunk/etc/cocoon_upgrade/README.txt
forrest/trunk/etc/cocoon_upgrade/build.xml
forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl
forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh
forrest/trunk/main/webapp/WEB-INF/cocoon.xconf
forrest/trunk/main/webapp/faq.xmap
forrest/trunk/main/webapp/menu.xmap
forrest/trunk/main/webapp/resources.xmap
forrest/trunk/main/webapp/sitemap.xmap
forrest/trunk/main/webapp/status.xmap
forrest/trunk/main/webapp/tabs.xmap
Modified: forrest/trunk/etc/cocoon_upgrade/README.txt
Url: http://svn.apache.org/viewcvs/forrest/trunk/etc/cocoon_upgrade/README.txt?view=diff&rev=125178&p1=forrest/trunk/etc/cocoon_upgrade/README.txt&r1=125177&p2=forrest/trunk/etc/cocoon_upgrade/README.txt&r2=125178
==============================================================================
--- forrest/trunk/etc/cocoon_upgrade/README.txt (original)
+++ forrest/trunk/etc/cocoon_upgrade/README.txt Fri Jan 14 08:21:31 2005
@@ -6,15 +6,15 @@
Latest Release of Cocoon that has been incorporated (svn info):
- URL: http://svn.apache.org/repos/asf/cocoon/trunk
- Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
- Revision: 111170
- Node Kind: directory
- Schedule: normal
- Last Changed Author: crossley
- Last Changed Rev: 110094
- Last Changed Date: 2004-12-06 22:48:05 -0800 (Mon, 06 Dec 2004)
- Properties Last Updated: 2004-11-11 19:09:27 -0800 (Thu, 11 Nov 2004)
+URL: https://svn.apache.org/repos/asf/cocoon/trunk
+Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
+Revision: 125082
+Node Kind: directory
+Schedule: normal
+Last Changed Author: cziegeler
+Last Changed Rev: 125082
+Last Changed Date: 2005-01-13 16:00:06 +0000 (Thu, 13 Jan 2005)
+Properties Last Updated: 2005-01-12 20:34:35 +0000 (Wed, 12 Jan 2005)
Instructions for use:
Modified: forrest/trunk/etc/cocoon_upgrade/build.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/etc/cocoon_upgrade/build.xml?view=diff&rev=125178&p1=forrest/trunk/etc/cocoon_upgrade/build.xml&r1=125177&p2=forrest/trunk/etc/cocoon_upgrade/build.xml&r2=125178
==============================================================================
--- forrest/trunk/etc/cocoon_upgrade/build.xml (original)
+++ forrest/trunk/etc/cocoon_upgrade/build.xml Fri Jan 14 08:21:31 2005
@@ -23,12 +23,12 @@
<!-- ===============================================================
Set properties
=============================================================== -->
- <property name="cocoon.home" location="../../../../cocoon-2.1"/>
+ <property name="cocoon.home" location="../../../cocoon"/>
<property name="forrest.home" location="../../"/>
</target>
<target name="import-cocoon-xconf" depends="init">
- <xslt force="true" in="${cocoon.home}/src/webapp/WEB-INF/cocoon.xconf" out="${forrest.home}/main/webapp/WEB-INF/cocoon.xconf" style="./upgrade-cocoon-xconf.xsl" >
+ <xslt force="true" in="${cocoon.home}/src/webapp/WEB-INF/xconf/cocoon-core.xconf" out="${forrest.home}/main/webapp/WEB-INF/xconf/forrest-core.xconf" style="./upgrade-cocoon-xconf.xsl" >
<outputproperty name="indent" value="yes"/>
</xslt>
</target>
Modified: forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl?view=diff&rev=125178&p1=forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl&r1=125177&p2=forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl&r2=125178
==============================================================================
--- forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl (original)
+++ forrest/trunk/etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl Fri Jan 14 08:21:31 2005
@@ -40,37 +40,40 @@
</xsl:comment>
<xsl:comment>
=======================================================================
-File created by etc/cocoon_upgrade/upgrade-skinconf.xsl
+File created by etc/cocoon_upgrade/upgrade-cocoon-xconf.xsl
Please do not Edit!!!!!
========================================================================
</xsl:comment>
+
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="cocoon">
+ <xsl:template match="components">
+
<xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates select="sitemap"/>
- <xsl:apply-templates select="input-modules"/>
- <xsl:apply-templates select="source-factories"/>
- <xsl:apply-templates select="entity-resolver"/>
- <xsl:apply-templates select="xml-parser"/>
- <xsl:apply-templates select="xslt-processor"/>
- <xsl:apply-templates select="component"/>
- <xsl:apply-templates select="xpath-processor"/>
- <xsl:apply-templates select="xmlizer"/>
- <xsl:apply-templates select="transient-store"/>
- <xsl:apply-templates select="store"/>
- <xsl:apply-templates select="persistent-store"/>
- <xsl:apply-templates select="store-janitor"/>
- <xsl:apply-templates select="classloader"/>
- <xsl:apply-templates select="xml-serializer"/>
- <xsl:apply-templates select="xml-deserializer"/>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates select="include"/>
+ <xsl:apply-templates select="sitemap"/>
+ <xsl:apply-templates select="input-modules"/>
+ <xsl:apply-templates select="source-factories"/>
+ <xsl:apply-templates select="entity-resolver"/>
+ <xsl:apply-templates select="xml-parser"/>
+ <xsl:apply-templates select="xslt-processor"/>
+ <xsl:apply-templates select="component"/>
+ <xsl:apply-templates select="xpath-processor"/>
+ <xsl:apply-templates select="xmlizer"/>
+ <xsl:apply-templates select="transient-store"/>
+ <xsl:apply-templates select="store"/>
+ <xsl:apply-templates select="persistent-store"/>
+ <xsl:apply-templates select="store-janitor"/>
+ <xsl:apply-templates select="classloader"/>
+ <xsl:apply-templates select="xml-serializer"/>
+ <xsl:apply-templates select="xml-deserializer"/>
</xsl:copy>
</xsl:template>
<!-- Whole elements trees that need to be copied as is -->
- <xsl:template match="sitemap|component-instance|xml-parser|xslt-processor|xpath-processor|classloader|xml-serializer|xml-deserializer">
+ <xsl:template match="sitemap|component-instance|xml-parser|xslt-processor|xpath-processor|classloader|xml-serializer|xml-deserializer|include">
<xsl:copy>
<xsl:copy-of select="@*"/>
<!-- FIXME: remove comment() elements -->
Modified: forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh
Url: http://svn.apache.org/viewcvs/forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh?view=diff&rev=125178&p1=forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh&r1=125177&p2=forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh&r2=125178
==============================================================================
--- forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh (original)
+++ forrest/trunk/etc/cocoon_upgrade/upgrade_cocoon_jars.sh Fri Jan 14 08:21:31 2005
@@ -25,11 +25,11 @@
## MUST BE OVERRIDDEN:
COCOON_VERSION=2.2.0-dev
-COCOON_HOME=$BASE/cocoon/2.2
-FORREST=$BASE/forrest/van
+COCOON_HOME=$BASE/openSource/cocoon
+FORREST=$BASE/openSource/forrest
## CAN BE OVERRIDDEN:
-JARSUFFIX=${COCOON_VERSION}-r111170
+JARSUFFIX=${COCOON_VERSION}-r125082
## Not necessary, at least for Cocoon 2.2.x
NEKODTD_VERSION=0.1.10
Deleted: /forrest/trunk/lib/core/cocoon-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-asciiart-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-batik-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-chaperon-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-fop-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-html-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-linkrewriter-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-lucene-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-profiler-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Deleted: /forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r111170.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r111170.jar?view=auto&rev=125177
==============================================================================
Added: forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r125082.jar
Url: http://svn.apache.org/viewcvs/forrest/trunk/lib/core/cocoon-xsp-block-2.2.0-dev-r125082.jar?view=auto&rev=125178
==============================================================================
Binary file. No diff available.
Modified: forrest/trunk/main/webapp/WEB-INF/cocoon.xconf
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/WEB-INF/cocoon.xconf?view=diff&rev=125178&p1=forrest/trunk/main/webapp/WEB-INF/cocoon.xconf&r1=125177&p2=forrest/trunk/main/webapp/WEB-INF/cocoon.xconf&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/WEB-INF/cocoon.xconf (original)
+++ forrest/trunk/main/webapp/WEB-INF/cocoon.xconf Fri Jan 14 08:21:31 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright 2002-2004 The Apache Software Foundation
+ Copyright 1999-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,748 +14,19 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+<!-- CVS $Id: cocoon.xconf 123675 2004-12-29 20:39:50Z sylvain $ -->
<cocoon version="2.2">
<!--+
- | This is the Apache Cocoon configuration file. This is the place
- | where you configure the components that Cocoon uses internally (stuff
- | like the cache) or handles to the pipeline components
- | (stuff like XML parsers or XSLT processors).
+ | This is the main Apache Cocoon configuration file.
+ | It contains includes for the core components and for
+ | each of the blocks that are to be loaded.
+ |
+ | You can add your own components here or include some
+ | additional external files.
+-->
-<!-- =========================== Sitemap =============================== -->
+ <include src="context://WEB-INF/xconf/forrest-core.xconf"/>
- <!--+
- | New implementation of the sitemap. It is interpreted, so load times
- | are super-fast, and request processing is slightly faster than with
- | the compiled engine thanks to the HotSpot VM.
- |
- | Reloading of the sitemap:
- | The check-reload attribute determines if the sitemap is to be
- | reloaded on change.
- | Set to "no", the sitemap is generated once at startup.
- | Set to "yes", the sitemap is regenerated if it changes.
- |
- | For development environment, set the check-reload to yes.
- | For production environment, it is advisable to set check-reload to no.
- +-->
- <sitemap check-reload="yes" file="context://sitemap.xmap" logger="sitemap"/>
- <!-- config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml" -->
-
-<!-- =================== Sitemap Input/Output Modules ====================== -->
-
- <!--+
- | InputModules are a replacement to reading values directly
- | e.g. from request parameters. By using this abstraction and
- | indirection, other components can be more generic and changes
- | to the application logic are easier.
- |
- | A number of components already use InputModules: the sitemap processor,
- | flow, some matchers, the linkrewriting transformer, database actions
- | and more.
- |
- | For example the sitemap processor allows to obtain a value
- | named "foo" from an the InputModule for request parameters by
- | writing {request-param:foo} wherever a sitemap variable is
- | allowed.
- |
- | Some InputModules need the help of other InputModules to
- | obtain values and only apply a function to the obtained value
- | or change the name of the attribute. These modules usually
- | carry "Meta" in their name. An example is the ChainMetaModule
- | which tries several other modules in turn until a non-null
- | value is obtained or all modules are tied.
- |
- | For details and optional configuration parameters refer to the
- | accompanying javadocs.
- +-->
- <input-modules>
- <component-instance class="org.apache.cocoon.components.modules.input.GlobalInputModule" logger="core.modules.input" name="global"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RequestModule" logger="core.modules.input" name="request"/>
- <component-instance class="org.apache.cocoon.components.modules.input.BaseLinkModule" logger="core.modules.input" name="baselink"/>
- <component-instance class="org.apache.cocoon.components.modules.input.SessionModule" logger="core.modules.input" name="session"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RequestParameterModule" logger="core.modules.input" name="request-param"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RawRequestParameterModule" logger="core.modules.input" name="raw-request-param"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RequestAttributeModule" logger="core.modules.input" name="request-attr"/>
- <component-instance class="org.apache.cocoon.components.modules.input.HeaderAttributeModule" logger="core.modules.input" name="request-header"/>
- <component-instance class="org.apache.cocoon.components.modules.input.SessionAttributeModule" logger="core.modules.input" name="session-attr"/>
- <component-instance class="org.apache.cocoon.components.modules.input.SystemPropertyModule" logger="core.modules.input" name="system-property"/>
- <component-instance class="org.apache.cocoon.components.modules.input.StringConstantModule" logger="core.modules.input" name="constant"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RandomNumberModule" logger="core.modules.input" name="random"/>
- <component-instance class="org.apache.cocoon.components.modules.input.DigestMetaModule" logger="core.modules.input" name="digest"/>
- <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="date">
- <!-- <format>EEE, d MMM yyyy HH:mm:ss Z</format> -->
- <!--Eg: Mon, 28 Oct 2002 03:08:49 +1100 -->
- </component-instance>
- <component-instance class="org.apache.cocoon.components.modules.input.NullInputModule" logger="core.modules.input" name="nullinput"/>
- <component-instance class="org.apache.cocoon.components.modules.input.RealPathModule" logger="core.modules.input" name="realpath"/>
- <component-instance class="org.apache.cocoon.components.modules.input.XMLMetaModule" logger="core.modules.input" name="xmlmeta"/>
- <component-instance class="org.apache.cocoon.components.modules.input.MapMetaModule" logger="core.modules.input" name="mapmeta"/>
- <component-instance class="org.apache.cocoon.components.modules.input.DateMetaInputModule" logger="core.modules.input" name="datemeta"/>
- <component-instance class="org.apache.cocoon.components.modules.input.JXPathMetaModule" logger="core.modules.input" name="jxpath"/>
- <component-instance class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule" logger="core.modules.input" name="simplemap"/>
-
- <component-instance logger="core.modules.input" name="forrest" class="org.apache.cocoon.components.modules.input.ChainMetaModule">
- <input-module name="request-param"/>
- <input-module name="request-attr"/>
- <input-module name="session-attr"/>
- <input-module name="defaults"/>
- </component-instance>
-
- <component-instance name="defaults" class="org.apache.forrest.conf.ForrestConfModule">
- <values>
- <skin>@project.skin@</skin>
- <menu-scheme>@project.menu-scheme@</menu-scheme>
- <bugtracking-url>@project.bugtracking-url@</bugtracking-url>
- <issues-rss-url>@project.issues-rss-url@</issues-rss-url>
- <i18n>@project.i18n@</i18n>
- <home>@forrest.home@/</home>
- <context>@context.home@</context>
- <skins-dir>@context.home@/skins/</skins-dir>
- <stylesheets>@context.home@/resources/stylesheets</stylesheets>
- <plugins>@forrest.home@/build/plugins</plugins>
- </values>
- </component-instance>
-
- <component-instance name="project" class="org.apache.forrest.conf.ForrestConfModule">
- <values>
- <skin>@project.skin@</skin>
- <sitemap>@project.home@/@project.sitemap@</sitemap>
- <status>@project.home@/@project.status@</status>
- <skinconf>@project.home@/@project.skinconf@</skinconf>
- <doc>@project.home@/@project.content-dir@/</doc>
- <content>@project.home@/@project.raw-content-dir@/</content>
- <content.xdocs>@project.home@/@project.xdocs-dir@/</content.xdocs>
- <translations>@project.home@/@project.translations-dir@</translations>
- <resources.stylesheets>@project.home@/@project.stylesheets-dir@/</resources.stylesheets>
- <resources.images>@project.home@/@project.images-dir@/</resources.images>
- <skins-dir>@project.home@/@project.skins-dir@/</skins-dir>
- <temp-dir>@project.temp-dir@</temp-dir>
- </values>
- </component-instance>
-
- <component-instance
- class="org.apache.cocoon.components.modules.input.XMLFileModule"
- logger="core.modules.xml" name="skinconf"/>
-
- <component-instance
- class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
- logger="core.modules.mapper" name="conf">
- <input-module name="skinconf">
- <file src="cocoon://skinconf.xml" reloadable="true" />
- </input-module>
- <prefix>/skinconfig/</prefix>
- </component-instance>
-
- <!-- For the site: scheme -->
- <component-instance
- class="org.apache.cocoon.components.modules.input.XMLFileModule"
- logger="core.modules.xml" name="linkmap"/>
-
- <!-- Links to URIs within the site -->
- <component-instance
- class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
- logger="core.modules.mapper" name="site"/>
-
- <!-- Links to external URIs, as distinct from 'site' URIs -->
- <component-instance
- class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
- logger="core.modules.mapper" name="ext"/>
-
-</input-modules>
-
-
-<!-- ================================= XML ================================ -->
-
- <!--+
- | Source Factories
- |
- | Each source factory adds a special uri schemes to the system.
- +-->
- <source-factories>
- <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
- <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory" name="context"/>
- <component-instance class="org.apache.cocoon.components.source.impl.SitemapSourceFactory" name="cocoon"/>
- <component-instance class="org.apache.cocoon.components.source.impl.ZipSourceFactory" name="zip"/>
- <!-- the "*" protocol handles all uri schemes that are not explicitely specified. This includes all
- JDK standard protocols, with special handling of the "file:" protocol which is modifiable
- (can be written to) and traversable (directory structures can be crawled). -->
- <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
- </source-factories>
- <!--+
- | Entity resolution catalogs
- |
- | The default catalog is distributed at WEB-INF/entities/catalog
- | This is the contextual pathname for Cocoon resources.
- | You can override this path, if necessary, using the "catalog" parameter:
- |
- | <parameter name="catalog" value="WEB-INF/entities/catalog"/>
- |
- | However, it is probably desirable to leave this default catalog config
- | and declare your own local catalogs, which are loaded in addition to
- | the system catalog.
- |
- | There are various ways to do local configuration.
- | See the Apache Forrest documentation:
- | http://forrest.apache.org/docs/your-project.html
- | http://forrest.apache.org/docs/validation.html
- |
- | local-catalog:
- | The full filesystem pathname to a single local catalog file.
- |
- | <parameter name="local-catalog" value="/usr/local/sgml/mycatalog"/>
- |
- | verbosity:
- | The level of messages for status/debug (messages go to standard output)
- | The following messages are provided ...
- | 0 = none
- | 1 = ? (... not sure yet)
- | 2 = 1+, Loading catalog, Resolved public, Resolved system
- | 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
- | 10 = 3+, List all catalog entries when loading a catalog
- | (Cocoon also logs the "Resolved public" messages.)
- +-->
- <entity-resolver logger="core.resolver">
- <parameter name="catalog" value="resources/schema/catalog.xcat"/>
- <parameter name="verbosity" value="1"/>
- </entity-resolver>
-
- <!--+
- | XML Parser
- |
- | The default parser used in Apache Cocoon is
- | org.apache.excalibur.xml.impl.JaxpParser. Apache Cocoon requires a
- | JAXP 1.1 parser.
- | If you have problems because your servlet environment uses its own
- | parser not conforming to JAXP 1.1 try using the alternative
- | XercesParser instead of the JaxpParser. To activate the XercesParser,
- | change the class attribute to
- | class="org.apache.excalibur.xml.impl.XercesParser"
- | You will also need to add a system property to your JVM,
- | probably on the startup of your servlet engine like this:
- | -Dorg.apache.excalibur.xml.sax.SAXParser=org.apache.excalibur.xml.impl.XercesParser
- |
- | Configuration for the JaxpParser (not the XercesParser!):
- | - validate (boolean, default = false): This parameter causes the parser
- | to be a validating parser.
- | XML validation is only being used for the documentation build.
- | (If you are going to use it elsewhere, then do so with caution.)
- | You really should have validated all of your XML documents already,
- | according to their proper DTD or schema. Do not expect Cocoon
- | to do it.
- | - namespace-prefixes (boolean, default = false) : do we want
- | namespaces declarations also as 'xmlns:' attributes ?
- | Note : setting this to true confuses some XSL processors
- | (e.g. Saxon).
- | - stop-on-warning (boolean, default = true) : should the parser
- | stop parsing if a warning occurs ?
- | - stop-on-recoverable-error (boolean, default = true) : should the
- | parser stop parsing if a recoverable error occurs ?
- | - reuse-parsers (boolean, default = true) : do we want to reuse
- | parsers or create a new parser for each parse ?
- | Note : even if this parameter is true, parsers are not recycled
- | in case of parsing errors : some parsers (e.g. Xerces) do not like
- | to be reused after failure.
- | - sax-parser-factory (string) : the name of the SAXParserFactory
- | implementation class to be used instead of using the standard
- | JAXP mechanism (SAXParserFactory.newInstance()). This allows to
- | choose unambiguously the JAXP implementation to be used when
- | several of them are available in the classpath.
- | - document-builder-factory (string) : the name of the
- | DocumentBuilderFactory implementation to be used (similar to
- | sax-parser-factory for DOM).
- +-->
- <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser" logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">
- <parameter name="validate" value="false"/>
- <parameter name="namespace-prefixes" value="false"/>
- <parameter name="stop-on-warning" value="true"/>
- <parameter name="stop-on-recoverable-error" value="true"/>
- <parameter name="reuse-parsers" value="false"/>
- <!--parameter name="sax-parser-factory" value="???"/-->
- <!--parameter name="document-builder-factory" value="???"/-->
- <!-- drop-dtd-comments: causes all comment events originating from DTD
- comments to be dropped right after parsing -->
- <parameter name="drop-dtd-comments" value="true"/>
- </xml-parser>
-
-
- <!--+
- | XSLT Processor
- |
- | 'incremental-processing' (only works with Xalan) allows the XSLT
- | processor to start the output of the transformation as soon as possible.
- | if set to false, the transforer waits until the end of the
- | transformation to deliver the output.
- | WARNING: * if you enable incremental-processing, you should be aware of
- | the following bug:
- | http://issues.apache.org/bugzilla/show_bug.cgi?id=13186
- | * incremental-processing creates an additional, non-pooled thread.
- | * using incremental-processing does not save memory, the input
- | tree will still be build completely.
- | * incremental processing is a 'static' thing in Xalan: if you
- | enable it on one xslt-processor, enable it on all.
- +-->
- <xslt-processor logger="core.xslt-processor">
- <parameter name="use-store" value="true"/>
- <parameter name="incremental-processing" value="false"/>
- </xslt-processor>
-
- <!--+
- | XSLT Processor using xsltc from Xalan
- | For Interpreted Xalan use:
- | <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
- +-->
- <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
- <parameter name="use-store" value="false"/>
- <parameter name="transformer-factory" value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
- </component>
-
- <!--+
- | Xalan XSLT Processor
- +-->
- <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
- <parameter name="use-store" value="false"/>
- <parameter name="incremental-processing" value="false"/>
- <parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
- </component>
-
- <!--+
- | Saxon XSLT Processor
- | For old (6.5.2) Saxon use:
- | <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
- | For new (7+) Saxon use:
- | <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
- +-->
- <component logger="core.xslt-processor"
- role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
- class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl">
- <parameter name="use-store" value="false"/>
- <parameter name="incremental-processing" value="false"/>
- <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
- </component>
-
- <!-- Xpath Processor: -->
- <xpath-processor class="org.apache.excalibur.xml.xpath.XPathProcessorImpl" logger="core.xpath-processor"/>
-
- <!-- The XMLizers converts different mime-types to XML -->
- <xmlizer>
- <parser mime-type="text/xml" role="org.apache.excalibur.xml.sax.SAXParser"/>
- <!--..... Start configuration from 'tidy' -->
-
-
- <parser mime-type="text/html" role="org.apache.excalibur.xml.sax.SAXParser/HTML"/>
-
-<!--..... End configuration from 'tidy' -->
-</xmlizer>
-
-<!-- ============================ Object Stores =========================== -->
-
- <!--+
- | Transient Store: holds objects that don't have to survive shutdown
- +-->
- <transient-store logger="core.store.transient">
-
- <!--+
- | Indicates how many objects will be hold in the cache.
- | When the number of maxobjects has been reached. The last object
- | in the cache will be thrown out.
- +-->
- <parameter name="maxobjects" value="100"/>
-
- <!-- Turns swapping of the objects into persistent cache on and off. -->
- <parameter name="use-persistent-cache" value="false"/>
- </transient-store>
-
- <!--+
- | Store: generic store. The default implementation is an in-memory store
- | backed by the persistent store (see below). This forms a two-stage
- | cache composed of a fast in-memory MRU front-end and a persistent
- | back-end storing less used objects.
- |
- | Common configuration parameters:
- | maxobjects: Indicates how many objects will be hold in the cache.
- | When the number of maxobjects has been reached. The last object
- | in the cache will be thrown out.
- +-->
- <store logger="core.store">
- <parameter name="maxobjects" value="100"/>
- </store>
-
- <!--+
- | Persistent Store: holds objects that have to survive shutdown.
- | WARNING: FilesystemStore is broken. Cocoon uses DefaultStore based
- | on the Avalon Excalibur JispStore instead.
- |
- | Common configuration parameters:
- | use-cache-directory: Indicates that cache directory specified in
- | web.xml should be used.
- | use-work-directory: Indicates that work directory specified in
- | web.xml should be used.
- | directory: Specifies directory to use. Absolute or relative to the
- | work directory.
- |
- | DefaultStore configuration parameters:
- | datafile: Name of the store file to use. Defaults to cocoon.dat
- | indexfile: Name of the index file to use. Defaults to cocoon.idx
- | order: FIXME: put description here.
- +-->
- <persistent-store logger="core.store.persistent">
- <parameter name="use-cache-directory" value="true"/>
- <parameter name="order" value="2701"/>
- </persistent-store>
-
- <!--+
- | Store Janitor: the store garbage collector and memory usage controller.
- |
- | Be careful with the heapsize and freememory parameters. Wrong values
- | can cause high cpu usage. Example configuration:
- | Jvm settings:
- | -Xmx200000000
- | store-janitor settings:
- | <parameter name="freememory" value="5000000"/>
- | <parameter name="heapsize" value="150000000"/>
- |
- | It is recommended to have heapsize equal to -Xmx, especially on Sun's
- | JVM which are unable to shrink its heap once it grows above minimum.
- | Freememory should be greater than amount of memory necessary for normal
- | application operation.
- +-->
- <store-janitor logger="core.store.janitor">
- <!-- How much free memory shall be available in the jvm -->
- <parameter name="freememory" value="1000000"/>
- <!-- Indicates the limit of the jvm memory consumption. The default max
- heapsize for Sun's JVM is 64Mb -->
- <parameter name="heapsize" value="67108864"/>
- <!-- How often shall the cleanup thread check memory -->
- <parameter name="cleanupthreadinterval" value="10"/>
- <!-- Indicates the thread priority of the cleanup thread -->
- <parameter name="threadpriority" value="5"/>
- <!-- How much percent of the elements of each registered Store
- shall be removed when low on memory. Default 10% -->
- <parameter name="percent_to_free" value="10"/>
- </store-janitor>
-
-<!-- ========================= Protocol Handlers =========================== -->
-
-
-<!-- ================ Internationalization Catalogs =================== -->
-
- <!--+
- | I18n Bundle Factory
- |
- | BundleFactory loads Bundles with i18n resources for the given locale.
- | Bundles are loaded from the 'catalogue_location'. Bundle base name is
- | 'catalogue_name' value.
- | If 'cache-at-startup' is true then BundleFactory preloads bundles.
- +-->
- <i18n-bundles logger="core.i18n-bundles">
- <catalogue-name>messages</catalogue-name>
- <catalogue-location>i18n/translations</catalogue-location>
- <cache-at-startup>true</cache-at-startup>
- </i18n-bundles>
-
-<!-- ================ XSP (eXtensible Server Pages) ===================== -->
-
- <!--+
- | Program Generator
- |
- | The ProgamGenerator builds programs from a XML document written in a
- | MarkupLanguage.
- |
- | auto-reload: whether the system should check if the source was
- | modified and reload of consequence.
- | root-package: the java package to use for the generated classes
- | preload: whether the system should preload the necessary components
- +-->
- <program-generator logger="core.program-generator">
- <parameter name="auto-reload" value="true"/>
- <parameter name="root-package" value="org.apache.cocoon.www"/>
- <parameter name="preload" value="true"/>
- </program-generator>
-
- <!--+
- | Programming Languages for the XSP pages
- +-->
- <programming-languages>
- <java-language logger="core.language.java" name="java">
-
- <!-- Specifies which formatter to use to format source code.
- This parameter is optional.
- It is commented out because of bug #5689: Java "code-formatter"
- incorrectly formats double values -->
- <!--parameter name="code-formatter" value="org.apache.cocoon.components.language.programming.java.JstyleFormatter"/-->
-
- <!-- A singleton-like implementation of a ClassLoader -->
- <parameter name="class-loader" value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
-
- <!--+
- | Specifies which Java compiler to use. Possible variants are:
- |
- | - Javac: the java compiler that comes with JDK
- | - Pizza: the Pizza java compiler
- | - Jikes: the Jikes java compiler
- | - EclipseJavaCompiler: the Eclipse JTD java compiler
- |
- | NOTE: the Eclipse JTD is the only java compiler that is capable
- | of imports classes thru the context classloader. All other
- | compilers import classes from the JVM classpath and might
- | normally result in ClassNotFound problems at compilation
- | time. It is *HIGHLY* suggested that you use this compiler
- | or you might experience problems in some servlet containers.
- +-->
- <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/-->
- <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Pizza"/-->
- <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Jikes"/-->
- <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.EclipseJavaCompiler"/>
-
- </java-language>
-
- <!-- Interpreted JavaScript language -->
- <js-language logger="core.language.js" name="js"/>
- </programming-languages>
-
- <!--+
- | Logisheets
- |
- | This section defines the XSP logicsheets. A logicsheet is a special
- | XSLT stylesheet used to translate user-defined dynamic markup into
- | equivalent XSP markup that embeds directives for a given markup
- | language.
- |
- | Logicsheets are the XSP equivalent of taglibs. For info about
- | the tags included in the default taglibs, please, refer to the
- | documentation.
- +-->
- <markup-languages>
- <xsp-language logger="core.markup.xsp" name="xsp">
- <parameter name="prefix" value="xsp"/>
- <parameter name="uri" value="http://apache.org/xsp"/>
-
- <!--+
- | Properties for the java language
- +-->
- <target-language name="java">
- <!-- Defines the XSP Core logicsheet for the Java language -->
- <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
-
- <!-- The Request logicsheet: access request parameters -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-request"/>
- <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/request.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Response logicsheet: access response parameters -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-response"/>
- <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/response.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Session logicsheet: manages and access the session -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-session"/>
- <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Cookie logicsheet: manages and access cookies -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-cookie"/>
- <parameter name="uri" value="http://apache.org/xsp/cookie/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/cookie.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Log logicsheet: access the cocoon logs from an xsp page -->
- <builtin-logicsheet>
- <parameter name="prefix" value="log"/>
- <parameter name="uri" value="http://apache.org/xsp/log/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/log.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Utility logicsheet -->
- <builtin-logicsheet>
- <parameter name="prefix" value="util"/>
- <parameter name="uri" value="http://apache.org/xsp/util/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/util.xsl"/>
- </builtin-logicsheet>
-
- <!-- The xsp-formval taglib serves as interface to retrieve
- validation results from a request attribute -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-formval"/>
- <parameter name="uri" value="http://apache.org/xsp/form-validator/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl"/>
- </builtin-logicsheet>
-
- <!-- The sel taglib allows to put multiple pages / view into
- one xsp. While in general it is good style to put
- different views into different xsp because they're more
- easily maintained, this is a useful feature with
- e.g. with long forms that are broken into parts -->
- <builtin-logicsheet>
- <parameter name="prefix" value="sel"/>
- <parameter name="uri" value="http://apache.org/xsp/sel/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/sel.xsl"/>
- </builtin-logicsheet>
-
- <!-- The Action logicsheet -->
- <builtin-logicsheet>
- <parameter name="prefix" value="action"/>
- <parameter name="uri" value="http://apache.org/cocoon/action/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/action.xsl"/>
- </builtin-logicsheet>
-
- <!-- The capture taglib is for capturing parts of the XSP-generated
- XML as XML fragments or DOM nodes -->
- <builtin-logicsheet>
- <parameter name="prefix" value="capture"/>
- <parameter name="uri" value="http://apache.org/cocoon/capture/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/capture.xsl"/>
- </builtin-logicsheet>
-
- <!-- The XScript logicsheet -->
- <builtin-logicsheet>
- <parameter name="prefix" value="xscript"/>
- <parameter name="uri" value="http://apache.org/xsp/xscript/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xscript.xsl"/>
- </builtin-logicsheet>
-
- <!-- The SOAP logicsheet -->
- <builtin-logicsheet>
- <parameter name="prefix" value="soap"/>
- <parameter name="uri" value="http://apache.org/xsp/soap/3.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/soap.xsl"/>
- </builtin-logicsheet>
-
- <!-- The JPath logicsheet -->
- <builtin-logicsheet>
- <parameter name="prefix" value="jpath"/>
- <parameter name="uri" value="http://apache.org/xsp/jpath/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/jpath.xsl"/>
- </builtin-logicsheet>
-
- <!-- The input logicsheet allows easy access to InputModules -->
- <builtin-logicsheet>
- <parameter name="prefix" value="input"/>
- <parameter name="uri" value="http://apache.org/cocoon/xsp/input/1.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/input.xsl"/>
- </builtin-logicsheet>
- </target-language>
-
- <!--+
- | Properties for the javascript language
- +-->
- <target-language name="js">
- <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/xsp.xsl"/>
-
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-request"/>
- <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/request.xsl"/>
- </builtin-logicsheet>
-
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-response"/>
- <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/response.xsl"/>
- </builtin-logicsheet>
-
- <builtin-logicsheet>
- <parameter name="prefix" value="xsp-session"/>
- <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
- <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/session.xsl"/>
- </builtin-logicsheet>
- </target-language>
- </xsp-language>
- </markup-languages>
-
- <!-- Xscript -->
- <xscript logger="core.xscript">
- <parameter name="xscript:copy-of" value="resource://org/apache/cocoon/components/xscript/xslt/copy-of.xsl"/>
- <parameter name="xscript:value-of" value="resource://org/apache/cocoon/components/xscript/xslt/value-of.xsl"/>
- </xscript>
-
-<!-- ====================== System Components =========================== -->
-
- <!--+
- | The core classloader implementation
- +-->
- <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl" logger="core.classloader"/>
-
- <!--+
- | XML compiler/decompiler
- |
- | these components are used to process SAX events and produce a binary
- | representation that is much more compact and efficient for
- | subsequent parsing. These are used by the cache system to save
- | the intermediate results of the pipeline stages reducing the overhead
- | of xml parsing/serialization.
- +-->
- <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler" logger="core.xml-serializer" pool-grow="4" pool-max="32" pool-min="8"/>
- <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter" logger="core.xml-deserializer" pool-grow="4" pool-max="32" pool-min="8"/>
-
- <!--+
- | The Monitor keeps track on changes to a Resource.
- +-->
- <monitor logger="core.monitor">
- <thread frequency="10000" priority="5"/>
- </monitor>
-
- <!--+
- | The Cache Manager is a component that can be used to cache content.
- | It is currently used by the cinclude transformer
- +-->
- <component class="org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager" role="org.apache.cocoon.transformation.helpers.IncludeCacheManager">
- <!-- Set the preemptive-loader-url to a pipeline inside Cocoon that
- contains the preemptive loader action. The URL must be absolute!
- <parameter name="preemptive-loader-url"
- value="http://localhost:8080/cocoon/samples/cinclude/loader"/>
- -->
- </component>
-
-
- <!-- Profiler:
- The profiler facilitates the gathering of statistics about timings of
- different steps of pipelines. Profiler consists of several components:
- profiling pipeline and profiler generator
- which are used to generate the profile report. You need to enable all of
- these components to use profiler.
- -->
- <profiler results="10"/>
-<!--..... End configuration from 'profiler' -->
-<!--..... Start configuration from 'deprecated' -->
-
-
- <!--+
- | URL Factory
- |
- | The url factory adds special url protocols to the system, they are then
- | available inside Cocoon, e.g. as a source argument for one of the sitemap
- | components.
- |
- | THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE
- +-->
- <url-factory logger="core.url-factory">
- <!-- Allows access to resources available from the ClassLoader, using getResource() method. -->
- <protocol class="org.apache.cocoon.components.url.ResourceURLFactory" name="resource"/>
- </url-factory>
-
- <!--+
- | Source Handler
- |
- | The source handler adds special url protocols to the system, they are
- | then available inside Cocoon, e.g. as a source argument for one of the
- | sitemap components.
- |
- | THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE
- +-->
- <source-handler logger="core.source-handler">
- <!-- file protocol : this is a WriteableSource -->
- <protocol class="org.apache.cocoon.components.source.FileSourceFactory" name="file"/>
- <!-- Allows access to resources available from the servlet context, using getResource() method. -->
- <protocol class="org.apache.cocoon.components.source.ContextSourceFactory" name="context"/>
- </source-handler>
-
-<!--..... End configuration from 'deprecated' -->
</cocoon>
+
Added: forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf?view=auto&rev=125178
==============================================================================
--- (empty file)
+++ forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf Fri Jan 14 08:21:31 2005
@@ -0,0 +1,698 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<components>
+
+<!--+
+ | This file defines the Cocoon core components.
+ +-->
+
+ <!-- Include the core roles definitions. This is for the sake of clarity,
+ as they are implicitely loaded at startup, but we may want to remove
+ this implicit behaviour in the future now that we have the include
+ mechanism. -->
+ <include src="resource://org/apache/cocoon/cocoon.roles"/>
+
+<!--+
+ | This is the Apache Cocoon configuration file. This is the place
+ | where you configure the components that Cocoon uses internally (stuff
+ | like the cache) or handles to the pipeline components
+ | (stuff like XML parsers or XSLT processors).
+ +-->
+
+<!-- =========================== Sitemap =============================== -->
+
+ <!--+
+ | New implementation of the sitemap. It is interpreted, so load times
+ | are super-fast, and request processing is slightly faster than with
+ | the compiled engine thanks to the HotSpot VM.
+ |
+ | Reloading of the sitemap:
+ | The check-reload attribute determines if the sitemap is to be
+ | reloaded on change.
+ | Set to "no", the sitemap is generated once at startup.
+ | Set to "yes", the sitemap is regenerated if it changes.
+ |
+ | For development environment, set the check-reload to yes.
+ | For production environment, it is advisable to set check-reload to no.
+ +-->
+ <sitemap check-reload="yes" file="context://sitemap.xmap" logger="sitemap"/>
+ <!-- config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml" -->
+
+
+<!-- =================== Sitemap Input/Output Modules ====================== -->
+
+ <!--+
+ | InputModules are a replacement to reading values directly
+ | e.g. from request parameters. By using this abstraction and
+ | indirection, other components can be more generic and changes
+ | to the application logic are easier.
+ |
+ | A number of components already use InputModules: the sitemap processor,
+ | flow, some matchers, the linkrewriting transformer, database actions
+ | and more.
+ |
+ | For example the sitemap processor allows to obtain a value
+ | named "foo" from an the InputModule for request parameters by
+ | writing {request-param:foo} wherever a sitemap variable is
+ | allowed.
+ |
+ | Some InputModules need the help of other InputModules to
+ | obtain values and only apply a function to the obtained value
+ | or change the name of the attribute. These modules usually
+ | carry "Meta" in their name. An example is the ChainMetaModule
+ | which tries several other modules in turn until a non-null
+ | value is obtained or all modules are tied.
+ |
+ | For details and optional configuration parameters refer to the
+ | accompanying javadocs.
+ +-->
+ <input-modules>
+ <component-instance class="org.apache.cocoon.components.modules.input.GlobalInputModule" logger="core.modules.input" name="global"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestModule" logger="core.modules.input" name="request"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.BaseLinkModule" logger="core.modules.input" name="baselink"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SessionModule" logger="core.modules.input" name="session"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestParameterModule" logger="core.modules.input" name="request-param"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RawRequestParameterModule" logger="core.modules.input" name="raw-request-param"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestAttributeModule" logger="core.modules.input" name="request-attr"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.HeaderAttributeModule" logger="core.modules.input" name="request-header"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SessionAttributeModule" logger="core.modules.input" name="session-attr"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SystemPropertyModule" logger="core.modules.input" name="system-property"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.StringConstantModule" logger="core.modules.input" name="constant"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RandomNumberModule" logger="core.modules.input" name="random"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DigestMetaModule" logger="core.modules.input" name="digest"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="date">
+ <!-- <format>EEE, d MMM yyyy HH:mm:ss Z</format> -->
+ <!--Eg: Mon, 28 Oct 2002 03:08:49 +1100 -->
+ </component-instance>
+ <component-instance class="org.apache.cocoon.components.modules.input.NullInputModule" logger="core.modules.input" name="nullinput"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RealPathModule" logger="core.modules.input" name="realpath"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.XMLMetaModule" logger="core.modules.input" name="xmlmeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.MapMetaModule" logger="core.modules.input" name="mapmeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DateMetaInputModule" logger="core.modules.input" name="datemeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.JXPathMetaModule" logger="core.modules.input" name="jxpath"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule" logger="core.modules.input" name="simplemap"/>
+
+ <component-instance logger="core.modules.input" name="forrest" class="org.apache.cocoon.components.modules.input.ChainMetaModule">
+ <input-module name="request-param"/>
+ <input-module name="request-attr"/>
+ <input-module name="session-attr"/>
+ <input-module name="defaults"/>
+ </component-instance>
+
+
+ <component-instance name="defaults" class="org.apache.forrest.conf.ForrestConfModule">
+ <values>
+ <skin>@project.skin@</skin>
+ <menu-scheme>@project.menu-scheme@</menu-scheme>
+ <bugtracking-url>@project.bugtracking-url@</bugtracking-url>
+ <issues-rss-url>@project.issues-rss-url@</issues-rss-url>
+ <i18n>@project.i18n@</i18n>
+ <home>@forrest.home@/</home>
+ <context>@context.home@</context>
+ <skins-dir>@context.home@/skins/</skins-dir>
+ <stylesheets>@context.home@/resources/stylesheets</stylesheets>
+ <plugins>@forrest.home@/build/plugins</plugins>
+ </values>
+ </component-instance>
+
+ <component-instance name="project" class="org.apache.forrest.conf.ForrestConfModule">
+ <values>
+ <skin>@project.skin@</skin>
+ <sitemap>@project.home@/@project.sitemap@</sitemap>
+ <status>@project.home@/@project.status@</status>
+ <skinconf>@project.home@/@project.skinconf@</skinconf>
+ <doc>@project.home@/@project.content-dir@/</doc>
+ <content>@project.home@/@project.raw-content-dir@/</content>
+ <content.xdocs>@project.home@/@project.xdocs-dir@/</content.xdocs>
+ <translations>@project.home@/@project.translations-dir@</translations>
+ <resources.stylesheets>@project.home@/@project.stylesheets-dir@/</resources.stylesheets>
+ <resources.images>@project.home@/@project.images-dir@/</resources.images>
+ <skins-dir>@project.home@/@project.skins-dir@/</skins-dir>
+ <temp-dir>@project.temp-dir@</temp-dir>
+ </values>
+ </component-instance>
+
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.XMLFileModule"
+ logger="core.modules.xml" name="skinconf"/>
+
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="conf">
+ <input-module name="skinconf">
+ <file src="cocoon://skinconf.xml" reloadable="true" />
+ </input-module>
+ <prefix>/skinconfig/</prefix>
+ </component-instance>
+
+ <!-- For the site: scheme -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.XMLFileModule"
+ logger="core.modules.xml" name="linkmap"/>
+
+ <!-- Links to URIs within the site -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="site"/>
+
+ <!-- Links to external URIs, as distinct from 'site' URIs -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="ext"/>
+
+</input-modules>
+
+
+
+<!-- ================================= XML ================================ -->
+
+ <!--+
+ | Source Factories
+ |
+ | Each source factory adds a special uri schemes to the system.
+ +-->
+ <source-factories>
+ <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory" name="context"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.SitemapSourceFactory" name="cocoon"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.ZipSourceFactory" name="zip"/>
+ <!-- the "*" protocol handles all uri schemes that are not explicitely specified. This includes all
+ JDK standard protocols, with special handling of the "file:" protocol which is modifiable
+ (can be written to) and traversable (directory structures can be crawled). -->
+ <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
+ </source-factories>
+ <!--+
+ | Entity resolution catalogs
+ |
+ | The default catalog is distributed at WEB-INF/entities/catalog
+ | This is the contextual pathname for Cocoon resources.
+ | You can override this path, if necessary, using the "catalog" parameter:
+ |
+ | <parameter name="catalog" value="WEB-INF/entities/catalog"/>
+ |
+ | However, it is probably desirable to leave this default catalog config
+ | and declare your own local catalogs, which are loaded in addition to
+ | the system catalog.
+ |
+ | There are various ways to do local configuration.
+ | See the Apache Forrest documentation:
+ | http://forrest.apache.org/docs/your-project.html
+ | http://forrest.apache.org/docs/validation.html
+ |
+ | local-catalog:
+ | The full filesystem pathname to a single local catalog file.
+ |
+ | <parameter name="local-catalog" value="/usr/local/sgml/mycatalog"/>
+ |
+ | verbosity:
+ | The level of messages for status/debug (messages go to standard output)
+ | The following messages are provided ...
+ | 0 = none
+ | 1 = ? (... not sure yet)
+ | 2 = 1+, Loading catalog, Resolved public, Resolved system
+ | 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
+ | 10 = 3+, List all catalog entries when loading a catalog
+ | (Cocoon also logs the "Resolved public" messages.)
+ +-->
+ <entity-resolver logger="core.resolver">
+ <parameter name="catalog" value="resources/schema/catalog.xcat"/>
+ <parameter name="verbosity" value="1"/>
+ </entity-resolver>
+
+ <!--+
+ | XML Parser
+ |
+ | The default parser used in Apache Cocoon is
+ | org.apache.excalibur.xml.impl.JaxpParser. Apache Cocoon requires a
+ | JAXP 1.1 parser.
+ | If you have problems because your servlet environment uses its own
+ | parser not conforming to JAXP 1.1 try using the alternative
+ | XercesParser instead of the JaxpParser. To activate the XercesParser,
+ | change the class attribute to
+ | class="org.apache.excalibur.xml.impl.XercesParser"
+ | You will also need to add a system property to your JVM,
+ | probably on the startup of your servlet engine like this:
+ | -Dorg.apache.excalibur.xml.sax.SAXParser=org.apache.excalibur.xml.impl.XercesParser
+ |
+ | Configuration for the JaxpParser (not the XercesParser!):
+ | - validate (boolean, default = false): This parameter causes the parser
+ | to be a validating parser.
+ | XML validation is only being used for the documentation build.
+ | (If you are going to use it elsewhere, then do so with caution.)
+ | You really should have validated all of your XML documents already,
+ | according to their proper DTD or schema. Do not expect Cocoon
+ | to do it.
+ | - namespace-prefixes (boolean, default = false) : do we want
+ | namespaces declarations also as 'xmlns:' attributes ?
+ | Note : setting this to true confuses some XSL processors
+ | (e.g. Saxon).
+ | - stop-on-warning (boolean, default = true) : should the parser
+ | stop parsing if a warning occurs ?
+ | - stop-on-recoverable-error (boolean, default = true) : should the
+ | parser stop parsing if a recoverable error occurs ?
+ | - reuse-parsers (boolean, default = true) : do we want to reuse
+ | parsers or create a new parser for each parse ?
+ | Note : even if this parameter is true, parsers are not recycled
+ | in case of parsing errors : some parsers (e.g. Xerces) do not like
+ | to be reused after failure.
+ | - sax-parser-factory (string) : the name of the SAXParserFactory
+ | implementation class to be used instead of using the standard
+ | JAXP mechanism (SAXParserFactory.newInstance()). This allows to
+ | choose unambiguously the JAXP implementation to be used when
+ | several of them are available in the classpath.
+ | - document-builder-factory (string) : the name of the
+ | DocumentBuilderFactory implementation to be used (similar to
+ | sax-parser-factory for DOM).
+ +-->
+ <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser" logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">
+ <parameter name="validate" value="false"/>
+ <parameter name="namespace-prefixes" value="false"/>
+ <parameter name="stop-on-warning" value="true"/>
+ <parameter name="stop-on-recoverable-error" value="true"/>
+ <parameter name="reuse-parsers" value="false"/>
+ <!--parameter name="sax-parser-factory" value="???"/-->
+ <!--parameter name="document-builder-factory" value="???"/-->
+ <!-- drop-dtd-comments: causes all comment events originating from DTD
+ comments to be dropped right after parsing -->
+ <parameter name="drop-dtd-comments" value="true"/>
+ </xml-parser>
+
+
+ <!--+
+ | XSLT Processor
+ |
+ | 'incremental-processing' (only works with Xalan) allows the XSLT
+ | processor to start the output of the transformation as soon as possible.
+ | if set to false, the transforer waits until the end of the
+ | transformation to deliver the output.
+ | WARNING: * if you enable incremental-processing, you should be aware of
+ | the following bug:
+ | http://issues.apache.org/bugzilla/show_bug.cgi?id=13186
+ | * incremental-processing creates an additional, non-pooled thread.
+ | * using incremental-processing does not save memory, the input
+ | tree will still be build completely.
+ | * incremental processing is a 'static' thing in Xalan: if you
+ | enable it on one xslt-processor, enable it on all.
+ +-->
+ <xslt-processor logger="core.xslt-processor">
+ <parameter name="use-store" value="true"/>
+ <parameter name="incremental-processing" value="false"/>
+ </xslt-processor>
+
+ <!--+
+ | XSLT Processor using xsltc from Xalan
+ | For Interpreted Xalan use:
+ | <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
+ +-->
+ <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
+ <parameter name="use-store" value="false"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Xalan XSLT Processor
+ +-->
+ <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
+ <parameter name="use-store" value="false"/>
+ <parameter name="incremental-processing" value="false"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Saxon XSLT Processor
+ | For old (6.5.2) Saxon use:
+ | <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
+ | For new (7+) Saxon use:
+ | <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
+ +-->
+ <component logger="core.xslt-processor"
+ role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
+ class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl">
+ <parameter name="use-store" value="false"/>
+ <parameter name="incremental-processing" value="false"/>
+ <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
+ </component>
+
+ <!-- Xpath Processor: -->
+ <xpath-processor class="org.apache.excalibur.xml.xpath.XPathProcessorImpl" logger="core.xpath-processor"/>
+
+ <!-- The XMLizers converts different mime-types to XML -->
+ <xmlizer>
+ <parser mime-type="text/xml" role="org.apache.excalibur.xml.sax.SAXParser"/>
+ <!--..... Start configuration from 'tidy' -->
+
+
+ <parser mime-type="text/html" role="org.apache.excalibur.xml.sax.SAXParser/HTML"/>
+
+<!--..... End configuration from 'tidy' -->
+</xmlizer>
+
+<!-- ============================ Object Stores =========================== -->
+
+ <!--+
+ | Transient Store: holds objects that don't have to survive shutdown
+ +-->
+ <transient-store logger="core.store.transient">
+
+ <!--+
+ | Indicates how many objects will be hold in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <parameter name="maxobjects" value="100"/>
+
+ <!-- Turns swapping of the objects into persistent cache on and off. -->
+ <parameter name="use-persistent-cache" value="false"/>
+ </transient-store>
+
+ <!--+
+ | Transient Store: holds objects that don't have to survive shutdown
+ |
+ | Common configuration parameters:
+ | maxobjects: Indicates how many objects will be held in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <store logger="core.store">
+ <parameter name="maxobjects" value="1000"/>
+ <parameter name="use-cache-directory" value="true"/>
+ </store>
+
+ <!--+
+ | Store Janitor: the store garbage collector and memory usage controller.
+ |
+ | Be careful with the heapsize and freememory parameters. Wrong values
+ | can cause high cpu usage. Example configuration:
+ | Jvm settings:
+ | -Xmx200000000
+ | store-janitor settings:
+ | <parameter name="freememory" value="5000000"/>
+ | <parameter name="heapsize" value="150000000"/>
+ |
+ | It is recommended to have heapsize equal to -Xmx, especially on Sun's
+ | JVM which are unable to shrink its heap once it grows above minimum.
+ | Freememory should be greater than amount of memory necessary for normal
+ | application operation.
+ +-->
+ <store-janitor logger="core.store.janitor">
+ <!-- How much free memory shall be available in the jvm -->
+ <parameter name="freememory" value="1000000"/>
+ <!-- Indicates the limit of the jvm memory consumption. The default max
+ heapsize for Sun's JVM is 64Mb -->
+ <parameter name="heapsize" value="67108864"/>
+ <!-- How often shall the cleanup thread check memory -->
+ <parameter name="cleanupthreadinterval" value="10"/>
+ <!-- Indicates the thread priority of the cleanup thread -->
+ <parameter name="threadpriority" value="5"/>
+ <!-- How much percent of the elements of each registered Store
+ shall be removed when low on memory. Default 10% -->
+ <parameter name="percent_to_free" value="10"/>
+ </store-janitor>
+
+<!-- ========================= Protocol Handlers =========================== -->
+
+
+<!-- ================ Internationalization Catalogs =================== -->
+
+ <!--+
+ | I18n Bundle Factory
+ |
+ | BundleFactory loads Bundles with i18n resources for the given locale.
+ | Bundles are loaded from the 'catalogue_location'. Bundle base name is
+ | 'catalogue_name' value.
+ | If 'cache-at-startup' is true then BundleFactory preloads bundles.
+ +-->
+ <i18n-bundles logger="core.i18n-bundles">
+ <catalogue-name>messages</catalogue-name>
+ <catalogue-location>i18n/translations</catalogue-location>
+ <cache-at-startup>true</cache-at-startup>
+ </i18n-bundles>
+
+<!-- ================ XSP (eXtensible Server Pages) ===================== -->
+
+ <!--+
+ | Program Generator
+ |
+ | The ProgamGenerator builds programs from a XML document written in a
+ | MarkupLanguage.
+ |
+ | auto-reload: whether the system should check if the source was
+ | modified and reload of consequence.
+ | root-package: the java package to use for the generated classes
+ | preload: whether the system should preload the necessary components
+ +-->
+ <program-generator logger="core.program-generator">
+ <parameter name="auto-reload" value="true"/>
+ <parameter name="root-package" value="org.apache.cocoon.www"/>
+ <parameter name="preload" value="true"/>
+ </program-generator>
+
+ <!--+
+ | Programming Languages for the XSP pages
+ +-->
+ <programming-languages>
+ <java-language logger="core.language.java" name="java">
+
+ <!-- Specifies which formatter to use to format source code.
+ This parameter is optional.
+ It is commented out because of bug #5689: Java "code-formatter"
+ incorrectly formats double values -->
+ <!--parameter name="code-formatter" value="org.apache.cocoon.components.language.programming.java.JstyleFormatter"/-->
+
+ <!-- A singleton-like implementation of a ClassLoader -->
+ <parameter name="class-loader" value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
+
+ <!--+
+ | Specifies which Java compiler to use. Possible variants are:
+ |
+ | - Javac: the java compiler that comes with JDK
+ | - Pizza: the Pizza java compiler
+ | - Jikes: the Jikes java compiler
+ | - EclipseJavaCompiler: the Eclipse JTD java compiler
+ |
+ | NOTE: the Eclipse JTD is the only java compiler that is capable
+ | of imports classes thru the context classloader. All other
+ | compilers import classes from the JVM classpath and might
+ | normally result in ClassNotFound problems at compilation
+ | time. It is *HIGHLY* suggested that you use this compiler
+ | or you might experience problems in some servlet containers.
+ +-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Pizza"/-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Jikes"/-->
+ <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.EclipseJavaCompiler"/>
+
+ </java-language>
+
+ <!-- Interpreted JavaScript language -->
+ <js-language logger="core.language.js" name="js"/>
+ </programming-languages>
+
+ <!--+
+ | Logisheets
+ |
+ | This section defines the XSP logicsheets. A logicsheet is a special
+ | XSLT stylesheet used to translate user-defined dynamic markup into
+ | equivalent XSP markup that embeds directives for a given markup
+ | language.
+ |
+ | Logicsheets are the XSP equivalent of taglibs. For info about
+ | the tags included in the default taglibs, please, refer to the
+ | documentation.
+ +-->
+ <markup-languages>
+ <xsp-language logger="core.markup.xsp" name="xsp">
+ <parameter name="prefix" value="xsp"/>
+ <parameter name="uri" value="http://apache.org/xsp"/>
+
+ <!--+
+ | Properties for the java language
+ +-->
+ <target-language name="java">
+ <!-- Defines the XSP Core logicsheet for the Java language -->
+ <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
+
+ <!-- The Request logicsheet: access request parameters -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-request"/>
+ <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/request.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Response logicsheet: access response parameters -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-response"/>
+ <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/response.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Session logicsheet: manages and access the session -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-session"/>
+ <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Cookie logicsheet: manages and access cookies -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-cookie"/>
+ <parameter name="uri" value="http://apache.org/xsp/cookie/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/cookie.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Log logicsheet: access the cocoon logs from an xsp page -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="log"/>
+ <parameter name="uri" value="http://apache.org/xsp/log/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/log.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Utility logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="util"/>
+ <parameter name="uri" value="http://apache.org/xsp/util/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/util.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The xsp-formval taglib serves as interface to retrieve
+ validation results from a request attribute -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-formval"/>
+ <parameter name="uri" value="http://apache.org/xsp/form-validator/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The sel taglib allows to put multiple pages / view into
+ one xsp. While in general it is good style to put
+ different views into different xsp because they're more
+ easily maintained, this is a useful feature with
+ e.g. with long forms that are broken into parts -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="sel"/>
+ <parameter name="uri" value="http://apache.org/xsp/sel/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/sel.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Action logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="action"/>
+ <parameter name="uri" value="http://apache.org/cocoon/action/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/action.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The capture taglib is for capturing parts of the XSP-generated
+ XML as XML fragments or DOM nodes -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="capture"/>
+ <parameter name="uri" value="http://apache.org/cocoon/capture/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/capture.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The XScript logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xscript"/>
+ <parameter name="uri" value="http://apache.org/xsp/xscript/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xscript.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The SOAP logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="soap"/>
+ <parameter name="uri" value="http://apache.org/xsp/soap/3.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/soap.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The JPath logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="jpath"/>
+ <parameter name="uri" value="http://apache.org/xsp/jpath/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/jpath.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The input logicsheet allows easy access to InputModules -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="input"/>
+ <parameter name="uri" value="http://apache.org/cocoon/xsp/input/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/input.xsl"/>
+ </builtin-logicsheet>
+ </target-language>
+
+ <!--+
+ | Properties for the javascript language
+ +-->
+ <target-language name="js">
+ <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/xsp.xsl"/>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-request"/>
+ <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/request.xsl"/>
+ </builtin-logicsheet>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-response"/>
+ <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/response.xsl"/>
+ </builtin-logicsheet>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-session"/>
+ <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/session.xsl"/>
+ </builtin-logicsheet>
+ </target-language>
+ </xsp-language>
+ </markup-languages>
+
+ <!-- Xscript -->
+ <xscript logger="core.xscript">
+ <parameter name="xscript:copy-of" value="resource://org/apache/cocoon/components/xscript/xslt/copy-of.xsl"/>
+ <parameter name="xscript:value-of" value="resource://org/apache/cocoon/components/xscript/xslt/value-of.xsl"/>
+ </xscript>
+
+<!-- ====================== System Components =========================== -->
+
+ <!--+
+ | The core classloader implementation
+ +-->
+ <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl" logger="core.classloader"/>
+
+ <!--+
+ | XML compiler/decompiler
+ |
+ | these components are used to process SAX events and produce a binary
+ | representation that is much more compact and efficient for
+ | subsequent parsing. These are used by the cache system to save
+ | the intermediate results of the pipeline stages reducing the overhead
+ | of xml parsing/serialization.
+ +-->
+ <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler" logger="core.xml-serializer" pool-grow="4" pool-max="32" pool-min="8"/>
+ <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter" logger="core.xml-deserializer" pool-grow="4" pool-max="32" pool-min="8"/>
+
+ <!--+
+ | The Cache Manager is a component that can be used to cache content.
+ | It is currently used by the cinclude transformer
+ +-->
+ <component class="org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager" role="org.apache.cocoon.transformation.helpers.IncludeCacheManager">
+ <!-- Set the preemptive-loader-url to a pipeline inside Cocoon that
+ contains the preemptive loader action. The URL must be absolute!
+ <parameter name="preemptive-loader-url"
+ value="http://localhost:8080/cocoon/samples/cinclude/loader"/>
+ -->
+ </component>
+
+</components>
Added: forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf.bak
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf.bak?view=auto&rev=125178
==============================================================================
--- (empty file)
+++ forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf.bak Fri Jan 14 08:21:31 2005
@@ -0,0 +1,796 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--<cocoon version="2.2">-->
+<components>
+
+<!--+
+ | This file defines the Cocoon core components.
+ +-->
+
+ <!-- Include the core roles definitions. This is for the sake of clarity,
+ as they are implicitely loaded at startup, but we may want to remove
+ this implicit behaviour in the future now that we have the include
+ mechanism. -->
+ <include src="resource://org/apache/cocoon/cocoon.roles"/>
+
+
+<!-- =========================== Sitemap =============================== -->
+
+ <!--+
+ | New implementation of the sitemap. It is interpreted, so load times
+ | are super-fast, and request processing is slightly faster than with
+ | the compiled engine thanks to the HotSpot VM.
+ |
+ | Reloading of the sitemap:
+ | The check-reload attribute determines if the sitemap is to be
+ | reloaded on change.
+ | Set to "no", the sitemap is generated once at startup.
+ | Set to "yes", the sitemap is regenerated if it changes.
+ |
+ | For development environment, set the check-reload to yes.
+ | For production environment, it is advisable to set check-reload to no.
+ +-->
+ <sitemap check-reload="yes" file="context://sitemap.xmap" logger="sitemap"/>
+
+
+<!-- =================== Sitemap Input/Output Modules ====================== -->
+
+ <!--+
+ | InputModules are a replacement to reading values directly
+ | e.g. from request parameters. By using this abstraction and
+ | indirection, other components can be more generic and changes
+ | to the application logic are easier.
+ |
+ | A number of components already use InputModules: the sitemap processor,
+ | flow, some matchers, the linkrewriting transformer, database actions
+ | and more.
+ |
+ | For example the sitemap processor allows to obtain a value
+ | named "foo" from an the InputModule for request parameters by
+ | writing {request-param:foo} wherever a sitemap variable is
+ | allowed.
+ |
+ | Some InputModules need the help of other InputModules to
+ | obtain values and only apply a function to the obtained value
+ | or change the name of the attribute. These modules usually
+ | carry "Meta" in their name. An example is the ChainMetaModule
+ | which tries several other modules in turn until a non-null
+ | value is obtained or all modules are tied.
+ |
+ | For details and optional configuration parameters refer to the
+ | accompanying javadocs.
+ +-->
+ <input-modules>
+ <component-instance class="org.apache.cocoon.components.modules.input.GlobalInputModule" logger="core.modules.input" name="global"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestModule" logger="core.modules.input" name="request"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.BaseLinkModule" logger="core.modules.input" name="baselink"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SessionModule" logger="core.modules.input" name="session"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestParameterModule" logger="core.modules.input" name="request-param"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RawRequestParameterModule" logger="core.modules.input" name="raw-request-param"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RequestAttributeModule" logger="core.modules.input" name="request-attr"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.HeaderAttributeModule" logger="core.modules.input" name="request-header"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SessionAttributeModule" logger="core.modules.input" name="session-attr"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SystemPropertyModule" logger="core.modules.input" name="system-property"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.StringConstantModule" logger="core.modules.input" name="constant"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RandomNumberModule" logger="core.modules.input" name="random"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DigestMetaModule" logger="core.modules.input" name="digest"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="date">
+ <!-- <format>EEE, d MMM yyyy HH:mm:ss Z</format> -->
+ <!--Eg: Mon, 28 Oct 2002 03:08:49 +1100 -->
+ </component-instance>
+ <component-instance class="org.apache.cocoon.components.modules.input.NullInputModule" logger="core.modules.input" name="nullinput"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.RealPathModule" logger="core.modules.input" name="realpath"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.XMLMetaModule" logger="core.modules.input" name="xmlmeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.MapMetaModule" logger="core.modules.input" name="mapmeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.DateMetaInputModule" logger="core.modules.input" name="datemeta"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.JXPathMetaModule" logger="core.modules.input" name="jxpath"/>
+ <component-instance class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule" logger="core.modules.input" name="simplemap"/>
+
+ <component-instance logger="core.modules.input" name="forrest" class="org.apache.cocoon.components.modules.input.ChainMetaModule">
+ <input-module name="request-param"/>
+ <input-module name="request-attr"/>
+ <input-module name="session-attr"/>
+ <input-module name="defaults"/>
+ </component-instance>
+
+ <component-instance name="defaults" class="org.apache.forrest.conf.ForrestConfModule">
+ <values>
+ <skin>@project.skin@</skin>
+ <menu-scheme>@project.menu-scheme@</menu-scheme>
+ <bugtracking-url>@project.bugtracking-url@</bugtracking-url>
+ <issues-rss-url>@project.issues-rss-url@</issues-rss-url>
+ <i18n>@project.i18n@</i18n>
+ <home>@forrest.home@/</home>
+ <context>@context.home@</context>
+ <skins-dir>@context.home@/skins/</skins-dir>
+ <stylesheets>@context.home@/resources/stylesheets</stylesheets>
+ <plugins>@forrest.home@/build/plugins</plugins>
+ </values>
+ </component-instance>
+
+ <component-instance name="project" class="org.apache.forrest.conf.ForrestConfModule">
+ <values>
+ <skin>@project.skin@</skin>
+ <sitemap>@project.home@/@project.sitemap@</sitemap>
+ <status>@project.home@/@project.status@</status>
+ <skinconf>@project.home@/@project.skinconf@</skinconf>
+ <doc>@project.home@/@project.content-dir@/</doc>
+ <content>@project.home@/@project.raw-content-dir@/</content>
+ <content.xdocs>@project.home@/@project.xdocs-dir@/</content.xdocs>
+ <translations>@project.home@/@project.translations-dir@</translations>
+ <resources.stylesheets>@project.home@/@project.stylesheets-dir@/</resources.stylesheets>
+ <resources.images>@project.home@/@project.images-dir@/</resources.images>
+ <skins-dir>@project.home@/@project.skins-dir@/</skins-dir>
+ <temp-dir>@project.temp-dir@</temp-dir>
+ </values>
+ </component-instance>
+
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.XMLFileModule"
+ logger="core.modules.xml" name="skinconf"/>
+
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="conf">
+ <input-module name="skinconf">
+ <file src="cocoon://skinconf.xml" reloadable="true" />
+ </input-module>
+ <prefix>/skinconfig/</prefix>
+ </component-instance>
+
+ <!-- For the site: scheme -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.XMLFileModule"
+ logger="core.modules.xml" name="linkmap"/>
+
+ <!-- Links to URIs within the site -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="site"/>
+
+ <!-- Links to external URIs, as distinct from 'site' URIs -->
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+ logger="core.modules.mapper" name="ext"/>
+
+</input-modules>
+
+ <!--+
+ | OutputModules are companion modules for InputModules.
+ |
+ | The same principles apply here, only that OutputModules allow
+ | writing data to places. Apparently, there are a lot less
+ | places to write to than to read data from, thus there are only
+ | a few OutputModules coming with Apache Cocoon.
+ |
+ | One special feature of OutputModules is, that they expose some
+ | limited transactional behaviour. Hence it does not suffice to
+ | write a value, but it is required to confirm this at the
+ | end. Until then, the value could not be read from the
+ | corresponding InputModule. This behaviour is not enfored but
+ | it should be expected. Omitting a commit or rollback is an
+ | error.
+ |
+ | OutputModules are currently used by flow, a number of actions
+ | and transformers.
+ +-->
+ <output-modules>
+ <component-instance logger="core.modules.output" name="request-attr" class="org.apache.cocoon.components.modules.output.RequestAttributeOutputModule"/>
+ <component-instance logger="core.modules.output" name="request-attr-map" class="org.apache.cocoon.components.modules.output.RequestAttributeMap"/>
+ <component-instance logger="core.modules.output" name="session-attr" class="org.apache.cocoon.components.modules.output.SessionAttributeOutputModule"/>
+ </output-modules>
+
+
+<!-- ================================= XML ================================ -->
+
+ <!--+
+ | Source Factories
+ |
+ | Each source factory adds a special uri schemes to the system.
+ +-->
+ <source-factories>
+ <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory" name="context"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.SitemapSourceFactory" name="cocoon"/>
+ <component-instance class="org.apache.cocoon.components.source.impl.ZipSourceFactory" name="zip"/>
+ <!-- the "*" protocol handles all uri schemes that are not explicitely specified. This includes all
+ JDK standard protocols, with special handling of the "file:" protocol which is modifiable
+ (can be written to) and traversable (directory structures can be crawled). -->
+ <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
+ </source-factories>
+ <!--+
+ | Entity resolution catalogs
+ |
+ | The default catalog is distributed at WEB-INF/entities/catalog
+ | This is the contextual pathname for Cocoon resources.
+ | You can override this path, if necessary, using the "catalog" parameter:
+ |
+ | <parameter name="catalog" value="WEB-INF/entities/catalog"/>
+ |
+ | However, it is probably desirable to leave this default catalog config
+ | and declare your own local catalogs, which are loaded in addition to
+ | the system catalog.
+ |
+ | There are various ways to do local configuration.
+ | See the Apache Forrest documentation:
+ | http://forrest.apache.org/docs/your-project.html
+ | http://forrest.apache.org/docs/validation.html
+ |
+ | local-catalog:
+ | The full filesystem pathname to a single local catalog file.
+ |
+ | <parameter name="local-catalog" value="/usr/local/sgml/mycatalog"/>
+ |
+ | verbosity:
+ | The level of messages for status/debug (messages go to standard output)
+ | The following messages are provided ...
+ | 0 = none
+ | 1 = ? (... not sure yet)
+ | 2 = 1+, Loading catalog, Resolved public, Resolved system
+ | 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
+ | 10 = 3+, List all catalog entries when loading a catalog
+ | (Cocoon also logs the "Resolved public" messages.)
+ +-->
+ <entity-resolver logger="core.resolver">
+ <parameter name="catalog" value="resources/schema/catalog.xcat"/>
+ <parameter name="verbosity" value="1"/>
+ </entity-resolver>
+
+ <!--+
+ | XML Parser
+ |
+ | The default parser used in Apache Cocoon is
+ | org.apache.excalibur.xml.impl.JaxpParser. Apache Cocoon requires a
+ | JAXP 1.1 parser.
+ | If you have problems because your servlet environment uses its own
+ | parser not conforming to JAXP 1.1 try using the alternative
+ | XercesParser instead of the JaxpParser. To activate the XercesParser,
+ | change the class attribute to
+ | class="org.apache.excalibur.xml.impl.XercesParser"
+ | You will also need to add a system property to your JVM,
+ | probably on the startup of your servlet engine like this:
+ | -Dorg.apache.excalibur.xml.sax.SAXParser=org.apache.excalibur.xml.impl.XercesParser
+ |
+ | Configuration for the JaxpParser (not the XercesParser!):
+ | - validate (boolean, default = false): This parameter causes the parser
+ | to be a validating parser.
+ | XML validation is only being used for the documentation build.
+ | (If you are going to use it elsewhere, then do so with caution.)
+ | You really should have validated all of your XML documents already,
+ | according to their proper DTD or schema. Do not expect Cocoon
+ | to do it.
+ | - namespace-prefixes (boolean, default = false) : do we want
+ | namespaces declarations also as 'xmlns:' attributes ?
+ | Note : setting this to true confuses some XSL processors
+ | (e.g. Saxon).
+ | - stop-on-warning (boolean, default = true) : should the parser
+ | stop parsing if a warning occurs ?
+ | - stop-on-recoverable-error (boolean, default = true) : should the
+ | parser stop parsing if a recoverable error occurs ?
+ | - reuse-parsers (boolean, default = true) : do we want to reuse
+ | parsers or create a new parser for each parse ?
+ | Note : even if this parameter is true, parsers are not recycled
+ | in case of parsing errors : some parsers (e.g. Xerces) do not like
+ | to be reused after failure.
+ | - sax-parser-factory (string) : the name of the SAXParserFactory
+ | implementation class to be used instead of using the standard
+ | JAXP mechanism (SAXParserFactory.newInstance()). This allows to
+ | choose unambiguously the JAXP implementation to be used when
+ | several of them are available in the classpath.
+ | - document-builder-factory (string) : the name of the
+ | DocumentBuilderFactory implementation to be used (similar to
+ | sax-parser-factory for DOM).
+ +-->
+ <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser" logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">
+ <parameter name="validate" value="false"/>
+ <parameter name="namespace-prefixes" value="false"/>
+ <parameter name="stop-on-warning" value="true"/>
+ <parameter name="stop-on-recoverable-error" value="true"/>
+ <parameter name="reuse-parsers" value="false"/>
+ <!--parameter name="sax-parser-factory" value="???"/-->
+ <!--parameter name="document-builder-factory" value="???"/-->
+ <!-- drop-dtd-comments: causes all comment events originating from DTD
+ comments to be dropped right after parsing -->
+ <parameter name="drop-dtd-comments" value="true"/>
+ </xml-parser>
+
+
+ <!--+
+ | XSLT Processor
+ |
+ | 'incremental-processing' (only works with Xalan) allows the XSLT
+ | processor to start the output of the transformation as soon as possible.
+ | if set to false, the transforer waits until the end of the
+ | transformation to deliver the output.
+ | WARNING: * if you enable incremental-processing, you should be aware of
+ | the following bug:
+ | http://issues.apache.org/bugzilla/show_bug.cgi?id=13186
+ | * incremental-processing creates an additional, non-pooled thread.
+ | * using incremental-processing does not save memory, the input
+ | tree will still be build completely.
+ | * incremental processing is a 'static' thing in Xalan: if you
+ | enable it on one xslt-processor, enable it on all.
+ +-->
+ <xslt-processor logger="core.xslt-processor">
+ <parameter name="use-store" value="true"/>
+ <parameter name="incremental-processing" value="false"/>
+ </xslt-processor>
+
+ <!--+
+ | XSLT Processor using xsltc from Xalan
+ | For Interpreted Xalan use:
+ | <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
+ +-->
+ <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
+ <parameter name="use-store" value="false"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Xalan XSLT Processor
+ +-->
+ <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
+ <parameter name="use-store" value="false"/>
+ <parameter name="incremental-processing" value="false"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Saxon XSLT Processor
+ | For old (6.5.2) Saxon use:
+ | <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
+ | For new (7+) Saxon use:
+ | <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
+ +-->
+ <component logger="core.xslt-processor"
+ role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
+ class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl">
+ <parameter name="use-store" value="false"/>
+ <parameter name="incremental-processing" value="false"/>
+ <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
+ </component>
+
+ <!-- Xpath Processor: -->
+ <xpath-processor class="org.apache.excalibur.xml.xpath.XPathProcessorImpl" logger="core.xpath-processor"/>
+
+ <!-- The XMLizers converts different mime-types to XML -->
+ <xmlizer>
+ <parser mime-type="text/xml" role="org.apache.excalibur.xml.sax.SAXParser"/>
+ <!--..... Start configuration from 'tidy' -->
+
+
+ <parser mime-type="text/html" role="org.apache.excalibur.xml.sax.SAXParser/HTML"/>
+
+<!--..... End configuration from 'tidy' -->
+</xmlizer>
+
+<!-- ============================ Object Stores =========================== -->
+
+ <!--+
+ | Transient Store: holds objects that don't have to survive shutdown
+ +-->
+ <transient-store logger="core.store.transient">
+
+ <!--+
+ | Indicates how many objects will be hold in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <parameter name="maxobjects" value="100"/>
+
+ <!-- Turns swapping of the objects into persistent cache on and off. -->
+ <parameter name="use-persistent-cache" value="false"/>
+ </transient-store>
+
+ <!--+
+ | Store: generic store. The default implementation is an in-memory store
+ | backed by the persistent store (see below). This forms a two-stage
+ | cache composed of a fast in-memory MRU front-end and a persistent
+ | back-end storing less used objects.
+ |
+ | Common configuration parameters:
+ | maxobjects: Indicates how many objects will be hold in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <store logger="core.store">
+ <parameter name="maxobjects" value="100"/>
+ </store>
+
+ <!--+
+ | Persistent Store: holds objects that have to survive shutdown.
+ | WARNING: FilesystemStore is broken. Cocoon uses DefaultStore based
+ | on the Avalon Excalibur JispStore instead.
+ |
+ | Common configuration parameters:
+ | use-cache-directory: Indicates that cache directory specified in
+ | web.xml should be used.
+ | use-work-directory: Indicates that work directory specified in
+ | web.xml should be used.
+ | directory: Specifies directory to use. Absolute or relative to the
+ | work directory.
+ |
+ | DefaultStore configuration parameters:
+ | datafile: Name of the store file to use. Defaults to cocoon.dat
+ | indexfile: Name of the index file to use. Defaults to cocoon.idx
+ | order: FIXME: put description here.
+ +-->
+<!-- <persistent-store logger="core.store.persistent">
+ <parameter name="use-cache-directory" value="true"/>
+ <parameter name="order" value="2701"/>
+ </persistent-store> -->
+
+ <!--+
+ | Store Janitor: the store garbage collector and memory usage controller.
+ |
+ | Be careful with the heapsize and freememory parameters. Wrong values
+ | can cause high cpu usage. Example configuration:
+ | Jvm settings:
+ | -Xmx200000000
+ | store-janitor settings:
+ | <parameter name="freememory" value="5000000"/>
+ | <parameter name="heapsize" value="150000000"/>
+ |
+ | It is recommended to have heapsize equal to -Xmx, especially on Sun's
+ | JVM which are unable to shrink its heap once it grows above minimum.
+ | Freememory should be greater than amount of memory necessary for normal
+ | application operation.
+ +-->
+ <store-janitor logger="core.store.janitor">
+ <!-- How much free memory shall be available in the jvm -->
+ <parameter name="freememory" value="1000000"/>
+ <!-- Indicates the limit of the jvm memory consumption. The default max
+ heapsize for Sun's JVM is 64Mb -->
+ <parameter name="heapsize" value="67108864"/>
+ <!-- How often shall the cleanup thread check memory -->
+ <parameter name="cleanupthreadinterval" value="10"/>
+ <!-- Indicates the thread priority of the cleanup thread -->
+ <parameter name="threadpriority" value="5"/>
+ <!-- How much percent of the elements of each registered Store
+ shall be removed when low on memory. Default 10% -->
+ <parameter name="percent_to_free" value="10"/>
+ </store-janitor>
+
+<!-- ========================= Protocol Handlers =========================== -->
+
+
+<!-- ================ Internationalization Catalogs =================== -->
+
+ <!--+
+ | I18n Bundle Factory
+ |
+ | BundleFactory loads Bundles with i18n resources for the given locale.
+ | Bundles are loaded from the 'catalogue_location'. Bundle base name is
+ | 'catalogue_name' value.
+ | If 'cache-at-startup' is true then BundleFactory preloads bundles.
+ +-->
+ <i18n-bundles logger="core.i18n-bundles">
+ <catalogue-name>messages</catalogue-name>
+ <catalogue-location>i18n/translations</catalogue-location>
+ <cache-at-startup>true</cache-at-startup>
+ </i18n-bundles>
+
+<!-- ================ XSP (eXtensible Server Pages) ===================== -->
+
+ <!--+
+ | Program Generator
+ |
+ | The ProgamGenerator builds programs from a XML document written in a
+ | MarkupLanguage.
+ |
+ | auto-reload: whether the system should check if the source was
+ | modified and reload of consequence.
+ | root-package: the java package to use for the generated classes
+ | preload: whether the system should preload the necessary components
+ +-->
+ <program-generator logger="core.program-generator">
+ <parameter name="auto-reload" value="true"/>
+ <parameter name="root-package" value="org.apache.cocoon.www"/>
+ <parameter name="preload" value="true"/>
+ </program-generator>
+
+ <!--+
+ | Programming Languages for the XSP pages
+ +-->
+ <programming-languages>
+ <java-language logger="core.language.java" name="java">
+
+ <!-- Specifies which formatter to use to format source code.
+ This parameter is optional.
+ It is commented out because of bug #5689: Java "code-formatter"
+ incorrectly formats double values -->
+ <!--parameter name="code-formatter" value="org.apache.cocoon.components.language.programming.java.JstyleFormatter"/-->
+
+ <!-- A singleton-like implementation of a ClassLoader -->
+ <parameter name="class-loader" value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
+
+ <!--+
+ | Specifies which Java compiler to use. Possible variants are:
+ |
+ | - Javac: the java compiler that comes with JDK
+ | - Pizza: the Pizza java compiler
+ | - Jikes: the Jikes java compiler
+ | - EclipseJavaCompiler: the Eclipse JTD java compiler
+ |
+ | NOTE: the Eclipse JTD is the only java compiler that is capable
+ | of imports classes thru the context classloader. All other
+ | compilers import classes from the JVM classpath and might
+ | normally result in ClassNotFound problems at compilation
+ | time. It is *HIGHLY* suggested that you use this compiler
+ | or you might experience problems in some servlet containers.
+ +-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Pizza"/-->
+ <!--parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Jikes"/-->
+ <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.EclipseJavaCompiler"/>
+
+ </java-language>
+
+ <!-- Interpreted JavaScript language -->
+ <js-language logger="core.language.js" name="js"/>
+ </programming-languages>
+
+ <!--+
+ | Logisheets
+ |
+ | This section defines the XSP logicsheets. A logicsheet is a special
+ | XSLT stylesheet used to translate user-defined dynamic markup into
+ | equivalent XSP markup that embeds directives for a given markup
+ | language.
+ |
+ | Logicsheets are the XSP equivalent of taglibs. For info about
+ | the tags included in the default taglibs, please, refer to the
+ | documentation.
+ +-->
+ <markup-languages>
+ <xsp-language logger="core.markup.xsp" name="xsp">
+ <parameter name="prefix" value="xsp"/>
+ <parameter name="uri" value="http://apache.org/xsp"/>
+
+ <!--+
+ | Properties for the java language
+ +-->
+ <target-language name="java">
+ <!-- Defines the XSP Core logicsheet for the Java language -->
+ <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
+
+ <!-- The Request logicsheet: access request parameters -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-request"/>
+ <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/request.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Response logicsheet: access response parameters -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-response"/>
+ <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/response.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Session logicsheet: manages and access the session -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-session"/>
+ <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Cookie logicsheet: manages and access cookies -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-cookie"/>
+ <parameter name="uri" value="http://apache.org/xsp/cookie/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/cookie.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Log logicsheet: access the cocoon logs from an xsp page -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="log"/>
+ <parameter name="uri" value="http://apache.org/xsp/log/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/log.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Utility logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="util"/>
+ <parameter name="uri" value="http://apache.org/xsp/util/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/util.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The xsp-formval taglib serves as interface to retrieve
+ validation results from a request attribute -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-formval"/>
+ <parameter name="uri" value="http://apache.org/xsp/form-validator/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The sel taglib allows to put multiple pages / view into
+ one xsp. While in general it is good style to put
+ different views into different xsp because they're more
+ easily maintained, this is a useful feature with
+ e.g. with long forms that are broken into parts -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="sel"/>
+ <parameter name="uri" value="http://apache.org/xsp/sel/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/sel.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The Action logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="action"/>
+ <parameter name="uri" value="http://apache.org/cocoon/action/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/action.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The capture taglib is for capturing parts of the XSP-generated
+ XML as XML fragments or DOM nodes -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="capture"/>
+ <parameter name="uri" value="http://apache.org/cocoon/capture/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/capture.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The XScript logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xscript"/>
+ <parameter name="uri" value="http://apache.org/xsp/xscript/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xscript.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The SOAP logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="soap"/>
+ <parameter name="uri" value="http://apache.org/xsp/soap/3.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/soap.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The JPath logicsheet -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="jpath"/>
+ <parameter name="uri" value="http://apache.org/xsp/jpath/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/jpath.xsl"/>
+ </builtin-logicsheet>
+
+ <!-- The input logicsheet allows easy access to InputModules -->
+ <builtin-logicsheet>
+ <parameter name="prefix" value="input"/>
+ <parameter name="uri" value="http://apache.org/cocoon/xsp/input/1.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/input.xsl"/>
+ </builtin-logicsheet>
+ </target-language>
+
+ <!--+
+ | Properties for the javascript language
+ +-->
+ <target-language name="js">
+ <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/xsp.xsl"/>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-request"/>
+ <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/request.xsl"/>
+ </builtin-logicsheet>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-response"/>
+ <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/response.xsl"/>
+ </builtin-logicsheet>
+
+ <builtin-logicsheet>
+ <parameter name="prefix" value="xsp-session"/>
+ <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
+ <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/session.xsl"/>
+ </builtin-logicsheet>
+ </target-language>
+ </xsp-language>
+ </markup-languages>
+
+ <!-- Xscript -->
+ <xscript logger="core.xscript">
+ <parameter name="xscript:copy-of" value="resource://org/apache/cocoon/components/xscript/xslt/copy-of.xsl"/>
+ <parameter name="xscript:value-of" value="resource://org/apache/cocoon/components/xscript/xslt/value-of.xsl"/>
+ </xscript>
+
+<!-- ====================== System Components =========================== -->
+
+ <!--+
+ | The core classloader implementation
+ +-->
+ <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl" logger="core.classloader"/>
+
+ <!--+
+ | XML compiler/decompiler
+ |
+ | these components are used to process SAX events and produce a binary
+ | representation that is much more compact and efficient for
+ | subsequent parsing. These are used by the cache system to save
+ | the intermediate results of the pipeline stages reducing the overhead
+ | of xml parsing/serialization.
+ +-->
+ <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler" logger="core.xml-serializer" pool-grow="4" pool-max="32" pool-min="8"/>
+ <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter" logger="core.xml-deserializer" pool-grow="4" pool-max="32" pool-min="8"/>
+
+ <!--+
+ | The Monitor keeps track on changes to a Resource.
+ +-->
+<!--
+ <monitor logger="core.monitor">
+ <thread frequency="10000" priority="5"/>
+ </monitor>
+-->
+
+ <!--+
+ | The Cache Manager is a component that can be used to cache content.
+ | It is currently used by the cinclude transformer
+ +-->
+ <component class="org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager" role="org.apache.cocoon.transformation.helpers.IncludeCacheManager">
+ <!-- Set the preemptive-loader-url to a pipeline inside Cocoon that
+ contains the preemptive loader action. The URL must be absolute!
+ <parameter name="preemptive-loader-url"
+ value="http://localhost:8080/cocoon/samples/cinclude/loader"/>
+ -->
+ </component>
+
+
+ <!-- Profiler:
+ The profiler facilitates the gathering of statistics about timings of
+ different steps of pipelines. Profiler consists of several components:
+ profiling pipeline and profiler generator
+ which are used to generate the profile report. You need to enable all of
+ these components to use profiler.
+ -->
+<!--
+ <profiler results="10"/>
+-->
+<!--..... End configuration from 'profiler' -->
+<!--..... Start configuration from 'deprecated' -->
+
+
+ <!--+
+ | URL Factory
+ |
+ | The url factory adds special url protocols to the system, they are then
+ | available inside Cocoon, e.g. as a source argument for one of the sitemap
+ | components.
+ |
+ | THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE
+ +-->
+ <!-- Allows access to resources available from the ClassLoader, using getResource() method. -->
+<!-- <url-factory logger="core.url-factory">
+ <protocol class="org.apache.cocoon.components.url.ResourceURLFactory" name="resource"/>
+ </url-factory>
+->>
+ <!--+
+ | Source Handler
+ |
+ | The source handler adds special url protocols to the system, they are
+ | then available inside Cocoon, e.g. as a source argument for one of the
+ | sitemap components.
+ |
+ | THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE
+ +-->
+ <source-handler logger="core.source-handler">
+ <!-- file protocol : this is a WriteableSource -->
+ <protocol class="org.apache.cocoon.components.source.FileSourceFactory" name="file"/>
+ <!-- Allows access to resources available from the servlet context, using getResource() method. -->
+ <protocol class="org.apache.cocoon.components.source.ContextSourceFactory" name="context"/>
+ </source-handler>
+
+<!--..... End configuration from 'deprecated' -->
+</components>
+<!--</cocoon>-->
Modified: forrest/trunk/main/webapp/faq.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/faq.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/faq.xmap&r1=125177&p2=forrest/trunk/main/webapp/faq.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/faq.xmap (original)
+++ forrest/trunk/main/webapp/faq.xmap Fri Jan 14 08:21:31 2005
@@ -59,7 +59,7 @@
</map:action>
</map:actions>
- <map:selectors default="browser">
+ <map:selectors>
<map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector" />
</map:selectors>
</map:components>
Modified: forrest/trunk/main/webapp/menu.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/menu.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/menu.xmap&r1=125177&p2=forrest/trunk/main/webapp/menu.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/menu.xmap (original)
+++ forrest/trunk/main/webapp/menu.xmap Fri Jan 14 08:21:31 2005
@@ -44,7 +44,7 @@
</map:transformer>
</map:transformers>
<map:matchers default="wildcard"/>
- <map:selectors default="browser">
+ <map:selectors>
<map:selector logger="sitemap.selector.config" name="config" src="org.apache.cocoon.selection.SimpleSelector" />
</map:selectors>
<map:actions>
Modified: forrest/trunk/main/webapp/resources.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/resources.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/resources.xmap&r1=125177&p2=forrest/trunk/main/webapp/resources.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/resources.xmap (original)
+++ forrest/trunk/main/webapp/resources.xmap Fri Jan 14 08:21:31 2005
@@ -57,7 +57,6 @@
<map:readers default="resource" />
<map:matchers default="wildcard" />
- <map:selectors default="browser" />
</map:components>
<map:resources>
Modified: forrest/trunk/main/webapp/sitemap.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/sitemap.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/sitemap.xmap&r1=125177&p2=forrest/trunk/main/webapp/sitemap.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/sitemap.xmap (original)
+++ forrest/trunk/main/webapp/sitemap.xmap Fri Jan 14 08:21:31 2005
@@ -41,52 +41,15 @@
-->
<map:generator name="notifier" src="org.apache.cocoon.sitemap.NotifyingGenerator" />
- <!--
- FIXME: there is a bug in the Cocoon 2.2 resolving that can make cocoon:/
- calls call the base sitemap; remove the following when it's fixed.
-
- -->
<map:generator name="text2xml" logger="sitemap.generator.textgenerator"
src="org.apache.cocoon.generation.TextGenerator">
<parameter name="localizable" value="true"/>
</map:generator>
- <!--
- FIXME-END
- -->
+
</map:generators>
<map:transformers default="xslt">
- <!--
- FIXME: there is a bug in the Cocoon 2.2 resolving that can make cocoon:/
- calls call the base sitemap; remove the following when it's fixed.
-
- -->
- <map:transformer name="pattern"
- src="org.apache.cocoon.transformation.PatternTransformer"
- logger="sitemap.transformer.pattern">
- <parameter name="groups" value="true"/>
- </map:transformer>
- <map:transformer name="lexer"
- src="org.apache.cocoon.transformation.LexicalTransformer"
- logger="sitemap.transformer.lexer">
- <parameter name="localizable" value="true"/>
- </map:transformer>
- <map:transformer name="parser"
- src="org.apache.cocoon.transformation.ParserTransformer"
- logger="sitemap.transformer.parser">
- <parameter name="flatten" value="true"/>
- <parameter name="recovery" value="true"/>
- <parameter name="localizable" value="true"/>
- </map:transformer>
-
- <map:transformer name="extparser"
- src="org.apache.cocoon.transformation.ExtendedParserTransformer"
- logger="sitemap.transformer.extendedparser">
- </map:transformer>
- <!--
- FIXME-END
- -->
<!-- Add values to skinconf that need extra processing like the color shades -->
<map:transformer name="skinconf" src="org.apache.forrest.conf.SkinconfTransformer"/>
Modified: forrest/trunk/main/webapp/status.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/status.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/status.xmap&r1=125177&p2=forrest/trunk/main/webapp/status.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/status.xmap (original)
+++ forrest/trunk/main/webapp/status.xmap Fri Jan 14 08:21:31 2005
@@ -41,7 +41,6 @@
</map:serializers>
<map:transformers default="xslt"/>
<map:matchers default="wildcard"/>
- <map:selectors default="browser"/>
</map:components>
<map:pipelines>
Modified: forrest/trunk/main/webapp/tabs.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/tabs.xmap?view=diff&rev=125178&p1=forrest/trunk/main/webapp/tabs.xmap&r1=125177&p2=forrest/trunk/main/webapp/tabs.xmap&r2=125178
==============================================================================
--- forrest/trunk/main/webapp/tabs.xmap (original)
+++ forrest/trunk/main/webapp/tabs.xmap Fri Jan 14 08:21:31 2005
@@ -19,7 +19,7 @@
<map:generators default="file"/>
<map:serializers default="html"/>
<map:matchers default="wildcard"/>
- <map:selectors default="browser">
+ <map:selectors>
<map:selector logger="sitemap.selector.config" name="config" src="org.apache.cocoon.selection.SimpleSelector" />
</map:selectors>
<map:transformers default="xslt">