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 2003/08/10 13:42:47 UTC
cvs commit: cocoon-2.1/src/webapp/samples samples.xml
reinhard 2003/08/10 04:42:47
Modified: src/webapp/samples/imagereader sitemap.xmap
src/webapp/samples/paginator sitemap.xmap
src/webapp/samples samples.xml
Added: src/webapp/samples/imagereader samples.xml
src/webapp/samples/paginator samples.xml
Log:
- restructure samples
Revision Changes Path
1.2 +6 -2 cocoon-2.1/src/webapp/samples/imagereader/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/imagereader/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 27 Jun 2003 20:10:41 -0000 1.1
+++ sitemap.xmap 10 Aug 2003 11:42:47 -0000 1.2
@@ -21,7 +21,11 @@
<map:pipelines>
<map:pipeline>
<map:match pattern="">
- <map:redirect-to uri="image-100"/>
+ <map:generate src="samples.xml"/>
+ <map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
+ <map:parameter name="contextPath" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize/>
</map:match>
<map:match pattern="image-*">
1.1 cocoon-2.1/src/webapp/samples/imagereader/samples.xml
Index: samples.xml
===================================================================
<samples xmlns:xlink="http://www.w3.org/1999/xlink">
<group name="Main examples page.">
<sample name="Back" href="..">to Cocoon examples main page</sample>
</group>
<group name="ImageReader">
<sample href="image-0" name="Image">
Image of original size
</sample>
<sample href="image-250" name="Image 250x250">
Image scaled up to the size 250 x 250
</sample>
<sample href="image-50" name="Image 50x50">
Image scaled down to the size 50 x 50
</sample>
</group>
</samples>
1.2 +7 -2 cocoon-2.1/src/webapp/samples/paginator/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/paginator/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 27 Jun 2003 20:10:42 -0000 1.1
+++ sitemap.xmap 10 Aug 2003 11:42:47 -0000 1.2
@@ -16,8 +16,13 @@
<map:pipelines>
<map:pipeline>
+
<map:match pattern="">
- <map:redirect-to uri="list(1)"/>
+ <map:generate src="samples.xml"/>
+ <map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
+ <map:parameter name="contextPath" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize/>
</map:match>
<map:match pattern="*(*)">
1.1 cocoon-2.1/src/webapp/samples/paginator/samples.xml
Index: samples.xml
===================================================================
<samples xmlns:xlink="http://www.w3.org/1999/xlink">
<group name="Main examples page.">
<sample name="Back" href="..">to Cocoon examples main page</sample>
</group>
<group name="Paginator">
<sample href="list(1)" name="List Pagination">
Show the usage of the Paginator Transformer to paginate document based on items count limit.
</sample>
<sample href="text(1)" name="Text Pagination">
Show the usage of the Paginator Transformer to paginate document based on characters count limit.
</sample>
</group>
</samples>
1.22 +25 -55 cocoon-2.1/src/webapp/samples/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/samples.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- samples.xml 1 Aug 2003 09:41:23 -0000 1.21
+++ samples.xml 10 Aug 2003 11:42:47 -0000 1.22
@@ -50,64 +50,34 @@
that make use of it e.g. the Petstore, JXForms and Woody block
</note>
</group>
-
- <group name="Web Services and B2B">
- <sample name="SOAP" href="soap/">
- Cocoon ships with facilities for immediate connection to SOAP resources.
- These examples show you how to connect to any web service with a few
- lines of XML markup.
- </sample>
- <sample name="Order Page" href="stream/order" xlink:role="dynamic">
- An example of B2B processing.
- </sample>
- </group>
-
- <group name="The Power of Sitemap">
- <sample name="Input Modules" href="modules/">
+
+ <group name="More core samples">
+ <sample href="modules/" name="The Power of Sitemap: Input Modules">
This example shows the usage of Input Modules in sitemap attribute expressions.
</sample>
- <sample name="Sources" href="sources/">
+ <sample href="sources/" name="The Power of Sitemap: Sources">
This example shows the usage of sources in the sitemap.
- </sample>
- </group>
-
- <group name="Extensible Server Pages">
- <sample name="XSP" href="xsp/">
+ </sample>
+ <sample href="xsp/" name="Extensible Server Pages">
Extensible Server Pages.
- </sample>
- </group>
-
- <!-- FIXME: (RP) Do we rellay want this examples on our top samples page?
- <group name="Web Applications">
- <sample name="Protected Area" href="protected/login">
- An example web-application built around db-authenticator,
- form-validator, session-validator and session-invalidator
- actions.
- </sample>
- </group>
- -->
-
- <!-- FIXME: (RP) Shouldn't be the paginator a block? -->
- <group name="Paginator">
- <sample name="List Pagination" href="paginator/list(1)">
- Show the usage of the Paginator Transformer to paginate document based on items count limit.
- </sample>
- <sample name="Text Pagination" href="paginator/text(1)">
- Show the usage of the Paginator Transformer to paginate document based on characters count limit.
- </sample>
- </group>
-
- <!-- FIXME: (RP) Shouldn't be the image reader a block? -->
- <group name="ImageReader">
- <sample name="Image" href="imagereader/image-0">
- Image of original size
- </sample>
- <sample name="Image 250x250" href="imagereader/image-250">
- Image scaled up to the size 250 x 250
- </sample>
- <sample name="Image 50x50" href="imagereader/image-50">
- Image scaled down to the size 50 x 50
- </sample>
+ </sample>
+ <sample href="imagereader/" name="Imagereader">
+ ImageReader
+ </sample>
+ <sample href="paginator/" name="Paginator">
+ Paginator
+ </sample>
+ <sample href="soap/" name="SOAP">
+ Cocoon ships with facilities for immediate connection to SOAP resources.
+ These examples show you how to connect to any web service with a few
+ lines of XML markup.
+ </sample>
+ <note>
+ There is also an Axis block available that integrates Axis into Cocoon.
+ </note>
+ <sample href="stream/order" name="B2B: Order Page" xlink:role="dynamic">
+ An example of B2B processing.
+ </sample>
</group>
<!--