Author: vgritsenko Date: Thu Mar 31 08:12:23 2005 New Revision: 159610 URL: http://svn.apache.org/viewcvs?view=rev&rev=159610 Log: fix ClassCastException. remove duplicate entry.
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml?view=diff&r1=159609&r2=159610 ============================================================================== --- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml (original) +++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml Thu Mar 31 08:12:23 2005 @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!-- - Copyright 1999-2004 The Apache Software Foundation + Copyright 1999-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. @@ -52,37 +52,42 @@ <!ELEMENT forbidden-children (#PCDATA)> ]> +<!--+ + | $Id$ + +--> <tree-processor> - <!-- The sitemap language. - The "class" attribute names the implementation of TreeBuilder to be used for this language - - A language definition is a component of a ComponentSelector. Consequently, it can - have all attributes supported by components, including pool-settings. - Since it is unlikely that several sitemaps will be built simultaneously, the - pool-max is set to 1, meaning that only one builder is recycled. - --> - <language name="sitemap" class="org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage" - pool-max="1"> - + <!--+ + | The sitemap language. + | The "class" attribute names the implementation of TreeBuilder to be used for this language + | + | A language definition is a component of a ComponentSelector. Consequently, it can + | have all attributes supported by components, including pool-settings. + | Since it is unlikely that several sitemaps will be built simultaneously, the + | pool-max is set to 1, meaning that only one builder is recycled. + +--> + <language name="sitemap" + class="org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage" + pool-max="1"> + <!-- Namespace for this language --> <namespace uri="http://apache.org/cocoon/sitemap/1.0"/> - + <!-- File name for files in this language, relative to the environment prefix --> <file name="sitemap.xmap"/> - + <!-- Description of the element for nodes parameters --> <parameter element="parameter"/> - + <!-- New roles available to components created within a sitemap (i.e. in <map:components>) --> <roles> <role name="org.apache.cocoon.acting.ActionSelector" shorthand="actions" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"/> - + <role name="org.apache.cocoon.selection.SelectorSelector" shorthand="selectors" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"/> - + <role name="org.apache.cocoon.components.pipeline.ProcessingPipelineSelector" shorthand="pipes" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"/> @@ -93,7 +98,7 @@ <!-- since <map:components> is a regular xconf, we can define shorthand for well-known implementations. - + The hint below allows the following to be written in <map:matchers> : <regexp-uri-matcher name="regexp"/> in place of : @@ -106,7 +111,7 @@ class="org.apache.cocoon.matching.WildcardURIMatcher"/> </role> - + <role name="org.apache.cocoon.generation.GeneratorSelector" shorthand="generators" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"> @@ -117,7 +122,7 @@ <hint shorthand="XSP-generator" class="org.apache.cocoon.generation.ServerPagesGenerator"/> </role> - + <role name="org.apache.cocoon.transformation.TransformerSelector" shorthand="transformers" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"> @@ -129,75 +134,87 @@ class="org.apache.cocoon.transformation.CIncludeTransformer"/> </role> - + <role name="org.apache.cocoon.serialization.SerializerSelector" shorthand="serializers" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"/> - + <role name="org.apache.cocoon.reading.ReaderSelector" shorthand="readers" default-class="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector"/> - + <role name="org.apache.cocoon.components.notification.NotifyingBuilder" shorthand="notifying-builder" - default-class="org.apache.cocoon.components.notification.DefaultNotifyingBuilder"/> + default-class="org.apache.cocoon.components.notification.DefaultNotifyingBuilder"/> </roles> - - <!-- node definitions for the sitemap language --> + + <!--+ + | Node definitions for the sitemap language. + +--> <nodes> <!-- A node has the following attributes : - name : the node name, given as a local name in the language namespace (no prefix) - builder : the class name of the ProcessingNodeBuilder for this node - + The contents of a node definition is the configuration of Configurable ProcessingNodeBuilders. --> - + <!-- Sitemap root node --> <node name="sitemap" builder="org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder"> - <allowed-children>components, views, action-sets, resources, pipelines, flow</allowed-children> - </node> - - <node name="components" builder="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsNodeBuilder"/> - - <node name="pipelines" builder="org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder"> - <allowed-children>pipeline, handle-errors</allowed-children> - <ignored-children>component-configurations</ignored-children> + <allowed-children>components, views, action-sets, resources, flow, pipelines</allowed-children> </node> <node name="components" builder="org.apache.cocoon.components.treeprocessor.sitemap.ComponentsNodeBuilder"/> - <node name="flow" builder="org.apache.cocoon.components.treeprocessor.sitemap.FlowNodeBuilder"/> + <node name="views" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"> + <allowed-children>view</allowed-children> + </node> - <node name="views" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"/> - <node name="view" builder="org.apache.cocoon.components.treeprocessor.sitemap.ViewNodeBuilder"/> - - <node name="resources" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"/> - - <node name="resource" builder="org.apache.cocoon.components.treeprocessor.NamedContainerNodeBuilder"/> - <node name="action-sets" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"/> - + <node name="action-sets" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"> + <allowed-children>action-set</allowed-children> + </node> + <node name="action-set" builder="org.apache.cocoon.components.treeprocessor.sitemap.ActionSetNodeBuilder"/> + <node name="resources" builder="org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder"> + <allowed-children>resource</allowed-children> + </node> + + <node name="resource" builder="org.apache.cocoon.components.treeprocessor.NamedContainerNodeBuilder"/> + + <node name="flow" builder="org.apache.cocoon.components.treeprocessor.sitemap.FlowNodeBuilder"> + <allowed-children>script</allowed-children> + </node> + + <node name="script" builder="org.apache.cocoon.components.treeprocessor.sitemap.ScriptNodeBuilder"/> + + <node name="pipelines" builder="org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder"> + <allowed-children>pipeline, handle-errors</allowed-children> + <ignored-children>component-configurations</ignored-children> + </node> + <node name="pipeline" builder="org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder"> - <forbidden-children>sitemap, components, pipelines</forbidden-children> + <forbidden-children>sitemap, components, pipeline</forbidden-children> </node> - + <node name="match" builder="org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder"> <forbidden-children>sitemap, components, pipeline, handle-errors</forbidden-children> </node> - <node name="select" builder="org.apache.cocoon.components.treeprocessor.sitemap.SelectNodeBuilder"/> + <node name="select" builder="org.apache.cocoon.components.treeprocessor.sitemap.SelectNodeBuilder"> + <forbidden-children>sitemap, components, pipeline, handle-errors</forbidden-children> + </node> <node name="act" builder="org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder"> <forbidden-children>sitemap, components, pipeline, handle-errors</forbidden-children> </node> <node name="redirect-to" builder="org.apache.cocoon.components.treeprocessor.sitemap.RedirectToNodeBuilder"/> - + <node name="call" builder="org.apache.cocoon.components.treeprocessor.sitemap.CallNodeBuilder"/> <node name="mount" builder="org.apache.cocoon.components.treeprocessor.sitemap.MountNodeBuilder"/> @@ -212,12 +229,10 @@ <node name="serialize" builder="org.apache.cocoon.components.treeprocessor.sitemap.SerializeNodeBuilder"/> - <node name="script" builder="org.apache.cocoon.components.treeprocessor.sitemap.ScriptNodeBuilder"/> - <node name="handle-errors" builder="org.apache.cocoon.components.treeprocessor.sitemap.HandleErrorsNodeBuilder"/> </nodes> - + </language> </tree-processor>