You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/11/18 01:20:29 UTC
svn commit: rev 76199 - in cocoon/trunk/src/webapp: . samples
Author: vgritsenko
Date: Wed Nov 17 16:20:27 2004
New Revision: 76199
Modified:
cocoon/trunk/src/webapp/samples/sitemap.xmap
cocoon/trunk/src/webapp/sitemap.xmap
Log:
add two testcases (temporary) for VPC generator
Modified: cocoon/trunk/src/webapp/samples/sitemap.xmap
==============================================================================
--- cocoon/trunk/src/webapp/samples/sitemap.xmap (original)
+++ cocoon/trunk/src/webapp/samples/sitemap.xmap Wed Nov 17 16:20:27 2004
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!-- CVS $Id: sitemap.xmap,v 1.28 2004/07/07 02:37:01 vgritsenko Exp $ -->
+<!-- CVS $Id$ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
@@ -59,6 +59,11 @@
</map:component-configurations>
<map:pipeline>
+ <map:match pattern="v">
+ <map:generate type="virtual"/>
+ <map:serialize type="xhtml"/>
+ </map:match>
+
<map:match pattern="">
<map:generate src="samples.xml"/>
<map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
Modified: cocoon/trunk/src/webapp/sitemap.xmap
==============================================================================
--- cocoon/trunk/src/webapp/sitemap.xmap (original)
+++ cocoon/trunk/src/webapp/sitemap.xmap Wed Nov 17 16:20:27 2004
@@ -77,6 +77,16 @@
<!-- The notifying generator can only be used in a <handle-errors> section : it produces an XML
representation of the exception that caused the error handler to be executed -->
<map:generator name="notifying" src="org.apache.cocoon.sitemap.NotifyingGenerator"/>
+
+ <!--
+ - Virtual Pipeline Generator: Composed of other pipeline components.
+ -->
+ <map:generator name="virtual" src="org.apache.cocoon.generation.VirtualPipelineGenerator">
+ <map:generate src="welcome.xml"/>
+ <map:transform src="welcome.xslt">
+ <map:parameter name="contextPath" value="{request:contextPath}"/>
+ </map:transform>
+ </map:generator>
</map:generators>
@@ -552,6 +562,12 @@
| serializer, which will produce an XHTML representation of the
| SAX stream.
+-->
+ <map:serialize type="xhtml"/>
+ </map:match>
+
+ <!-- FIXME Remove later -->
+ <map:match pattern="v">
+ <map:generate type="virtual"/>
<map:serialize type="xhtml"/>
</map:match>