ovidiu 02/02/15 17:52:59 Modified: src/scratchpad/schecoon/webapp sitemap.xmap Log: Define a resource for processing XSP pages. Define pipeline to invoke this resource. The resource is also invoked from the flow control layer (see example.scm). Revision Changes Path 1.4 +13 -0 xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- sitemap.xmap 13 Feb 2002 01:56:22 -0000 1.3 +++ sitemap.xmap 16 Feb 2002 01:52:59 -0000 1.4 @@ -14,6 +14,11 @@ <map:serialize/> </map:resource> + <map:resource name="xsp"> + <map:generate src="{source}" type="serverpages"/> + <map:serialize/> + </map:resource> + </map:resources> <map:pipelines> @@ -29,6 +34,14 @@ <!-- Simple pipeline that reads an image from the filesystem --> <map:match pattern="sites/images/(.*).gif"> <map:read src="{1}.gif" mime-type="image/gif"/> + </map:match> + + <!-- Pipeline for processing XSP. We use a resource define + above. --> + <map:match pattern="xsp/(.*).html"> + <map:call resource="xsp"> + <map:parameter name="source" value="xsp/{1}.xsp"/> + </map:call> </map:match> <!-- An example of calling a pipeline defined as resource. The
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]