ovidiu 02/04/05 12:32:38
Modified: src/scratchpad/schecoon/webapp sitemap.xmap
Log:
Copied the pipeline definitions from the main documentation/ directory.
Revision Changes Path
1.16 +84 -26 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.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- sitemap.xmap 3 Apr 2002 21:31:19 -0000 1.15
+++ sitemap.xmap 5 Apr 2002 20:32:38 -0000 1.16
@@ -18,21 +18,94 @@
<map:script src="examples/calc/calc.scm" language="Scheme"/>
</map:resource>
- <map:resource name="document2html">
- <map:generate src="{source}" type="file"/>
- <map:transform src="stylesheets/document2html.xsl"/>
- <map:serialize/>
- </map:resource>
-
- <map:resource name="xsp">
- <map:generate src="{source}" type="serverpages"/>
- <map:serialize/>
- </map:resource>
-
</map:resources>
<map:pipelines>
+ <!-- Schecoon documentation pipeline -->
+ <map:pipeline>
+
+ <map:match pattern="">
+ <map:redirect-to uri="index.html"/>
+ </map:match>
+
+ <map:match pattern="**book-**.xml">
+ <map:generate src="docs/{1}book.xml"/>
+ <map:transform src="stylesheets/book2menu.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ <map:parameter name="resource" value="{2}.html"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="body-**.xml">
+ <map:generate src="docs/{1}.xml"/>
+ <map:transform src="stylesheets/document2html.xsl"/>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="*.html">
+ <map:aggregate element="site">
+ <map:part src="cocoon:/book-{1}.xml"/>
+ <map:part src="cocoon:/body-{1}.xml" label="content"/>
+ </map:aggregate>
+ <map:transform src="stylesheets/site2xhtml.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ <map:parameter name="header" value="graphics/{1}-header.jpg"/>
+ </map:transform>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="**/*.html">
+ <map:aggregate element="site">
+ <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
+ <map:part src="cocoon:/body-{1}/{2}.xml" label="content"/>
+ </map:aggregate>
+ <map:transform src="stylesheets/site2xhtml.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ <map:parameter name="header" value="graphics/{2}-header.jpg"/>
+ </map:transform>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="**resources/script.js">
+ <map:read src="stylesheets/script-cli.js" mime-type="application/javascript"/>
+ </map:match>
+
+ <map:match pattern="**resources/**.js">
+ <map:read src="stylesheets/{2}.js" mime-type="application/javascript"/>
+ </map:match>
+
+ <map:match pattern="**.css">
+ <map:read src="{1}.css" mime-type="text/css"/>
+ </map:match>
+
+ <map:match pattern="**images/*.png">
+ <map:read src="images/{2}.png" mime-type="image/png"/>
+ </map:match>
+
+ <map:match pattern="**images/*.jpg">
+ <map:read src="images/{2}.jpg" mime-type="image/jpeg"/>
+ </map:match>
+
+ <map:match pattern="**images/*.gif">
+ <map:read src="images/{2}.gif" mime-type="image/gif"/>
+ </map:match>
+
+ <map:match pattern="**graphics/**-*.jpg">
+ <map:generate src="svg/{3}.xml"/>
+ <map:transform src="svg/addlabel.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ <map:parameter name="label" value="{2}"/>
+ </map:transform>
+ <map:serialize type="svg2jpeg"/>
+ </map:match>
+
+ </map:pipeline>
+
+
+ <!-- Examples -->
+
<map:pipeline>
<map:match pattern="calc">
<map:redirect-to uri="calc/"/>
@@ -53,21 +126,6 @@
<map:serialize/>
</map:match>
</map:pipeline>
-
- <map:pipeline>
- <!-- Simple pipeline which has the pipeline definition inline. -->
- <map:match pattern="documentation/*.html">
- <map:generate src="docs/{1}.xml" type="file"/>
- <map:transform src="stylesheets/document2html.xsl"/>
- <map:serialize/>
- </map:match>
-
- <!-- Simple pipeline that reads an image from the filesystem -->
- <map:match pattern="sites/images/*.gif">
- <map:read src="images/{1}.gif" mime-type="image/gif"/>
- </map:match>
- </map:pipeline>
-
</map:pipelines>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]