You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by th...@apache.org on 2011/08/29 12:45:30 UTC
svn commit: r1162725 - in /cocoon/cocoon3/trunk/cocoon-sample: pom.xml
src/main/resources/COB-INF/overview.html
src/main/resources/COB-INF/sitemap.xmap
src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml
Author: thorsten
Date: Mon Aug 29 10:45:30 2011
New Revision: 1162725
URL: http://svn.apache.org/viewvc?rev=1162725&view=rev
Log:
Adding stax example
Modified:
cocoon/cocoon3/trunk/cocoon-sample/pom.xml
cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/overview.html
cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml
Modified: cocoon/cocoon3/trunk/cocoon-sample/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/pom.xml?rev=1162725&r1=1162724&r2=1162725&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/pom.xml (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/pom.xml Mon Aug 29 10:45:30 2011
@@ -66,7 +66,11 @@
</dependency>
<!-- Optional libraries -->
- <dependency>
+ <dependency>
+ <groupId>org.apache.cocoon.stax</groupId>
+ <artifactId>cocoon-stax</artifactId>
+ </dependency>
+ <dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</dependency>
Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/overview.html
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/overview.html?rev=1162725&r1=1162724&r2=1162725&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/overview.html (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/overview.html Mon Aug 29 10:45:30 2011
@@ -36,6 +36,10 @@
<li><a href="sax-pipeline/simple-xsd">SAX Pipeline</a>: Same as before but creates XML as output format after validating the input.</li>
<li><a href="sax-pipeline/unauthorized">Status code</a>: Set status code '401' at pipeline.</li>
</ul>
+ <h2>StAX Pipelines</h2>
+ <ul>
+ <li><a href="stax-pipeline/simple">StAX Pipeline</a>: Simplest possible pipeline that has a generator and serializer but processing is based on StAX instead of SAX!</li>
+ </ul>
<h2>Caching</h2>
<ul>
<li><a href="caching-pipeline/off">Non-Caching pipeline</a>: The pipeline doesn't cache (although it's components support it)</li>
Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap?rev=1162725&r1=1162724&r2=1162725&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap Mon Aug 29 10:45:30 2011
@@ -85,6 +85,14 @@
</map:match>
</map:pipeline>
+ <!-- ~~~~~~~~~~~~~~~~ stax pipelines ~~~~~~~~~~~~~~~ -->
+ <map:pipeline jmx-group-name="stax">
+ <map:match equals="stax-pipeline/simple">
+ <map:generate type="stax" src="sax-pipeline/simple.xml" />
+ <map:serialize type="stax"/>
+ </map:match>
+ </map:pipeline>
+
<!-- ~~~~~~~~~~~~~~~~ caching of pipelines ~~~~~~~~~~~~~~~ -->
<map:pipeline jmx-group-name="timestamp-caching">
<map:match pattern="caching-pipeline/on">
Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml?rev=1162725&r1=1162724&r2=1162725&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/META-INF/cocoon/spring/cocoon-sample-sitemap-components.xml Mon Aug 29 10:45:30 2011
@@ -21,6 +21,8 @@
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+ <import
+ resource="classpath:META-INF/cocoon/spring/cocoon-stax-components.xml" />
<bean name="action:error-throwing" class="org.apache.cocoon.sample.action.ErrorThrowingAction" scope="prototype" />
<bean name="generator:timestamp-caching" class="org.apache.cocoon.sample.generation.CachingTimestampGenerator" scope="prototype" />