You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ov...@apache.org on 2002/03/13 20:08:12 UTC

cvs commit: xml-cocoon2/src/scratchpad/schecoon/webapp cocoon.xconf

ovidiu      02/03/13 11:08:12

  Modified:    src/scratchpad/schecoon/webapp cocoon.xconf
  Log:
  Updated to make use of the TreeProcessor interpreted sitemap, instead
  of the Scheme sitemap (which will be dropped shortly).
  
  Revision  Changes    Path
  1.7       +288 -156  xml-cocoon2/src/scratchpad/schecoon/webapp/cocoon.xconf
  
  Index: cocoon.xconf
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/cocoon.xconf,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- cocoon.xconf	21 Feb 2002 03:35:12 -0000	1.6
  +++ cocoon.xconf	13 Mar 2002 19:08:11 -0000	1.7
  @@ -4,132 +4,162 @@
   <!-- ================ Apache Cocoon configuration file ================== -->
   <!-- For full description of the components and their parameters ...
        - Apache Cocoon User Documentation at /userdocs/
  -     - webapp/cocoon.xconf - describes each core component
  +     - webapp/cocoon.xconf (this file) - describes each core component
        - each optional component/.../*.xconf - these describe the parameters
        for each component and are automatically included at build-time.
   
  -     This configuration is tuned for the scratchpad, and is terse.
  +     The notes that accompany the settings below are intended to be concise.
   -->
   
   <!-- ===================== General Components =========================== -->
   
     <!-- Parser:
  -    The default parser used in the Apache Cocoon 2 system is
  -    org.apache.cocoon.components.parser.JaxpParser
  -    Apache Cocoon 2 system requires a JAXP 1.1 parser.
  +    The default parser used in Apache Cocoon is
  +    org.apache.avalon.excalibur.xml.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,
  -    move the line below starting with <parser ...> out of this comment block.
  -    You also than have to add a system property to your JVM
  -    (probably on the startup of your servlet engine like this:
  -    -Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser
  -
  -  <parser class="org.apache.cocoon.components.parser.XercesParser"/>
  -  -->
  -
  -  <!-- HSQLDB Server for samples:
  -    Comment this section out if you don't care about the samples.
  -        port   : number      port where the server is listening
  -        silent : true/false  display all queries
  -        trace  : true/false  display JDBC trace messages
  -  -->
  -  <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl" 
  -                 pool-max="1" pool-min="1">
  -     <parameter name="port" value="9002"/>
  -     <parameter name="silent" value="true"/>
  -     <parameter name="trace" value="false"/>
  -  </hsqldb-server>
  -
  -  <!-- Storing:
  -    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.
  -    filesystem: Turns the filesystem storage for objects on or off.
  -  -->
  -  <store class="org.apache.cocoon.components.store.MRUMemoryStore" logger="root.store">
  +    change the class attribute to
  +      class="org.apache.avalon.excalibur.xml.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.avalon.excalibur.xml.Parser=org.apache.avalon.excalibur.xml.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) don't 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.avalon.excalibur.xml.JaxpParser"
  +              logger="core.xml-parser">
  +    <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="???"/>
  +    -->
  +  </xml-parser>
  +  
  +  <!-- ============================ STORE ============================ -->
  +  <!-- Persistent store for the cache. Two store implementations to choose
  +       from:
  +         * FilesystemStore: Simple. Dependable. Thorougly tested.
  +         * JispFilesystemStore: Scalable. New kid on the block.
  +
  +       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.
  +  -->
  +  <cache-persistent class="org.apache.cocoon.components.store.FilesystemStore"
  +                    logger="core.store.persistent">
  +    <parameter name="use-cache-directory" value="true"/>
  +  </cache-persistent>
  +
  +  <!-- Memory Storing: -->
  +  <cache-transient class="org.apache.cocoon.components.store.MRUMemoryStore"
  +         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"/>
  -     <parameter name="filesystem" value="true"/>
  -  </store>
  +
  +     <!-- Turns the swapping of the objects into persistent cache on
  +          and off. -->
  +     <parameter name="use-persistent-cache" value="true"/>
  +  </cache-transient>
   
     <!-- Store Janitor:
  -    freememory = How much free memory shall be available in the jvm
  -    heapsize = Indicates the limit of the jvm memory consumption
  -    cleanupthreadinterval = How often shall the cleanup thread check memory
  -    threadpriority = Indicates the thread priority of the cleanup thread
  -
  -    Be careful with the heapsize and freememory paramters. Wrong values can
  -    cause high cpu usage.
  -    Example configuration:
  +    Be careful with the heapsize and freememory parameters. Wrong values can
  +    cause high cpu usage. Example configuration:
       Jvm settings: 
         -Xms100000000 -Xmx200000000
       store-janitor settings:
  -       <parameter name="freememory" value="50000000"/>
  +       <parameter name="freememory" value="5000000"/>
          <parameter name="heapsize" value="150000000"/>
     
  -    Heapsize must be higher then the -Xms parameter and freememory
  -    between those both.    
  -  -->
  -  <store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl" logger="root.store">
  +    Heapsize *must* be higher then the -Xms parameter and *must* be lower or
  +    equal than -Xmx. 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 parameter *must* be lower than -Xms, and should be greater than
  +    amount of memory necessary for normal application operation.
  +  -->
  +  <store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl"
  +                 logger="core.store.janitor">
  +     <!-- How much free memory shall be available in the jvm -->                 
        <parameter name="freememory" value="1000000"/>
  -     <parameter name="heapsize" value="60000000"/>
  +     <!-- 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>
  -
  -  <!-- Filesystem Queue
  -    The Filesystem Queue is the central queue for writing objects onto
  -    the filesystem:
  -      handlerinterval = How often (seconds) is the queue checked for new objects
  -      threadpriority = The priority of the Handler Thread
  -      maxobjects = Defines the maximum numbers of objects in the queue.
  -                   If the queue is full no objects can be inserted.
  -  -->
  -  <filesystem-queue class="org.apache.cocoon.components.store.FilesystemQueueImpl" logger="root.store">
  -    <parameter name="handlerinterval" value="10"/>
  -    <parameter name="threadpriority" value="5"/>
  -    <parameter name="maxobjects" value="100"/>
  -  </filesystem-queue>
  -
  -  <!-- Entity resolution catalogs -->
  -  <entity-resolver class="org.apache.cocoon.components.resolver.ResolverImpl"
  -            logger="core.resolver">
  -    <parameter name="catalog" value="/resources/entities/catalog"/>
  -    <parameter name="verbosity" value="1"/>
  -  </entity-resolver>
  +  <!-- ============================ STORE END ========================= -->
   
     <!-- XSLT Processor:
       For Xalan: Turn 'incremental-processing' to true if you want a continous output (if set to false the transformer 
  -    delivers SAX events after all transformations has been done).
  -    WARNING: Due to a bug of Xalan 2.2.0-D13 and beneath there are problems with multi-threading, so it's 
  -    turned off by default.                                        -->
  -  <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" logger="root.xslt">
  +    delivers SAX events after all transformations has been done). -->
  +  <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
  +                  logger="core.xslt-processor">
        <parameter name="use-store" value="true"/>
  -     <parameter name="incremental-processing" value="false"/>
  +     <parameter name="incremental-processing" value="true"/>
     </xslt-processor>
   
     <!-- Xpath Processor:
     -->
  -  <xpath-processor class="org.apache.cocoon.components.xpath.XPathProcessorImpl" logger="root.xslt"/>
  +  <xpath-processor class="org.apache.cocoon.components.xpath.XPathProcessorImpl"
  +                   logger="core.xpath-processor"/>
   
     <!-- 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.
     -->
  -  <url-factory>
  +  <url-factory logger="core.url-factory">
  +    <!-- Allows access to resources available from the ClassLoader,
  +         using getResource() method. -->
       <protocol name="resource" class="org.apache.cocoon.components.url.ResourceURLFactory"/>
  +    <!-- Allows access to resources available from the servlet context,
  +         using getResource() method. -->
       <protocol name="context"  class="org.apache.cocoon.components.url.ContextURLFactory"/>
  +    <!-- Add here protocol factories for your own protocols -->
     </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.
  -  -->
  -  <source-handler>
  -  </source-handler>
  -
     <!-- Program Generator:
       The ProgamGenerator builds programs from a XML document written in a
       MarkupLanguage.
  @@ -137,7 +167,7 @@
          root-package: persistent code repository.
          preload:
     -->
  -  <program-generator>
  +  <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"/>
  @@ -153,39 +183,46 @@
       JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should
       be valid XML.
     -->
  -  <jsp-engine>
  +  <jsp-engine logger="core.jsp-engine">
       <parameter name="servlet-class" value="org.apache.jasper.servlet.JspServlet"/>
       <parameter name="servlet-name" value="*.jsp"/>
     </jsp-engine>
   
     <!-- Xscript:
     -->
  -  <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>
   
  -  <!-- Programming Languages:
  -  -->
  +  <!-- Programming Languages: -->
     <programming-languages>
  -    <java-language name="java">
  -      <!-- compiler parameter specifies which class to use to compile Java.
  -           Possible variants are Javac and Jikes compilers.
  -           Javac requires javac.jar (included with Cocoon distribution).
  -           Jikes requires IBM jikes compiler to be present in the PATH  -->
  +    <java-language name="java" logger="core.language.java">
  +      <!-- Compiler parameter specifies which class to use to compile Java.
  +           Possible variants are:
  +             Javac. Requires javac.jar (included with Cocoon distribution).
  +             Pizza. Requires pizza.jar (included with Cocoon distribution).
  +             Jikes. Requires IBM jikes compiler to be present in the PATH  -->
         <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/>
         <!-- Specifies which formatter to use to format source code.
  -           This parameter is optional. -->
  +           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"/>
       </java-language>
  +
  +    <!-- Interpreted JavaScript language -->
  +    <js-language name="js" logger="core.language.js"/>
  +
     </programming-languages>
   
     <!-- Class loader:
       A singleton-like implementation of a ClassLoader.
     -->
  -  <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
  +  <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"
  +               logger="core.classloader"/>
     
     <!-- Markup Languages:
       This section defines several builtin logicsheets. A logicsheet is an XML
  @@ -193,7 +230,7 @@
       code embedding directives for a given markup language.
     -->
     <markup-languages>
  -    <xsp-language name="xsp">
  +    <xsp-language name="xsp" logger="core.markup.xsp">
         <parameter name="prefix" value="xsp"/>
         <parameter name="uri" value="http://apache.org/xsp"/>
   
  @@ -222,11 +259,13 @@
                XML interface to most methods of the HttpSession object (see the Java Servlet API 
                Specification, version 2.2 ) for more information. -->
           <builtin-logicsheet>
  -          <parameter name="prefix" value="session"/>
  +          <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 (taglib) is an XSP logicsheet that wraps XML tags 
  +             around standard cookie operations -->
           <builtin-logicsheet>
             <parameter name="prefix" value="xsp-cookie"/>
             <parameter name="uri" value="http://apache.org/xsp/cookie/2.0"/>
  @@ -262,11 +301,11 @@
             <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 -->
  +        <!-- 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"/>
  @@ -279,6 +318,8 @@
             <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"/>
  @@ -297,17 +338,34 @@
             <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/soap.xsl"/>
           </builtin-logicsheet>
   
  +      </target-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="jpath"/>
  -          <parameter name="uri" value="http://apache.org/xsp/jpath/1.0"/>
  -          <parameter name="href" value="resource://org/apache/cocoon/markup/xsp/jpath.xsl"/>
  +          <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>
   
       <!-- Defines Sitemap Core logicsheet for the Java language -->
  -    <sitemap-language name="sitemap">
  +    <sitemap-language name="sitemap" logger="core.markup.sitemap">
         <parameter name="prefix" value="map"/>
         <parameter name="uri" value="http://apache.org/cocoon/sitemap/1.0"/>
   
  @@ -320,7 +378,7 @@
     <!-- Datasources:
     -->
     <datasources>
  -    <jdbc name="personnel">
  +    <jdbc name="personnel" logger="core.datasources.personnel">
         <!--
             If you have an Oracle database, and are using the the
         pool-controller below, you should add the attribute
  @@ -353,18 +411,8 @@
       <stream-pipeline class="org.apache.cocoon.components.pipeline.NonCachingStreamPipeline"/>
     -->
     <stream-pipeline class="org.apache.cocoon.components.pipeline.CachingStreamPipeline"
  -                   pool-max="32" pool-min="16" pool-grow="4"/>
  -
  -  <!-- Caching of stream pipeline:
  -    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.
  -    filesystem: Turns the filesystem storage for objects on or off.
  -  -->
  -  <stream-cache class="org.apache.cocoon.components.store.MRUMemoryStore" logger="root.store">
  -     <parameter name="maxobjects" value="100"/>
  -     <parameter name="filesystem" value="true"/>
  -  </stream-cache>
  +                   logger="core.stream-pipeline"
  +                   pool-max="32" pool-min="8" pool-grow="4"/>
   
     <!-- Event Pipeline:
       Connects the generator and the various transformers and produces a
  @@ -374,18 +422,8 @@
       <event-pipeline class="org.apache.cocoon.components.profiler.ProfilingNonCachingEventPipeline"/>
     -->
     <event-pipeline class="org.apache.cocoon.components.pipeline.CachingEventPipeline"
  -                  pool-max="32" pool-min="16" pool-grow="4"/>
  -
  -  <!-- Caching of event pipeline:
  -    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.
  -    filesystem: Turns the filesystem storage for objects on or off.
  -  -->
  -  <event-cache class="org.apache.cocoon.components.store.MRUMemoryStore" logger="root.store">
  -     <parameter name="maxobjects" value="100"/>
  -     <parameter name="filesystem" value="true"/>
  -  </event-cache>
  +                  logger="core.event-pipeline"
  +                  pool-max="32" pool-min="8" pool-grow="4"/>
   
     <!-- Compiling xml to byte streams.
       The xml-serializer "compiles" xml sax events into a byte stream
  @@ -394,8 +432,11 @@
       may have to change the other one as well, as they might have
       a dependency.
     -->
  -  <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler"/>
  -  <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter"/>
  +  <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler"
  +                  logger="core.xml-serializer"/>
  +
  +  <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter"
  +                    logger="core.xml-deserializer"/>
   
     <!-- SAXConnector:
       Connects the various pipeline components.
  @@ -418,22 +459,10 @@
     <profiler/>
     -->
   
  -  <!-- Search:
  -    These are the components that handle the search. [fixme (sm): write more on this]
  -   -->
  -  <lucene-cocoon-indexer>
  -  </lucene-cocoon-indexer>
  -  <lucene-cocoon-searcher>
  -  </lucene-cocoon-searcher>
  -  <lucene-xml-indexer>
  -  </lucene-xml-indexer>
  -  <cocoon-crawler>
  -  </cocoon-crawler>
  -
     <!-- Resource Monitor:
       The Monitor keeps track on changes to a Resource.
     -->
  -  <monitor>
  +  <monitor logger="core.monitor">
       <thread priority="5" frequency="10000"/>
     </monitor>
   
  @@ -459,13 +488,116 @@
       For production environment, it is advisable to set the reload-method to
       asynchron and for more safety the check-reload to no.
     -->
  -  <sitemap file="sitemap.xmap" reload-method="asynchron" check-reload="yes"
  -	   components="/components.xconf"
  -	   handler-class="org.apache.cocoon.scheme.sitemap.SchemeSitemapHandler"/>
  -
  -  <scheme-interpreter entry-point="main"
  -		      sitemap-parse="sitemap-parse!"
  -		      heap="/schecoon.heap"
  -		      allow-eval="true"/>
  +  <!--sitemap class="org.apache.cocoon.treeprocessor.TreeProcessor" file="sitemap.xmap" reload-method="asynchron" check-reload="yes" logger="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.
  +
  +    To use this engine, comment the declaration above and uncomment the declaration below.
  +  -->
  +  <sitemap class="org.apache.cocoon.components.treeprocessor.TreeProcessor"
  +	   logger="sitemap"
  +	   config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins2.xml"/>
  +
  +<!-- ===================== Sitemap Components =========================== -->
  +
  +  <!-- Here defined some core Cocoon sitemap components, as File generator
  +       or XSLT transformer. Note that syntax of this file slightly differs
  +       from the syntax of <map:components> section of the sitemap.xmap file.
  +  -->
  +  <generators>
  +    <component-instance name="file" class="org.apache.cocoon.generation.FileGenerator"
  +                        label="content,data"
  +                        logger="sitemap.generator.file"
  +                        pool-max="32" pool-min="8" pool-grow="4"/>
  +
  +    <component-instance name="serverpages" class="org.apache.cocoon.generation.ServerPagesGenerator"
  +                        label="content,data"
  +                        logger="sitemap.generator.serverpages"
  +                        pool-max="32" pool-min="4" pool-grow="2"/>
  +    
  +    <component-instance name="directory" class="org.apache.cocoon.generation.DirectoryGenerator"
  +                        logger="sitemap.generator.directory"
  +                        label="content,data"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +
  +    <component-instance name="request" class="org.apache.cocoon.generation.RequestGenerator"
  +                        logger="sitemap.generator.request"
  +                        label="data"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +
  +    <component-instance name="status" class="org.apache.cocoon.generation.StatusGenerator"
  +                        logger="sitemap.generator.status"
  +                        label="data"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +  </generators>
  +
  +  <transformers>
  +    <component-instance name="xslt" class="org.apache.cocoon.transformation.TraxTransformer"
  +                        logger="sitemap.transformer.xslt"
  +                        pool-max="32" pool-min="8" pool-grow="2">
  +      <use-request-parameters>false</use-request-parameters>
  +      <use-browser-capabilities-db>false</use-browser-capabilities-db>
  +      <use-deli>false</use-deli>
  +    </component-instance>
  +
  +    <component-instance name="log" class="org.apache.cocoon.transformation.LogTransformer"
  +                        logger="sitemap.transformer.log"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +
  +    <component-instance name="xinclude" class="org.apache.cocoon.transformation.XIncludeTransformer"
  +                        logger="sitemap.transformer.xinclude"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +
  +    <component-instance name="cinclude" class="org.apache.cocoon.transformation.CIncludeTransformer"
  +                        logger="sitemap.transformer.cinclude"
  +                        pool-max="16" pool-min="2" pool-grow="2"/>
  +  </transformers>
  +
  +  <serializers>
  +    <component-instance name="links" class="org.apache.cocoon.serialization.LinkSerializer"
  +                        logger="sitemap.serializer.links"/>
  +
  +    <component-instance name="xml" class="org.apache.cocoon.serialization.XMLSerializer"
  +                        mime-type="text/xml"
  +                        logger="sitemap.serializer.xml"/>
  +
  +    <component-instance name="html" class="org.apache.cocoon.serialization.HTMLSerializer"
  +                        mime-type="text/html"
  +                        logger="sitemap.serializer.html"
  +                        pool-max="32" pool-min="4" pool-grow="4">
  +      <buffer-size>1024</buffer-size>
  +    </component-instance>
  +  </serializers>
  +
  +  <readers>
  +    <component-instance name="resource" class="org.apache.cocoon.reading.ResourceReader"
  +                        logger="sitemap.reader.resource"
  +                        pool-max="32"/>
  +  </readers>
  +
  +  <matchers>
  +    <component-instance name="wildcard" class="org.apache.cocoon.matching.WildcardURIMatcher"
  +                        logger="sitemap.matcher.wildcard"/>
  +
  +    <component-instance name="regexp" class="org.apache.cocoon.matching.RegexpURIMatcher"
  +                        logger="sitemap.matcher.regexp"/>
  +  </matchers>
  +
  +  <selectors>
  +  </selectors>
  +
  +  <actions>
  +    <component-instance name="add-employee" class="org.apache.cocoon.acting.DatabaseAddAction"
  +                        logger="sitemap.action.add-employee"/>
  +
  +    <component-instance name="del-employee" class="org.apache.cocoon.acting.DatabaseDeleteAction"
  +                        logger="sitemap.action.del-employee"/>
  +
  +    <component-instance name="upd-employee" class="org.apache.cocoon.acting.DatabaseUpdateAction"
  +                        logger="sitemap.action.upd-employee"/>
  +  </actions>
   
   </cocoon>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org