Skip to content

Commit

Permalink
- restructure samples
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk@25394 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
reinhard committed Aug 10, 2003
1 parent 7615e75 commit dd6fdec
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 59 deletions.
19 changes: 19 additions & 0 deletions src/webapp/samples/imagereader/samples.xml
@@ -0,0 +1,19 @@
<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>
8 changes: 6 additions & 2 deletions src/webapp/samples/imagereader/sitemap.xmap
@@ -1,7 +1,7 @@
<?xml version="1.0"?>

<!--
CVS $Id: sitemap.xmap,v 1.1 2003/06/27 20:10:41 stefano Exp $
CVS $Id: sitemap.xmap,v 1.2 2003/08/10 11:42:47 reinhard Exp $
Image Reader Sample
-->
Expand All @@ -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-*">
Expand Down
17 changes: 17 additions & 0 deletions src/webapp/samples/paginator/samples.xml
@@ -0,0 +1,17 @@
<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>
9 changes: 7 additions & 2 deletions src/webapp/samples/paginator/sitemap.xmap
@@ -1,6 +1,6 @@
<?xml version="1.0"?>

<!-- CVS: $Id: sitemap.xmap,v 1.1 2003/06/27 20:10:42 stefano Exp $ -->
<!-- CVS: $Id: sitemap.xmap,v 1.2 2003/08/10 11:42:47 reinhard Exp $ -->

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
Expand All @@ -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="*(*)">
Expand Down
80 changes: 25 additions & 55 deletions src/webapp/samples/samples.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>

<!-- CVS $Id: samples.xml,v 1.21 2003/08/01 09:41:23 reinhard Exp $ -->
<!-- CVS $Id: samples.xml,v 1.22 2003/08/10 11:42:47 reinhard Exp $ -->

<samples name="Cocoon Samples" xmlns:xlink="http://www.w3.org/1999/xlink">

Expand Down Expand Up @@ -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>

<!--
Expand Down

0 comments on commit dd6fdec

Please sign in to comment.