The Apache Software Foundation is proud to present...
version 2.0.4
Back
Back - Back to samples home page

Internationalization
Simple Internationalization - Sample for Internationalization.
XSP Internationalization - Sample for Internationalization in an XSP.

Dynamic Content
Javascript Generator - An example of the ScriptGenerator producing XML out of a Javascript program.
Python Generator - An example of the ScriptGenerator producing XML out of a Python program. ATTENTION: This example will not work unless you have put the Jython interpreter (jython.jar) from www.jython.org in the WEB-INF/lib directory of your Cocoon webapp context.
Velocity Generator - An example of the VelocityGenerator producing XML out of a Velocity Template.
Parameterised Redirect - An example of redirecting a client based on a request parameter.
Yahoo Screen Scrape - An example of HTML Generator scraping a part of the Yahoo main page.

XScript and SOAP
Simple Sample - An simple sample for XScript.
SOAP Stock Quote Example 1 - This page demonstrates the SOAP logicsheet for Cocoon. It accesses a SOAP service that provides stock quotes and displays the result.
SOAP Sample 2 - This example uses an inline XSLT stylesheet and an XScript transform instruction to extract the stock price.
SOAP Sample 3 - This is yet another example of the XScript and SOAP logicsheets. This sample is very similar with SOAP Sample 2, except that the stylesheet is defined in an external file.

Database Access
Simple SQL - Simple SQL example. You should make sure that you have a database and table according to the conf/sitemap.xmap and the docs/samples/sql/sql-page.xml.sql definitions.
ESQL - Simple example of the ESQL logicsheet.

Aggregation Sample
Slashdot - Live XML Feed from Slashdot.
Moreover.com - Live XML Developer News Feed from moreover.com.
XMLHack.com - Live Channel Feed from XMLHack.com.
Aggregation - Single Web Page with News from all sources above aggregated by the sitemap.
Aggregation - Single Web Page with News from all sources above aggregated by include transformer.

Copyright © 1999-2002 The Apache Software Foundation.
All rights reserved.