You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2008/10/15 15:16:28 UTC

svn commit: r704902 - /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf

Author: thorsten
Date: Wed Oct 15 06:16:27 2008
New Revision: 704902

URL: http://svn.apache.org/viewvc?rev=704902&view=rev
Log:
Using the traditional way to configure a cocoon component

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf?rev=704902&r1=704901&r2=704902&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf (original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/avalon/dispatcher-sitemapcomponents.xconf Wed Oct 15 06:16:27 2008
@@ -18,6 +18,64 @@
 
 <map:components xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <map:transformers default="xslt">
+    <map:transformer name="dispatcher"
+        src="org.apache.forrest.dispatcher.transformation.DispatcherTransformer">
+        <!--+
+        |  If you want to use inline xml for contract properties be aware that setting 
+        | this properties to true will have negative influence on performance since 
+        | this feature needs to use DOM parsing!
+        |
+        | We strongly recommend to rewrite your contracts and structurer to use simple 
+        | string for the properties.
+        |   
+        | The default is set to "false".
+        +-->
+        <!-- Until we have migrated all contract to work with plain strings
+        we need this being true -->
+        <allowXml>true</allowXml>
+        
+        <!--+
+        |  If you want to change the uri prefix of the contracts. 
+        | This may be interesting if you work with a contract repository rather then
+        | with the ones from the themer plugin. 
+        |  
+        | The default is "cocoon://resolve.contract".
+        +-->
+        <!--<contractUriPrefix>cocoon://resolve.contract.</contractUriPrefix>-->
+        
+        <!--+
+        |  You can use either limited of full xpath support for the injection of contract 
+        | result data. We currently provide the basic support with a plain StAX implementation
+        | and the enhanced support with AXIOM.
+        |  
+        | The default is "basic".
+        +-->
+        <!--<xpathSupport>enhanced</xpathSupport>-->
+        <!--+
+        | DOWNGRADE COMPATIBLE
+        |  When using tags such as <forrest:property name="theme" value="pelt"/>
+        | and if you set this property to false, you will get the whole tag  in your contract.
+        | If you set it to true we will pass a simple string to the transformation
+        | in the form of key=@name, value=@value
+        |  
+        | The default is "true".
+        +-->
+        <!-- Until we have migrated all contract to work with plain strings
+          we need this being true -->
+        <shrink>false</shrink>
+      </map:transformer>
+      <!-- Enhanced xpath support of the dispatcher enabled for
+        formats such as fo which depend on namespaces -->
+      <map:transformer name="dispatcherEnhanced"
+        src="org.apache.forrest.dispatcher.transformation.DispatcherTransformer">
+        <!-- Until we have migrated all contract to work with plain strings
+          we need this being true -->
+        <allowXml>true</allowXml>
+        <xpathSupport>enhanced</xpathSupport>
+        <!-- Until we have migrated all contract to work with plain strings
+          we need this being true -->
+        <shrink>false</shrink>
+      </map:transformer>
     <map:transformer name="i18n"
       src="org.apache.cocoon.transformation.I18nTransformer">
       <catalogues default="contracts">