<sample name="HTML" href="hello.html">
This page shows how a simple XML page can be presented in HTML.
<sample name="XHTML" href="hello.xhtml">
This is the same page as above, but rendered in XHTML (which is the
well-formed XML version of HTML). Note that both the page and the
stylesheet used to transform it didn't change from the previous
example, Cocoon does everything for you by setting a different serializer.
<sample name="WML" href="hello.wml">
By changing the stylesheet, it's possible to render the same content
for consumption on different devices. Here, for example, it's rendered
in WML (Wireless Markup Language) which is the markup language used
in WAP-enabled agents (such as PDA or cell phones).
<sample name="CHTML" href="hello.chtml">
Or, as CHTML (Compact HTML), which is used by i-Mode compatible cell phones.
<sample name="SVG" href="hello.svg">
Given the power of XSLT and the fact that many presentation languages are
based on the XML syntax, it is possible to generate even vector graphics
from your content. Here is an example that renders to SVG (Scalable Vector
Graphics). (You need an SVG plugin, or an SVG-capable browser to see this.)
<sample name="SWF" href="hello.swf">
Flash is everywhere. In fact many people have the plugin installed.
Let Cocoon configure your flash movie. A little action script and you set.
See this sample how it works.
<sample name="Plain Text" href="hello.txt">
Sometimes you don't need to be very fancy, so here is a plain text
version of your content.
<sample name="VRML" href="hello.wrl">
But sometimes you need to be fancy to impress people, so here is a 3D
version of your content (you need a VRML plugin in your browser to visualize
<sample name="VoiceML" href="hello.vml">
Or sometimes you don't even have a display in front of you, so you want to
hear your content, so here is a VoiceML representation of your content (you
need a VoiceML-capable agent to hear this).
<sample name="Zip archive" href="hello.zip">
Or you might want your information nicely packaged as a zip file.