📄 cocoon.xconf
字号:
| 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -