You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2007/05/22 08:03:00 UTC

svn commit: r540432 - in /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources: META-INF/ archetype-resources/ archetype-resources/src/main/java/demo/ archetype-resources/src/main/resources/COB-INF/ archetype-resources/src/main/re...

Author: reinhard
Date: Mon May 21 23:02:59 2007
New Revision: 540432

URL: http://svn.apache.org/viewvc?view=rev&rev=540432
Log:
- move all resources that are part of the demo into a demo directory
- add a commented pipeline demo
- use released dependencies

Added:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml   (with props)
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml   (with props)
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt   (with props)
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js   (with props)
Removed:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo.js
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo.xml
Modified:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/META-INF/archetype.xml
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/META-INF/archetype.xml?view=diff&rev=540432&r1=540431&r2=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/META-INF/archetype.xml (original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/META-INF/archetype.xml Mon May 21 23:02:59 2007
@@ -6,9 +6,9 @@
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
-  
+
   http://www.apache.org/licenses/LICENSE-2.0
-  
+
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -18,14 +18,16 @@
 <archetype>
   <id>cocoon-archetype-block</id>
   <resources>
-    <resource>rcl.properties</resource>  
+    <resource>rcl.properties</resource>
     <resource>src/main/java/demo/MyBean.java</resource>
     <resource>src/main/resources/COB-INF/sitemap.xmap</resource>
-    <resource>src/main/resources/COB-INF/demo.js</resource>
-    <resource>src/main/resources/COB-INF/demo.xml</resource>
+    <resource>src/main/resources/COB-INF/flow/spring-bean.js</resource>
+    <resource>src/main/resources/COB-INF/demo/spring-bean.jx.xml</resource>
+    <resource>src/main/resources/COB-INF/demo/welcome.xml</resource>
+    <resource>src/main/resources/COB-INF/demo/welcome.xslt</resource>
     <resource>src/main/resources/COB-INF/resource/internal/README.txt</resource>
     <resource>src/main/resources/COB-INF/resource/external/README.txt</resource>
     <resource>src/main/resources/META-INF/cocoon/spring/demo-application-context.xml</resource>
-    <resource>src/main/resources/META-INF/cocoon/spring/servlet-service.xml</resource>    
+    <resource>src/main/resources/META-INF/cocoon/spring/servlet-service.xml</resource>
   </resources>
 </archetype>

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml?view=diff&rev=540432&r1=540431&r2=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml (original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml Mon May 21 23:02:59 2007
@@ -20,7 +20,8 @@
 <!--+
     | @version $Id$
     +-->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
   <modelVersion>4.0.0</modelVersion>
   <packaging>jar</packaging>
@@ -30,14 +31,30 @@
   <artifactId>${artifactId}</artifactId>
   <version>${version}</version>
 
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-core</artifactId>
+      <version>2.2.0-RC1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-servlet-service-components</artifactId>
+      <version>1.0.0-M2</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-template-impl</artifactId>
+      <version>1.0.0-RC1</version>
+    </dependency>
+  </dependencies>
+
   <build>
     <plugins>
-      <!-- As the reloading classloader plugin hasn't been released yet, it is uncommented.
-           In order to use it, you have to build it yourself and activate the section below. -->
-      <!--plugin>
+      <plugin>
         <groupId>org.apache.cocoon</groupId>
         <artifactId>cocoon-maven-plugin</artifactId>
-        <version>1.0.0-M1-SNAPSHOT</version>
+        <version>1.0.0-M1</version>
         <executions>
           <execution>
             <id>rcl</id>
@@ -51,7 +68,7 @@
       <plugin>
         <groupId>org.mortbay.jetty</groupId>
         <artifactId>maven-jetty-plugin</artifactId>
-        <version>6.0.2</version>
+        <version>6.1.3</version>
         <configuration>
           <connectors>
             <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
@@ -65,10 +82,10 @@
             <systemProperty>
               <name>org.apache.cocoon.mode</name>
               <value>dev</value>
-            </systemProperty>            
-          </systemProperties>           
+            </systemProperty>
+          </systemProperties>
         </configuration>
-      </plugin-->
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
@@ -83,44 +100,5 @@
       </plugin>
     </plugins>
   </build>
-  
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.cocoon</groupId>
-      <artifactId>cocoon-core</artifactId>
-      <version>2.2.0-RC1-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.cocoon</groupId>
-      <artifactId>cocoon-servlet-service-components</artifactId>
-      <version>1.0.0-RC1-SNAPSHOT</version>
-    </dependency>      
-    <dependency>
-      <groupId>org.apache.cocoon</groupId>
-      <artifactId>cocoon-template-impl</artifactId>
-      <version>1.0.0-RC1-SNAPSHOT</version>
-    </dependency>  
-  </dependencies> 
-  
-  <repositories>
-    <!-- Avalon/Excalibur dependencies -->
-    <repository>
-      <id>apache.snapshot</id>
-      <name>Apache Snapshot Repository</name>
-      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
-      <releases>
-        <enabled>true</enabled>
-      </releases>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>  
-    <!-- Release testing -->
-    <repository>
-      <id>cocoon.staging</id>
-      <name>Cocoon staging repository</name>
-      <url>http://people.apache.org/builds/cocoon</url>
-    </repository>    
-  </repositories>
 
-</project>
+</project>
\ No newline at end of file

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java?view=diff&rev=540432&r1=540431&r2=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java (original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java Mon May 21 23:02:59 2007
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,8 +17,8 @@
 package demo;
 
 public class MyBean {
-    
-    private String message = "This is a message coming from a Spring bean.";
+
+    private String message;
 
     public void setMessage(String message) {
         this.message = message;

Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml?view=auto&rev=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml Mon May 21 23:02:59 2007
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<demo>
+  <module>${groupId}:${artifactId}</module>
+  <spring>#{message}</spring>
+</demo>
\ No newline at end of file

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml?view=auto&rev=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml Mon May 21 23:02:59 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<content>
+  <h1>Apache Cocoon: Welcome</h1>
+  <p>This block <strong>${groupId}:${artifactId}</strong> was created by the Cocoon block archetype.</p>
+  <p/>
+  <p><a href="spring-bean">Link</a> to the output of a simple Flowscript that accesses a Spring bean.</p>
+</content>
\ No newline at end of file

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt?view=auto&rev=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt Mon May 21 23:02:59 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="/">
+    <html>
+      <head>
+        <title>Apache Cocoon: Welcome!</title>
+      </head>
+      <body>
+        <xsl:copy-of select="content/*"/>
+      </body>
+    </html>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/welcome.xslt
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js?view=auto&rev=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js Mon May 21 23:02:59 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+//
+// @version $Id: demo.js 448451 2006-09-21 04:04:16Z crossley $
+//
+
+function demo() {
+    var demoBean = cocoon.getComponent("demo");
+    cocoon.sendPage("screens/spring-bean",
+        {
+            "message" : demoBean.message
+        }
+    );
+}

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/flow/spring-bean.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=540432&r1=540431&r2=540432
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap Mon May 21 23:02:59 2007
@@ -18,22 +18,62 @@
 <map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
  xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-  
-  <map:flow language="javascript">
-    <map:script src="demo.js"/>
-  </map:flow>
-  
+
+  <!--+
+      | Definition of the control flow implementation.
+      +-->
+  <map:flow language="javascript"/>
+
   <map:pipelines>
+    <!--+
+        | Demo pipelines
+        +-->
     <map:pipeline id="demo">
+      <!-- Simple demo, that show how Cocoon pipelines. -->
       <map:match pattern="">
+        <!--+
+            | Start generating SAX events inside the pipeline. In this case,
+            | since no "type" attribute is specified, the default generator
+            | is used and this is a regular XML parser that reads the
+            | given file from the URL included in the "src" attribute and
+            | sends the events produced by the parser down the pipeline to
+            | be processed by the next stage.
+            +-->
+        <map:generate src="demo/welcome.xml"/>
+        <!--+
+            | This transformer gets the input SAX events and transforms them
+            | using the default transformer (the XSLT transformer) thus
+            | applying the XSLT stylesheet indicated in the "src" attribute
+            | and sending the output down the pipeline to be processed by the
+            | next stage.
+            +-->
+        <map:transform src="demo/welcome.xslt"/>
+        <!--+
+            | The serializer concludes the SAX events journey into the pipeline
+            | since it serializes the events it receives into a representation
+            | depending on the serializer type. Here we choose the "XHMTL"
+            | serializer, which will produce an XHTML representation of the
+            | SAX stream.
+            +-->
+        <map:serialize type="xhtml"/>
+      </map:match>
+      <!-- Implement application logic using a Flowscript function.
+        Flowscripts in ./flow are loaded automatically in alphabetical order. -->
+      <map:match pattern="spring-bean">
         <map:call function="demo"/>
       </map:match>
-      <map:match pattern="screens/demo">
-        <map:generate src="demo.xml" type="jx"/>
+    </map:pipeline>
+    <map:pipeline id="demo-internal" internal-only="true">
+      <!-- This pipeline is invoked by the above flowscript. -->
+      <map:match pattern="screens/spring-bean">
+        <map:generate src="demo/spring-bean.jx.xml" type="jx"/>
         <map:serialize type="xml"/>
       </map:match>
     </map:pipeline>
-    
+
+    <!--+
+        | Default pipelines
+        +-->
     <map:pipeline id="internal-resource" internal-only="true">
       <!-- Put matchers for internal (accessible only to Cocoon blocks) resources here
         More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
@@ -41,20 +81,19 @@
         <map:read src="resource/internal/{1}"/>
       </map:match>
     </map:pipeline>
-    
+
     <map:pipeline id="external-resource">
-      <!-- Put matchers for external (accessible to the outside world, e.g. browser) resources here. 
+      <!-- Put matchers for external (accessible to the outside world, e.g. browser) resources here.
         More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
       <map:match pattern="resource/external/**">
         <map:read src="resource/external/{1}"/>
       </map:match>
     </map:pipeline>
-    
+
     <map:pipeline id="service">
       <!-- Put your servlet service matchers here.
         More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
     </map:pipeline>
   </map:pipelines>
-  
-</map:sitemap>
 
+</map:sitemap>
\ No newline at end of file