A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/602.html
Document ID: 602
Branch: main
Language: default
Name: Configuring Coplets (unchanged)
Document Type: Document (unchanged)
Updated on: 8/15/05 12:25:52 PM
Updated by: Helma
A new version has been created, state: draft
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 15983 bytes (previous version: 15117 bytes)
Content diff:
(44 equal lines skipped)
</coplet-base-data>
</coplets>
...
--- </pre>
+++ </pre>
<p>In the example above, we define one coplet type, the <em>URICoplet</em>,
that
uses the <em>uri coplet adapter</em>. By this we define a type, that uses
URIs
(17 equal lines skipped)
<title>CZ's Weblog</title>
<coplet-base-data>URICoplet</coplet-base-data>
<attribute>
--- <name>uri</name>
--- <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
---
cocoon:/news/liverss?feed=http://radio.weblogs.com/0107211/rss.xml
--- </value>
+++ <name>uri</name>
+++ <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+++
cocoon:/news/liverss?feed=http://radio.weblogs.com/0107211/rss.xml
+++ </value>
</attribute>
<attribute>
--- <name>buffer</name>
--- <value xsi:type="java:java.lang.Boolean"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</value>
+++ <name>buffer</name>
+++ <value xsi:type="java:java.lang.Boolean"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</value>
</attribute>
<attribute>
--- <name>error-uri</name>
--- <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/news/CZ_weblog.rss</value>
+++ <name>error-uri</name>
+++ <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/news/CZ_weblog.rss</value>
</attribute>
</coplet-data>
</coplets>
...
--- </pre>
+++ </pre>
<p>Each coplet data contains a unique ID and additional configuration.
Configuration of the underlying coplet base data is required. In the example
(171 equal lines skipped)
if you want to disable the cache on a sizing event you can turn this on in
the
configuration for a coplet data:</p>
--- <pre> ...
---
--- Introduction
--- CachingURICoplet
---
--- uri
--- cocoon:/coplets/docs/portal-demo.html
---
---
--- ignore-sizing-events
--- false
---
---
--- ...
+++ <pre>...
+++ <coplet-data id="Portal-Demo" name="standard">
+++ <title>Introduction</title>
+++ <coplet-base-data>CachingURICoplet</coplet-base-data>
+++ <attribute>
+++ <name>uri</name>
+++ <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/coplets/docs/portal-demo.html</value>
+++ </attribute>
+++ <attribute>
+++ <name>ignore-sizing-events</name>
+++ <value xsi:type="java:java.lang.Boolean"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">false</value>
+++ </attribute>
+++ </coplet-data>
+++ ...
</pre>
<h2>Global Caching</h2>
(2 equal lines skipped)
want to use a global cache across all users, you can turn this on with an
attribute on the coplet data configuration:</p>
--- <pre> ...
---
--- Introduction
--- CachingURICoplet
---
--- uri
--- cocoon:/coplets/docs/portal-demo.html
---
---
--- cache-global
--- true
---
---
--- ...
+++ <pre>...
+++ <coplet-data id="Portal-Demo" name="standard">
+++ <title>Introduction</title>
+++ <coplet-base-data>CachingURICoplet</coplet-base-data>
+++ <attribute>
+++ <name>uri</name>
+++ <value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/coplets/docs/portal-demo.html</value>
+++ </attribute>
+++ <attribute>
+++ <name>cache-global</name>
+++ <value xsi:type="java:java.lang.Boolean"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</value>
+++ </attribute>
+++ </coplet-data>
+++ ...
</pre>
<p>By using the boolean <em>cache-global</em> attribute with the value
(78 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes