This page contains examples of the schema used in the block descriptor file.
The Webmail block:
{{{<block xmlns="http://apache.org/cocoon/blocks/cob/1.0"
<name>Super Webmail</name> <description href="http://www.mycompany.com/products/webmail/">This is a super webmail block with amazing functionalities</description> <license href="http://www.mycompany.com/license/1.3">BSD License</license> <author href="http://www.mycompany.com/">MyCompany Inc.</author> <sitemap src="/webmail.xmap"/> <requirements>
<requires
block="http://mycompany.com/skin" name="external-skin"
/> <requires
block="http://mycompany.com/skin/2.0 name="internal-skin"
/> <requires
block="http://anothercompany.com/MailRepository/2.0" name="repository">
<uses component="com.anothercompany.repository.Repository"
- name="repository"
/>
</requires>
</requirements> <parameters>
<param name="user" type="string" /> <param name="password" type="hidden-string" />
</parameters>
</block>}}}
The block that implements the "internal-skin":
{{{<block xmlns="http://apache.org/cocoon/blocks/cob/1.0"
<name>Fancy Skin</name> <license href="http://www.yetanothercompany.com/license/1.0">Artistic License</license> <author href="http://www.yetanothercompany.com/">YetAnotherCompany Ltd.</author> <implements block="http://mycompany.com/skin/1.2"/>
</block>}}}
The block that implements the "external-skin":
{{{<block xmlns="http://apache.org/cocoon/blocks/cob/1.0"
<name>Corporate Skin</name> <license href="http://www.mycompany.com/license/1.3">BSD License</license> <author href="http://www.mycompany.com/">MyCompany Inc.</author> <implements block="http://mycompany.com/skin/2.3"/> <extends block="http://yetanothercompany.com/skins/fancy/1.2.2"/>
</block>}}}
The block that implements the mail "repository":
{{{<block xmlns="http://apache.org/cocoon/blocks/cob/1.0"
<name>Exchange-based Mail Repository</name> <license href="http://www.mycompany.com/license/1.3">BSD License</license> <author href="http://www.mycompany.com/">MyCompany Inc.</author> <implements block="http://anothercompany.com/MailRepository/2.0"/> <provides component="http://anothercompany.repository.Repository"/> <parameters>
<param name="host" type="string" default="127.0.0.1" />
</parameters>
</block>}}}