tony 2003/12/15 12:31:47
Added: src/blocks/scratchpad/samples/othello home.xhtml main.xhtml
sitemap.xmap
src/blocks/scratchpad/samples/othello/blocks blocks.xml
src/blocks/scratchpad/samples/othello/c_el Cocoon.xml
CocoonPeople.xml ExampleCustom.xml ExampleXHTML.xml
Home.xml I18N-Content.xml Installation.xml
Installation.xml.bak Livesites.xml Othello.xml
OthelloDownload.xml OthelloPeople.xml
QuickReference.xml Steps.xml
src/blocks/scratchpad/samples/othello/c_en Cocoon.xml
CocoonPeople.xml ExampleCustom.xml ExampleXHTML.xml
Home.xml I18N-Content.xml Installation.xml
Livesites.xml Othello.xml OthelloDownload.xml
OthelloPeople.xml QuickReference.xml Steps.xml
src/blocks/scratchpad/samples/othello/osml/core core.xsl
layout.xsl
src/blocks/scratchpad/samples/othello/osml/plugins
custom.xsl custombutton.xsl list.xsl
src/blocks/scratchpad/samples/othello/static/themes main.css
src/blocks/scratchpad/samples/othello/static/themes/images
home_banner_tile.gif home_bottom_tile.gif
home_cocoon_logo.gif home_left_tile.gif
home_menu_sep.gif home_menu_tile.gif
home_othello_logo.gif home_relax.gif
src/blocks/scratchpad/samples/othello/translations
messages.xml messages_el.xml messages_en.xml
Log:
othello sample files
Revision Changes Path
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/home.xhtml
Index: home.xhtml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<head>
<meta http-equiv="Content-Type" content="text/html"
charset="UTF-8"/>
<link type="text/css" rel="STYLESHEET"
href="static/themes/main.css" />
<title>osmosis othello | an apache cocoone based project</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="119"
background="static/themes/images/home_banner_tile.gif">
<table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td width="220">
<div
align="center">
<img
src="static/themes/images/home_othello_logo.gif" width="144" height="97" />
</div>
</td>
<td />
<td>
<div
align="right">
<img
src="static/themes/images/home_cocoon_logo.gif" width="133" height="119" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="29"
background="static/themes/images/home_menu_tile.gif">
<osm:block-copy select="menu" />
</td>
</tr>
</table>
<table width="781" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td rowspan="2" width="221"
background="static/themes/images/home_left_tile.gif">
<osm:block-copy select="taxmachine" />
</td>
<td height="252">
<img
src="static/themes/images/home_relax.gif" width="559" height="252" />
</td>
</tr>
<tr>
<td>
<table width="100%">
<tr valign="top">
<td width="33%">
<osm:block-copy
select="othello" />
</td>
<td width="33%">
<osm:block-copy
select="documentation" />
</td>
<td width="33%">
<osm:block-copy
select="cocoon" />
</td>
</tr>
</table>
<osm:block-copy select="changes" />
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td
background="static/themes/images/home_bottom_tile.gif">
<osm:block-copy select="credits" />
</td>
</tr>
</table>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/main.xhtml
Index: main.xhtml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
<link type="text/css" rel="STYLESHEET"
href="static/themes/main.css" />
<title>osmosis othello | an apache cocoone based project</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="119"
background="static/themes/images/home_banner_tile.gif">
<table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td width="220">
<div
align="center">
<img
src="static/themes/images/home_othello_logo.gif" width="144" height="97" />
</div>
</td>
<td />
<td>
<div
align="right">
<img
src="static/themes/images/home_cocoon_logo.gif" width="133" height="119" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="29"
background="static/themes/images/home_menu_tile.gif">
<osm:block-copy select="menu" />
</td>
</tr>
</table>
<table width="781" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="221"
background="static/themes/images/home_left_tile.gif">
<osm:block-copy select="othello"/>
<hr/>
<osm:block-copy select="documentation"/>
<hr/>
<osm:block-copy select="examples"/>
<hr/>
<osm:block-copy select="cocoon"/>
<hr/>
<osm:block-copy select="multilanguage"/>
</td>
<td valign="top">
<img src="static/themes/images/home_relax.gif"
width="559" height="252"/>
<osm:content-copy select="content"/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td
background="static/themes/images/home_bottom_tile.gif"><osm:block-copy
select="credits"/></td>
</tr>
</table>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/sitemap.xmap
Index: sitemap.xmap
===================================================================
<?xml version="1.0"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components
================================ -->
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt">
<!-- Configure i18n transformer -->
<map:transformer name="i18n"
logger="sitemap.transformer.i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<!-- This parameter sets the base name for
dictionary files -->
<catalogue-name>messages</catalogue-name>
<!-- This parameter sets the path where
dictionaries are placed-->
<catalogue-location>translations</catalogue-location>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
<map:readers default="resource"/>
<map:serializers default="html">
<map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
<!--
<encoding>utf-8</encoding> -->
</map:serializer>
<map:serializer name="xml" mime-type="text/xml"
src="org.apache.cocoon.serialization.XMLSerializer">
<!--
<encoding>utf-8</encoding>-->
</map:serializer>
</map:serializers>
<map:selectors default="browser"/>
<!-- =========================== Actions
================================= -->
<map:actions>
<!-- LocaleAction is used to set/get current users
locale. See Javadocs for details. -->
<map:action name="locale"
logger="sitemap.action.locale" src="org.apache.cocoon.acting.LocaleAction">
<!-- Creates a new session if needed. Used with
'store-in-session' param -->
<create-session>true</create-session>
<!-- Stores locale information in session. A
session should be created before,
otherwise 'create-session' should be true.
-->
<store-in-session>true</store-in-session>
<!-- Stores locale information in request
attributes -->
<store-in-request>true</store-in-request>
<!-- Stores locale information in a client
cookie -->
<store-in-cookie>false</store-in-cookie>
<!-- Uncomment as needed to override defaults:
<locale-attribute>locale</locale-attribute>
<language-attribute>language</language-attribute>
<country-attribute>country</country-attribute>
<variant-attribute>variant</variant-attribute>
-->
</map:action>
</map:actions>
</map:components>
<!-- =========================== Resources
=============================== -->
<map:resources>
<!-- This resource is used to create a composite layout page -->
<map:resource name="layoutHome">
<map:aggregate element="layout">
<map:part src="cocoon:/layout/home.xhtml"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:resource>
<map:resource name="layoutMain">
<map:aggregate element="layout">
<map:part src="cocoon:/layout/main.xhtml"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:resource>
<!-- builders are used to create a composition of layout and
content-->
<map:resource name="homebuilder">
<map:aggregate element="site">
<map:part src="cocoon:/get/HomeLayout"/>
<map:part src="cocoon:/blocks/blocks.xml"/>
<map:part src="cocoon:/xml/Home.xml"
label="content"/>
</map:aggregate>
<!-- copy xml element to the right position (elements
re-arraignment-->
<map:transform src="osml/core/layout.xsl"/>
<!-- start transformations -->
<map:transform src="osml/core/core.xsl"/>
<map:serialize type="xhtml"/>
</map:resource>
<map:resource name="sitebuilder">
<map:aggregate element="site">
<map:part src="cocoon:/get/MainLayout"/>
<map:part src="cocoon:/blocks/blocks.xml"/>
<map:part src="cocoon:/xml/{../1}.xml"
label="content"/>
</map:aggregate>
<!-- copy xml element to the right position (elements
re-arraignment-->
<map:transform src="osml/core/layout.xsl"/>
<!-- start transformations -->
<map:transform src="osml/core/core.xsl"/>
<map:serialize type="xhtml"/>
</map:resource>
</map:resources>
<!-- =========================== Pipelines
================================= -->
<map:pipelines>
<!-- use case pipeline - URI request handling -->
<map:pipeline>
<map:act type="locale">
<map:match pattern="">
<map:redirect-to uri="Home?locale=en"/>
</map:match>
<map:match pattern="Home*">
<map:call resource="homebuilder"/>
</map:match>
<map:match pattern="*">
<map:call resource="sitebuilder"/>
</map:match>
</map:act>
</map:pipeline>
<!-- Content processing [ internall call from resources ]-->
<map:pipeline>
<map:act type="locale">
<!-- GET content from resources -->
<map:match pattern="get/HomeLayout">
<map:call resource="layoutHome"/>
</map:match>
<map:match pattern="get/MainLayout">
<map:call resource="layoutMain"/>
</map:match>
<!-- xml content with file based multilanguage
support -->
<map:match pattern="xml/*.xml">
<map:generate
src="c_{../locale}/{1}.xml"/>
<map:transform type="i18n">
<map:parameter name="locale"
value="{../locale}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="blocks/*.xml">
<map:generate src="blocks/{1}.xml"/>
<map:transform type="i18n">
<map:parameter name="locale"
value="{../locale}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<!-- xml main site files -->
<map:match pattern="layout/*.xhtml">
<map:generate src="{1}.xhtml"/>
<map:serialize type="xml"/>
</map:match>
</map:act>
</map:pipeline>
<!-- === Static content === -->
<map:pipeline>
<map:match pattern="javascript/*.js">
<map:read src="javascript/{1}.js"/>
</map:match>
<map:match pattern="static/themes/*.css">
<map:read src="static/themes/{1}.css"/>
</map:match>
<map:match pattern="static/images/*.*">
<map:read src="static/images/{1}.{2}"
mime-type="image/gif"/>
</map:match>
<map:match pattern="static/themes/images/*.*">
<map:read src="static/themes/images/{1}.{2}"
mime-type="image/gif"/>
</map:match>
<map:match pattern="static/images/**/*.*">
<map:read src="static/images/{1}/{2}.{3}"
mime-type="image/gif"/>
</map:match>
<map:match pattern="static/themes/images/**/*.*">
<map:read
src="static/themes/images/{1}/{2}.{3}" mime-type="image/gif"/>
</map:match>
<map:match pattern="static/download/*.*">
<map:read src="static/download/{1}.{2}"
mime-type="application/zip"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/blocks/blocks.xml
Index: blocks.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<osm:blocks xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<osm:block blockID="cocoon">
<osm:xhtml>
<center>
<table width="180">
<tr>
<td colspan="2">Apache Cocoon
Project</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a href="Cocoon">Cocoon
Project</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="CocoonPeople">Cocoon People</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="http://cocoon.apache.org">Cocoon Web Site</a>
</td>
</tr>
</table>
</center>
</osm:xhtml>
</osm:block>
<osm:block blockID="othello">
<osm:xhtml>
<center>
<table width="180">
<tr>
<td colspan="2">Othello </td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="Othello">Othello Project</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="OthelloPeople">Othello People</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="Livesites">Livesites</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="http://othello.osmosis.gr">Othello Web Site</a>
</td>
</tr>
</table>
</center>
</osm:xhtml>
</osm:block>
<osm:block blockID="documentation">
<osm:xhtml>
<center>
<table width="180">
<tr>
<td colspan="2">
<i18n:text
i18n:key="docs"/>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="Installation">Installation</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="QuickReference">Quick Reference</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a href="Steps">A site
in few steps</a>
</td>
</tr>
</table>
</center>
</osm:xhtml>
</osm:block>
<osm:block blockID="examples">
<osm:xhtml>
<center>
<table width="180">
<tr>
<td colspan="2">
<i18n:text
i18n:key="examples"/>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="ExampleXHTML">XHTML</a>
</td>
</tr>
<tr>
<td width="10">-</td>
<td>
<a
href="ExampleCustom">Custom</a>
</td>
</tr>
</table>
</center>
</osm:xhtml>
</osm:block>
<osm:block blockID="changes">
<osm:xhtml>
<p class="title">Changes</p>
<p class="paratitle">2003.10.25</p>
<ul>
<li>core.xsl clean up</li>
<li>XHTML example added</li>
<li>custom element example added</li>
</ul>
</osm:xhtml>
<osm:xhtml/>
</osm:block>
<osm:block blockID="menu">
<osm:xhtml>
<table width="200" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td>
<a href="Home">home</a>
</td>
<td>
<img
src="static/themes/images/home_menu_sep.gif"/>
</td>
<td>
<a href="?locale=en">english</a>
</td>
<td>
<img
src="static/themes/images/home_menu_sep.gif"/>
</td>
<td>
<a href="?locale=el">greek</a>
</td>
<td>
<img
src="static/themes/images/home_menu_sep.gif"/>
</td>
</tr>
</table>
</osm:xhtml>
</osm:block>
<osm:block blockID="credits">
<osm:xhtml>
<div align="right"
style="color:white;padding:3px;">Osmosis networks and consulting | greece
|</div>
</osm:xhtml>
</osm:block>
</osm:blocks>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Cocoon.xml
Index: Cocoon.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Cocoon ένα έργο του Apache Software
Fountation</p>
<p class="paratitle">Apache Cocoon</p>
<p>Apache Cocoon is a web development framework built around
the concepts of separation of concerns and component-based web development.</p>
<p>Cocoon implements these concepts around the notion of
'component pipelines', each component on the pipeline specializing on a
particular operation. This makes it possible to use a Lego(tm)-like approach in
building web solutions, hooking together components into pipelines without any
required programming.</p>
<p>Cocoon is "web glue for your web application development
needs". It is a glue that keeps concerns separate and allows parallel evolution
of all aspects of a web application, improving development pace and reducing
the chance of conflicts.</p>
<p class="paratitle">The Apache Cocoon Project</p>
<p>The Apache Cocoon Project is the open source community
project developing Apache Cocoon and Cocoon-based application frameworks. With
strong foundations in XML-based server-side web application frameworks, the
Apache Cocoon Project consists of a group of people that share common values on
collaboration-intensive and community-based quality open source development.
The Apache Cocoon Project is proud to share these values with its parent
organization: The Apache Software Foundation.</p>
<p>The Apache Cocoon project currently consists of:</p>
<ul>
<li>Apache Cocoon itself.</li>
<li>xQueries</li>
<li>Lenya, an incubating website content management
framework based on Cocoon. </li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/CocoonPeople.xml
Index: CocoonPeople.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Οι άνθρωποι του Apache Cocoon
</p>
<p id="" class="" width="" height="">The Apache Cocoon Project
Management Committee oversees the entire project, and consists of all willing
committers on Cocoon and its subprojects. Its main concerns are community
health, fostering the Apache Cocoon brand, and making sure all legal
requirements are met when people contribute.</p>
<p id="" class="" width="" height="">The current Cocoon PMC
members are:</p>
<osm:list>
<osm:listItem>Nicola Ken Barozzi</osm:listItem>
<osm:listItem>Marcus Crafter </osm:listItem>
<osm:listItem>David Crossley </osm:listItem>
<osm:listItem>Torsten Curdt </osm:listItem>
<osm:listItem>Bertrand Delacretaz </osm:listItem>
<osm:listItem>Bruno Dumon </osm:listItem>
<osm:listItem>Vadim Gritsenko</osm:listItem>
<osm:listItem>Christian Haul </osm:listItem>
<osm:listItem>Joerg Heinicke </osm:listItem>
<osm:listItem>Geoff Howard </osm:listItem>
<osm:listItem>Bernhard Huber </osm:listItem>
<osm:listItem>Ivelin Ivanov </osm:listItem>
<osm:listItem>Matthew Langham </osm:listItem>
<osm:listItem>Berin Loritsch </osm:listItem>
<osm:listItem>Stefano Mazzocchi </osm:listItem>
<osm:listItem>Michael Melhem </osm:listItem>
<osm:listItem>John Morrison </osm:listItem>
<osm:listItem>Steven Noels </osm:listItem>
<osm:listItem>Andrew C. Oliver </osm:listItem>
<osm:listItem>Giacomo Pati </osm:listItem>
<osm:listItem>Konstantin Piroumian </osm:listItem>
<osm:listItem>Ovidiu Predescu </osm:listItem>
<osm:listItem>Jeremy Quinn </osm:listItem>
<osm:listItem>Gianugo Rabellino </osm:listItem>
<osm:listItem>Peter Royal </osm:listItem>
<osm:listItem>Jeff Turner </osm:listItem>
<osm:listItem>Sylvain Wallez </osm:listItem>
<osm:listItem>Michael Wechner (for Lenya)
</osm:listItem>
</osm:list>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/ExampleCustom.xml
Index: ExampleCustom.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>Custom Example</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">
<osm:text>Παράδειγμα Custom</osm:text>
</p>
<p class="paratitle">Custom elements</p>
<p>It is possible to create any custom element. This element
have to belong to osm: namespace</p>
<p class="paratitle">For example</p>
<p>We want to create an element that display an alert msg on
click.</p>
<p>The element:</p>
<pre><![CDATA[<button
caption="click here"
msg="this is an alert message!!!"/> ]]></pre>
<p>The xslt transformation saved in custombutton.xsl
[osml/plugins/custombuttom.xsl]</p>
<pre><![CDATA[
<xsl:template match="osm:custombutton">
<input type="button">
<xsl:attribute name="value"><xsl:value-of
select="@caption"/></xsl:attribute>
<xsl:attribute name="onclick">alert('<xsl:value-of
select="@msg"/>')</xsl:attribute>
</input>
</xsl:template>
]]></pre>
<p>and our button:</p>
<osm:custombutton caption="click here" msg="this is an alert
message!!!"/>
<p>to include these transformation instructions to othello we
have to modify core.xsl</p>
<pre><![CDATA[
...
<xsl:include href="../plugins/custombutton.xsl"/>
...
]]></pre>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/ExampleXHTML.xml
Index: ExampleXHTML.xml
===================================================================
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>XHTML Example</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Παράδειγμα XHTML</p>
<p>This page is created using simple XHTML markup.</p>
<p class="paratitle">Table</p>
<table>
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr>
<td>d</td>
<td>e</td>
<td>f</td>
</tr>
</table>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Home.xml
Index: Home.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content"/>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/I18N-Content.xml
Index: I18N-Content.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<osm:container xmlns:osm="http://osmosis.gr/osml/1.0" contentID="content">
<osm:pageTitle>
<osm:text>i18n Content</osm:text>
</osm:pageTitle>
<osm:para id="" class="" width="" height="" align="left" valign="top">
<osm:paratitle id="" class="title" width="" height=""
align="left" valign="top">
<osm:text>i18n Content</osm:text>
</osm:paratitle>
</osm:para>
<osm:para id="" class="" width="" height="" align="left" valign="top">
<osm:parabody id="" class="" width="" height="">
<osm:text>This page is transated using different
content files </osm:text>
</osm:parabody>
<osm:parabody id="" class="" width="" height="">
<osm:text>c_en: english content</osm:text>
</osm:parabody>
<osm:parabody id="" class="" width="" height="">
<osm:text>c_el: greek content</osm:text>
</osm:parabody>
</osm:para>
</osm:container>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Installation.xml
Index: Installation.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>install</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Εγκατάσταση</p>
<p class="notes">This version of othello is designed for Cocoon
2.1 and is tested in both unix and winXP</p>
<p>How to install othello.</p>
<ul>
<li>dowload the zip file</li>
<li>extract and put [othello.gr] directory somewhere in
your disk</li>
<li>mount othello sitemap.xmap in cocoon main
sitemap.xmap
<pre><![CDATA[
for example if the path to your othello.gr directory:
c:\server\xwww\othello.gr\
then
<map:pipeline>
<map:match pattern="*.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/{1}.gr/sitemap.xmap"
uri-prefix="{1}.gr"/>
</map:match>
</map:pipeline>
or
<map:pipeline>
<map:match pattern="othello.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/othello.gr/sitemap.xmap"
uri-prefix="othello.gr"/>
</map:match>
</map:pipeline>
]]></pre>
</li>
<li>test othello at:
[http://localhost:8080/cocoon/othello.gr/]
</li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Installation.xml.bak
Index: Installation.xml.bak
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>install</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Εγκατάσταση</p>
<p class="notes">This version of othello is designed for Cocoon
2.1 and is tested in both unix and winXP</p>
<p>How to install othello.</p>
<ul>
<li>dowload the zip file</li>
<li>extract and put [othello.gr] directory somewhere in
your disk</li>
<li>mount othello sitemap.xmap in cocoon main
sitemap.xmap
<pre><![CDATA[
for example if the path to your othello.gr directory:
c:\server\xwww\othello.gr\
then
<map:pipeline>
<map:match pattern="*.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/{1}.gr/conf/sitemap.xmap"
uri-prefix="{1}.gr"/>
</map:match>
</map:pipeline>
or
<map:pipeline>
<map:match pattern="othello.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/othello.gr/conf/sitemap.xmap"
uri-prefix="othello.gr"/>
</map:match>
</map:pipeline>
]]></pre>
</li>
<li>test othello at:
[http://localhost:8080/cocoon/othello.gr/]
</li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Livesites.xml
Index: Livesites.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello live sites</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Δικτυακοί τόποι</p>
<p>Live sites based on Osmosis Othello.</p>
<osm:list>
<osm:listItem href="http://www.bonsaiflo.gr">bonsai
flowers</osm:listItem>
<osm:listItem href="http://www.rodopi-sa.gr">Rodopi
SA</osm:listItem>
<osm:listItem href="http://www.megabag.gr">Megabag
SA</osm:listItem>
<osm:listItem
href="http://www.forestland.gr">Forestland adventure travel</osm:listItem>
<osm:listItem href="http://www.porovistonis.gr">Hotel
Porto Vistonis</osm:listItem>
<osm:listItem href="http://www.g-arseniou.gr">Men's
Wear Arseniou Grigoris</osm:listItem>
<osm:listItem href="http://www.kottakis.gr">Traditional
railing manufactory</osm:listItem>
</osm:list>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Othello.xml
Index: Othello.xml
===================================================================
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Othello</p>
<p class="paratitle">Ο Στόχος</p>
<p>The idea: a project that can easy build small to medium web
sites usign apache cocoon.</p>
<p>The project must be template-based and able to be reused
leaving the sitemap.xmap untouched.</p>
<p>sitemap.xmap must be a "black box" that implements as many
cocoon capabilities as possible.</p>
<p class="paratitle">Current state</p>
<p>ALPHA</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/OthelloDownload.xml
Index: OthelloDownload.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<osm:container xmlns:osm="http://osmosis.gr/osml/1.0" contentID="content">
<osm:pageTitle>
<osm:text>othello download</osm:text>
</osm:pageTitle>
<p class="title">Othello Download</p>
<p class="paratitle">Version</p>
<p>Othello v1.0 beta (work in progress)</p>
<p notes="">last update: okt 25, 2003</p>
<p class="paratitle">Download Now<p>
<a
href="static/download/othello.gr.zip">othello.gr.zip</a>
</p>
</p>
</osm:container>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/OthelloPeople.xml
Index: OthelloPeople.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Οι άνθρωποι του Othello
</p>
<p>Othello developers<ul>
<li>Stavros Kounis</li>
<li>Dimitris Adamos</li>
</ul>
</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/QuickReference.xml
Index: QuickReference.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://osmosis.gr/osml/1.0
C:\OSML\schema\main.xsd">
<head>
<osm:pageTitle>
<osm:text>quick reference</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Γρήγορη αναφορά</p>
<p class="paratitle">Templates - Layout</p>
<p>home.xhtml | main.xhtml</p>
<p>XHTML templates for home (welcome) page [home.xhtml] and
content pages [main.xhtml]. These files are editable with any xhtml editor
(Dreamweaver MX, XML Spy ...)</p>
<p>Into these files content is placed using "block-copy" and
"content-copy" elements</p>
<p><![CDATA[<osm:block-copy select="blockID"/>]]></p>
<p><![CDATA[<osm:content-copy select="content"/>]]></p>
<p class="notes"><![CDATA[i18n and osm namespaces must be
declared.]]></p>
<p>
<pre><![CDATA[
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">]]></pre>
</p>
<p class="paratitle">Content</p>
<p>Content is coming form blocks or content files</p>
<p>in /blocks/blocks.xml are block that can be placed in any
template file. There can be as many blocks as we want in any place in
templates.</p>
<p>in /c_en (for english) /c_el (for greek) /c_mylanguage, are
the content files. Content that will be diplayed is selected from URL.</p>
<p class="paratitle">i18n</p>
<p>Two different ways to have multilanguage content.</p>
<ul>
<li>Using dictionaries and i18n transformation for
small phrases (or words) translation.</li>
<li>Different content files into /c_{locale} directory
for each language.</li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_el/Steps.xml
Index: Steps.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">A site in few steps</p>
<p class="paratitle">Mini Howto</p>
<p>how to create a web site in few steps using cocoon and
othelo.</p>
<p class="notes">work in progress</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Cocoon.xml
Index: Cocoon.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">The Apache Cocoon Project</p>
<p class="paratitle">Apache Cocoon</p>
<p>Apache Cocoon is a web development framework built around
the concepts of separation of concerns and component-based web development.</p>
<p>Cocoon implements these concepts around the notion of
'component pipelines', each component on the pipeline specializing on a
particular operation. This makes it possible to use a Lego(tm)-like approach in
building web solutions, hooking together components into pipelines without any
required programming.</p>
<p>Cocoon is "web glue for your web application development
needs". It is a glue that keeps concerns separate and allows parallel evolution
of all aspects of a web application, improving development pace and reducing
the chance of conflicts.</p>
<p class="paratitle">The Apache Cocoon Project</p>
<p>The Apache Cocoon Project is the open source community
project developing Apache Cocoon and Cocoon-based application frameworks. With
strong foundations in XML-based server-side web application frameworks, the
Apache Cocoon Project consists of a group of people that share common values on
collaboration-intensive and community-based quality open source development.
The Apache Cocoon Project is proud to share these values with its parent
organization: The Apache Software Foundation.</p>
<p>The Apache Cocoon project currently consists of:</p>
<ul>
<li>Apache Cocoon itself.</li>
<li>xQueries</li>
<li>Lenya, an incubating website content management
framework based on Cocoon. </li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/CocoonPeople.xml
Index: CocoonPeople.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">The Apache Cocoon PMC
</p>
<p id="" class="" width="" height="">The Apache Cocoon Project
Management Committee oversees the entire project, and consists of all willing
committers on Cocoon and its subprojects. Its main concerns are community
health, fostering the Apache Cocoon brand, and making sure all legal
requirements are met when people contribute.</p>
<p id="" class="" width="" height="">The current Cocoon PMC
members are:</p>
<osm:list>
<osm:listItem>Nicola Ken Barozzi</osm:listItem>
<osm:listItem>Marcus Crafter </osm:listItem>
<osm:listItem>David Crossley </osm:listItem>
<osm:listItem>Torsten Curdt </osm:listItem>
<osm:listItem>Bertrand Delacretaz </osm:listItem>
<osm:listItem>Bruno Dumon </osm:listItem>
<osm:listItem>Vadim Gritsenko</osm:listItem>
<osm:listItem>Christian Haul </osm:listItem>
<osm:listItem>Joerg Heinicke </osm:listItem>
<osm:listItem>Geoff Howard </osm:listItem>
<osm:listItem>Bernhard Huber </osm:listItem>
<osm:listItem>Ivelin Ivanov </osm:listItem>
<osm:listItem>Matthew Langham </osm:listItem>
<osm:listItem>Berin Loritsch </osm:listItem>
<osm:listItem>Stefano Mazzocchi </osm:listItem>
<osm:listItem>Michael Melhem </osm:listItem>
<osm:listItem>John Morrison </osm:listItem>
<osm:listItem>Steven Noels </osm:listItem>
<osm:listItem>Andrew C. Oliver </osm:listItem>
<osm:listItem>Giacomo Pati </osm:listItem>
<osm:listItem>Konstantin Piroumian </osm:listItem>
<osm:listItem>Ovidiu Predescu </osm:listItem>
<osm:listItem>Jeremy Quinn </osm:listItem>
<osm:listItem>Gianugo Rabellino </osm:listItem>
<osm:listItem>Peter Royal </osm:listItem>
<osm:listItem>Jeff Turner </osm:listItem>
<osm:listItem>Sylvain Wallez </osm:listItem>
<osm:listItem>Michael Wechner (for Lenya)
</osm:listItem>
</osm:list>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/ExampleCustom.xml
Index: ExampleCustom.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>Custom Example</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">
<osm:text>Custom Example</osm:text>
</p>
<p class="paratitle">Custom elements</p>
<p>It is possible to create any custom element. This element
have to belong to osm: namespace</p>
<p class="paratitle">For example</p>
<p>We want to create an element that display an alert msg on
click.</p>
<p>The element:</p>
<pre><![CDATA[<button
caption="click here"
msg="this is an alert message!!!"/> ]]></pre>
<p>The xslt transformation saved in custombutton.xsl
[osml/plugins/custombuttom.xsl]</p>
<pre><![CDATA[
<xsl:template match="osm:custombutton">
<input type="button">
<xsl:attribute name="value"><xsl:value-of
select="@caption"/></xsl:attribute>
<xsl:attribute name="onclick">alert('<xsl:value-of
select="@msg"/>')</xsl:attribute>
</input>
</xsl:template>
]]></pre>
<p>and our button:</p>
<osm:custombutton caption="click here" msg="this is an alert
message!!!"/>
<p>to include these transformation instructions to othello we
have to modify core.xsl</p>
<pre><![CDATA[
...
<xsl:include href="../plugins/custombutton.xsl"/>
...
]]></pre>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/ExampleXHTML.xml
Index: ExampleXHTML.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>XHTML Example</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">XHTML Example</p>
<p>This page is created using simple XHTML markup.</p>
<p class="paratitle">Table</p>
<table>
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr>
<td>d</td>
<td>e</td>
<td>f</td>
</tr>
</table>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Home.xml
Index: Home.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>apache cocoon</osm:text>
</osm:pageTitle>
</head>
<body contentID="content"/>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/I18N-Content.xml
Index: I18N-Content.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<osm:container xmlns:osm="http://osmosis.gr/osml/1.0" contentID="content">
<osm:pageTitle>
<osm:text>i18n Content</osm:text>
</osm:pageTitle>
<osm:para id="" class="" width="" height="" align="left" valign="top">
<osm:paratitle id="" class="title" width="" height=""
align="left" valign="top">
<osm:text>i18n Content</osm:text>
</osm:paratitle>
</osm:para>
<osm:para id="" class="" width="" height="" align="left" valign="top">
<osm:parabody id="" class="" width="" height="">
<osm:text>This page is transated using different
content files </osm:text>
</osm:parabody>
<osm:parabody id="" class="" width="" height="">
<osm:text>c_en: english content</osm:text>
</osm:parabody>
<osm:parabody id="" class="" width="" height="">
<osm:text>c_el: greek content</osm:text>
</osm:parabody>
</osm:para>
</osm:container>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Installation.xml
Index: Installation.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>install</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Installation</p>
<p class="notes">This version of othello is designed for Cocoon
2.1 and is tested in both unix and winXP</p>
<p>How to install othello.</p>
<ul>
<li>dowload the zip file</li>
<li>extract and put [othello.gr] directory somewhere in
your disk</li>
<li>mount othello sitemap.xmap in cocoon main
sitemap.xmap
<pre><![CDATA[
for example if the path to your othello.gr directory:
c:\server\xwww\othello.gr\
then
<map:pipeline>
<map:match pattern="*.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/{1}.gr/sitemap.xmap"
uri-prefix="{1}.gr"/>
</map:match>
</map:pipeline>
or
<map:pipeline>
<map:match pattern="othello.gr/**">
<map:mount check-reload="yes"
src="file://c:/Server/xwww/othello.gr/sitemap.xmap"
uri-prefix="othello.gr"/>
</map:match>
</map:pipeline>
]]></pre>
</li>
<li>test othello at:
[http://localhost:8080/cocoon/othello.gr/]
</li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Livesites.xml
Index: Livesites.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello live sites</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Livesites</p>
<p>Live sites based on Osmosis Othello.</p>
<osm:list>
<osm:listItem href="http://www.bonsaiflo.gr">bonsai
flowers</osm:listItem>
<osm:listItem href="http://www.rodopi-sa.gr">Rodopi
SA</osm:listItem>
<osm:listItem href="http://www.megabag.gr">Megabag
SA</osm:listItem>
<osm:listItem
href="http://www.forestland.gr">Forestland adventure travel</osm:listItem>
<osm:listItem href="http://www.porovistonis.gr">Hotel
Porto Vistonis</osm:listItem>
<osm:listItem href="http://www.g-arseniou.gr">Men's
Wear Arseniou Grigoris</osm:listItem>
<osm:listItem href="http://www.kottakis.gr">Traditional
railing manufactory</osm:listItem>
</osm:list>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Othello.xml
Index: Othello.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Othello</p>
<p class="paratitle">Objective</p>
<p>The idea: a project that can easy build small to medium web
sites usign apache cocoon.</p>
<p>The project must be template-based and able to be reused
leaving the sitemap.xmap untouched.</p>
<p>sitemap.xmap must be a "black box" that implements as many
cocoon capabilities as possible.</p>
<p class="paratitle">Current state</p>
<p>ALPHA</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/OthelloDownload.xml
Index: OthelloDownload.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<osm:container xmlns:osm="http://osmosis.gr/osml/1.0" contentID="content">
<osm:pageTitle>
<osm:text>othello download</osm:text>
</osm:pageTitle>
<p class="title">Othello Download</p>
<p class="paratitle">Version</p>
<p>Othello v1.0 beta (work in progress)</p>
<p notes="">last update: okt 25, 2003</p>
<p class="paratitle">Download Now<p>
<a
href="static/download/othello.gr.zip">othello.gr.zip</a>
</p>
</p>
</osm:container>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/OthelloPeople.xml
Index: OthelloPeople.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Othello People
</p>
<p>Othello developers<ul>
<li>Stavros Kounis</li>
<li>Dimitris Adamos</li>
</ul>
</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/QuickReference.xml
Index: QuickReference.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://osmosis.gr/osml/1.0
C:\OSML\schema\main.xsd">
<head>
<osm:pageTitle>
<osm:text>quick reference</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">Quick reference</p>
<p class="paratitle">Templates - Layout</p>
<p>home.xhtml | main.xhtml</p>
<p>XHTML templates for home (welcome) page [home.xhtml] and
content pages [main.xhtml]. These files are editable with any xhtml editor
(Dreamweaver MX, XML Spy ...)</p>
<p>Into these files content is placed using "block-copy" and
"content-copy" elements</p>
<p><![CDATA[<osm:block-copy select="blockID"/>]]></p>
<p><![CDATA[<osm:content-copy select="content"/>]]></p>
<p class="notes"><![CDATA[i18n and osm namespaces must be
declared.]]></p>
<p>
<pre><![CDATA[
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">]]></pre>
</p>
<p class="paratitle">Content</p>
<p>Content is coming form blocks or content files</p>
<p>in /blocks/blocks.xml are block that can be placed in any
template file. There can be as many blocks as we want in any place in
templates.</p>
<p>in /c_en (for english) /c_el (for greek) /c_mylanguage, are
the content files. Content that will be diplayed is selected from URL.</p>
<p class="paratitle">i18n</p>
<p>Two different ways to have multilanguage content.</p>
<ul>
<li>Using dictionaries and i18n transformation for
small phrases (or words) translation.</li>
<li>Different content files into /c_{locale} directory
for each language.</li>
</ul>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/c_en/Steps.xml
Index: Steps.xml
===================================================================
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Stavros
Kounis (Osmosis) -->
<html xmlns:osm="http://osmosis.gr/osml/1.0">
<head>
<osm:pageTitle>
<osm:text>othello</osm:text>
</osm:pageTitle>
</head>
<body contentID="content">
<p class="title">A site in few steps</p>
<p class="paratitle">Mini Howto</p>
<p>how to create a web site in few steps using cocoon and
othelo.</p>
<p class="notes">work in progress</p>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/osml/core/core.xsl
Index: core.xsl
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<?xml-stylesheet type="text/css" href="main.css"?>
<!-- edited with XML Spy v4.1 U (http://www.xmlspy.com) by . (.) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:osm="http://osmosis.gr/osml/1.0">
<xsl:output method="html" version="1.0" encoding="utf-8" indent="yes"
omit-xml-declaration="no"/>
<!-- if you create your custom xml - xsl element add here refernce to
your xsl -->
<xsl:include href="../plugins/list.xsl"/>
<xsl:include href="../plugins/custombutton.xsl"/>
<xsl:include href="../plugins/custom.xsl"/>
<!-- i think that we dont need (for the momenf special tag to include xhtml
code
everything else, that dont belong in any specific name space is xhtml
-->
<xsl:template match="osm:site">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="osm:xhtml">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="osm:block">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="osm:site">
<xsl:apply-templates/>
</xsl:template>
<!-- in case a osm:pageTitle element exist don't try to transform it -->
<xsl:template match="osm:pageTitle">
</xsl:template>
<xsl:template match="node()|@*" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/osml/core/layout.xsl
Index: layout.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:osm="http://osmosis.gr/osml/1.0">
<xsl:output method="xml"/>
<xsl:template match="/site">
<!--
<osm:page>
<xsl:apply-templates select="osm:page" />
</osm:page>
-->
<osm:site>
<xsl:apply-templates select="layout"/>
</osm:site>
</xsl:template>
<xsl:template match="layout">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="osm:page">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="osm:content-copy">
<xsl:call-template name="getContent">
<xsl:with-param name="select" select="@select"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="osm:menu-copy">
<xsl:call-template name="getMenu">
<xsl:with-param name="select" select="@select"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="osm:block-copy">
<xsl:call-template name="getBlock">
<xsl:with-param name="select" select="@select"/>
</xsl:call-template>
</xsl:template>
<!--
<xsl:apply-templates select="osm:[EMAIL
PROTECTED]'vMenu'] "/>
-->
<!--
<xsl:template name="getContent">
<xsl:param name="select"/>
<xsl:apply-templates select="//osm:[EMAIL PROTECTED]"/>
</xsl:template>
-->
<xsl:template name="getContent">
<xsl:param name="select"/>
<xsl:apply-templates select="//[EMAIL PROTECTED]"/>
</xsl:template>
<xsl:template name="getMenu">
<xsl:param name="select"/>
<xsl:apply-templates select="//osm:menus/osm:[EMAIL
PROTECTED]"/>
</xsl:template>
<xsl:template name="getBlock">
<xsl:param name="select"/>
<xsl:apply-templates select="//osm:blocks/osm:[EMAIL
PROTECTED]"/>
</xsl:template>
<xsl:template match="node()|@*" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/osml/plugins/custom.xsl
Index: custom.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- add your template here -->
<!-- element have to belong in osm namespace osm:my-element -->
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/osml/plugins/custombutton.xsl
Index: custombutton.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="osm:custombutton">
<input type="button">
<xsl:attribute name="value"><xsl:value-of
select="@caption"/></xsl:attribute>
<xsl:attribute name="onclick">alert('<xsl:value-of
select="@msg"/>')</xsl:attribute>
</input>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/osml/plugins/list.xsl
Index: list.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:osm="http://osmosis.gr/osml/1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="osm:list">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="osm:listItem">
<xsl:choose>
<xsl:when test="@href">
<li>
<xsl:attribute name="class"><xsl:value-of
select="@class"/></xsl:attribute>
<a>
<xsl:attribute name="href"><xsl:value-of
select="@href"/></xsl:attribute>
<xsl:value-of select="."
disable-output-escaping="yes"/>
</a>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<xsl:attribute name="class"><xsl:value-of
select="@class"/></xsl:attribute>
<xsl:value-of select="." disable-output-escaping="yes"/>
<!--
<xsl:apply-templates/>
-->
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/main.css
Index: main.css
===================================================================
/* elements --------------------------------------------- */
BODY {
font-family: Verdana, "Microsoft Sans Serif", sans-serif;
background-color: White;
text-align: left;
margin-top : 0px;
margin-left : 0px;
margin-right : 0px;
}
A {
font-family: Verdana, "Microsoft Sans Serif", sans-serif;
color: black;
font-size: 12px;
text-decoration: none;
}
A:HOVER {
color: #FF6633;
text-decoration: none;
}
A.aux {
color: black;
}
A.aux:visited {
color: black;
}
A.aux:hover {
color: #FF6633;
}
A.mainlinks {
color: white;
}
A.mainlinks:visited {
color: white;
}
A.mainlinks:hover {
color: silver;
}
A.bodylinks {
color: #5E5E5E;
}
A.bodylinks:visited {
color: #5E5E5E;
}
A.bodylinks:hover {
color: #FF6633;
}
P{
font-size: 10px;
line-height: 150%;
text-align : justify;
padding-left:10px;
padding-right: 36px;
}
LI{
font-size: 10px;
line-height: 150%;
vertical-align:middle;
list-style-image : url(images/bullet.gif);
}
DIV{
font-size: 10px;
}
IMG {
display:block;
}
FORM table{
font-family : "Courier New";
font-size : 11px;
font-style : normal;
}
Table{
font-size: 11px;
}
/* classes fixed */
.title{ /* page title */
font-family : Verdana;
width: 100%;
font-size : 160%;
font-weight : bold;
color : black;
letter-spacing : 1px;
vertical-align: top;
}
.subtitle{ /* page sub title */
font-family : Verdana;
width: 100%;
font-size : 130%;
font-weight : bold;
color : #5E5E5E;
letter-spacing : 1px;
}
.paratitle{ /*paragraph title */
font-family : Verdana;
width: 100%;
font-size : 110%;
font-weight : bold;
color : #5E5E5E;
text-align : left;
}
.parasubtitle{ /*paragraph title */
font-family : Verdana;
width: 100%;
font-size : 100%;
padding-top:20px;
padding-left:10px;
font-weight : bold;
color : navy;
letter-spacing : 1px;
}
.paragraph{ /*paragraph body */
font-size : 80%;
padding-left: 10px;
padding-right: 20px;
padding-bottom : 10px;
padding-top : 10px;
line-height : 180%;
text-indent : 15px;
text-align : justify;
}
.notes{
font-family : Verdana, "Microsoft Sans Serif";
font-size : 11px;
padding-left: 25px;
padding-right: 25px;
line-height : 180%;
text-align : left;
color : Gray;
font-style : italic;
}
/* classes ALPHA */
.footLink{
color: silver;
}
.topbanner{
width:100%;
vertical-align:bottom;
}
.footer{ border-top: 1px solid #5E5E5E; }
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_banner_tile.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_bottom_tile.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_cocoon_logo.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_left_tile.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_menu_sep.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_menu_tile.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_othello_logo.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/static/themes/images/home_relax.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/translations/messages.xml
Index: messages.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<!-- CVS $Id: messages.xml,v 1.1 2003/12/15 20:31:47 tony Exp $ -->
<!-- Default English message catalogue file for cocoon2 sample webapp -->
<catalogue xml:lang="en">
<message key="locale_lang">en</message>
<message key="docs">Docs</message>
<message key="installation">Installation</message>
<message key="examples">Examples</message>
</catalogue>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/translations/messages_el.xml
Index: messages_el.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<!-- CVS $Id: messages_el.xml,v 1.1 2003/12/15 20:31:47 tony Exp $ -->
<!-- Default English message catalogue file for cocoon2 sample webapp -->
<catalogue xml:lang="el">
<message key="locale_lang">el</message>
<message key="docs">Τεκμηρίωση</message>
<message key="installation">Εγκατάσταση</message>
<message key="examples">Παραδείγματα</message>
</catalogue>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/othello/translations/messages_en.xml
Index: messages_en.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with STYLEVISION v2004 rel. 2 U (http://www.xmlspy.com) by
Stavros Kounis (Osmosis) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Stavros Kounis
(private) -->
<!-- CVS $Id: messages_en.xml,v 1.1 2003/12/15 20:31:47 tony Exp $ -->
<!-- Default English message catalogue file for cocoon2 sample webapp -->
<catalogue xml:lang="en">
<message key="locale_lang">en</message>
<message key="docs">Docs</message>
<message key="installation">Installation</message>
<message key="examples">Examples</message>
</catalogue>