shannon 2002/06/27 08:56:53
Added: src/scratchpad/webapp/mount/paginator README.txt
document.xml sitemap.xmap
Log:
New samples to accompany
new How-To. Consider these
a first draft. More work
may be needed.
Revision Changes Path
1.1 xml-cocoon2/src/scratchpad/webapp/mount/paginator/README.txt
Index: README.txt
===================================================================
To get started, read the How-To for this component:
http://localhost:8080/cocoon/howto/howto-paginator-transformer.html
For those who don't like to read docs:
Make sure you have a version 2.0.3 or greater of Cocoon. The PaginatorTransformer
component source code is located in the scratchpad area. Therefore, you need to use
the following command to build a deployable cocoon.war which includes the scratchpad
libraries.
./build.[ sh | bat ] -Dinclude.scratchpad.libs=yes webapp
During the build process, the necessary configuration details for the
PaginatorTransformer component are copied to cocoon.xconf of cocoon.war. This means
that you don't need to manually configure cocoon.xconf.
To get going, access:
http://localhost:8080/cocoon/mount/paginator/page(1)
Have fun!
1.1 xml-cocoon2/src/scratchpad/webapp/mount/paginator/document.xml
Index: document.xml
===================================================================
<?xml version="1.0"?>
<images>
<image/>
<image/>
<image/>
<image/>
<image/>
<image/>
<image/>
</images>
1.1 xml-cocoon2/src/scratchpad/webapp/mount/paginator/sitemap.xmap
Index: sitemap.xmap
===================================================================
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file"/>
<map:serializers default="html"/>
<map:transformers default="xslt">
<map:transformer
name="paginator"
src="org.apache.cocoon.transformation.pagination.Paginator"
logger="sitemap.transformer.paginator" />
</map:transformers>
<map:readers default="resource"/>
<map:matchers default="wildcard"/>
<map:selectors default="browser"/>
</map:components>
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="page(1)" />
</map:match>
<map:match pattern="page(*)">
<map:generate src="document.xml"/>
<map:transform src="pagesheets/images.xml" type="paginator">
<map:parameter name="page" value="{1}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:handle-errors>
<map:transform src="context://stylesheets/system/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<!-- end of file -->
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]