The Apache Software Foundation is proud to present... Version: 2.1.12

Using Sources

Orthogonal views: Content   Pretty content   Links

Back

Back - Back to the samples home page.

Note

Some of these samples require XSP to be present in order to work.

Static XML With Static XSL

All Static - This is the simpliest sample, similar to the "Hello World!".

Obtaining XSP Source

Plain XSP - Source is obtained from local file
This sitemap XSP - Source is obtained via cocoon:/source
Root sitemap XSP - Source is obtained via cocoon://sub/source
External XSP - Source is obtained via http://<serverName>[:<serverPort>][/<contextPath>]/samples/sources/xsp/source
Dynamic XSP - Source is generated dynamically and obtained as Cocoon source cocoon:/dynamic-source

Obtaining XSL Source

Plain XSL - XSL is obtained from local file
This sitemap XSL - XSL is obtained via cocoon:/xsl-source, processed by this sitemap directly.
Root sitemap XSL - XSL is obtained via cocoon://sub/xsl-source, processed by root sitemap.
External XSL - XSL is obtained via http://<serverName>[:<serverPort>][/<contextPath>]/samples/sources/xsl-source
Dynamic XSL - XSL is dynamically generated and obtained as Cocoon source cocoon:/xsl-dynamic-source.

Dynamic XSP With Dynamic XSL

All Dynamic - Combines last XSP sample with last XSL sample: XSP is obtained via Cocoon source cocoon:/dynamic-source, and processed by XSL obtained via Cocoon source cocoon:/xsl-dynamic-source.

Uploaded XML through Static XSL

Uploaded XML - Demonstrates use of upload:// pseudo-protocol.

ZIP Source

Simple ZIP source example - Read test.xml file from test.zip ZIP archive
OpenOffice - content.xml - Read content.xml file out of test.sxw OpenOffice document.