📄 cocoon.xconf
字号:
<?xml version="1.0" encoding="UTF-8"?>
<cocoon version="2.1">
<!--+
| 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" config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml" file="context://sitemap.xmap" logger="sitemap"/>
<!-- ========================= Sitemap Flowscript ========================== -->
<!--+
| The <flow-interpreters> element is used to describe the flowscript
| engines usedd by the current instance.
|
| The attributes recognized by the <flow-interpreters> element are:
|
| default (string value):
|
| the default interpreted language assumed for <map:script>
| elements which do not specify a "language" attribute. If not
| present, the first language that's described within the
| <flow-interpreters> element is assumed to be the default
| language.
|
| Within <flow-interpreters> only <component-instance> elements are
| recognized. The attributes recognized by this element are "name"
| and "class". "name" specifies the name of a scripting language,
| and "class" defines the Java class that implements it. See
| org.apache.cocoon.components.flow.Interpreter for the Cocoon
| interface with an scripting language interpreter.
|
| A <component-instance> element contains as subelements the
| following elements:
|
| reload-scripts (boolean value, default false):
|
| whether to check if the scripts source files are
| modified. Checking for modification is an expensive
| operation, so leave it disabled in a production
| environment. If not present it is assumed to be "false". When
| "true" *all* script files are checked for modification on
| each function invocation done using <map:call
| function="...">, but not more frequent than the value of
| "check-time" (see below).
|
| check-time (long value, default 1000):
|
| time in miliseconds between the checks for the last
| modification date of script files.
|
| debugger (boolean value, default false):
|
| whether support for the JavaScript debugger should be enabled
| in the control flow.
+-->
<flow-interpreters default="JavaScript" logger="flow">
<component-instance class="org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter" name="JavaScript">
<load-on-startup>resource://org/apache/cocoon/components/flow/javascript/system.js</load-on-startup>
<reload-scripts>true</reload-scripts>
<check-time>4000</check-time>
<!-- <debugger>enabled</debugger> --> <!-- JavaScript Debugger support -->
</component-instance>
</flow-interpreters>
<!--+
| Configuration for the continuations manager.
|
| This section specifies the default time-to-live of continuations
| in miliseconds using the "time-to-live" attribute of
| the <continuations-manager> element.
|
| The <expirations-check> element specifies different policies for
| expiring continuations. Currently only the "periodic" type is
| supported.
+-->
<continuations-manager logger="flow" time-to-live="3600000">
<expirations-check type="periodic">
<offset>180000</offset>
<period>180000</period>
</expirations-check>
</continuations-manager>
<!-- =================== 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.cocoon.components.modules.input.DefaultsMetaModule">
<values>
<skin>sourcetap</skin>
<menu-scheme>tab_attributes</menu-scheme>
<bugtracking-url>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=</bugtracking-url>
</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="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"/>
<!-- 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 "Entity Catalogs"
| documentation). One way is via the CatalogManager.properties file.
| As an additional method, you can specify the "local-catalog"
| parameter here.
|
| 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.)
|
| <parameter name="verbosity" value="2"/>
+-->
<entity-resolver logger="core.resolver">
<parameter name="catalog" value="resources/schema/catalog.xcat"/>
<parameter name="local-catalog" value="E:\ofbiz\work\ofbiz3.0\ofbiz\hot-deploy\sfa\docs\help\src\documentation\resources\schema\catalog.xcat"/>
<parameter name="verbosity" value="1"/>
</entity-resolver>
<!--+
| XML Parser
|
| The default parser used in Apache Cocoon is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -