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)
          &lt;title&gt;CZ's Weblog&lt;/title&gt;
          &lt;coplet-base-data&gt;URICoplet&lt;/coplet-base-data&gt;
          &lt;attribute&gt;
---             &lt;name&gt;uri&lt;/name&gt;
---             &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
---             
cocoon:/news/liverss?feed=http://radio.weblogs.com/0107211/rss.xml
---     &lt;/value&gt;
+++          &lt;name&gt;uri&lt;/name&gt;
+++              &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
+++                 
cocoon:/news/liverss?feed=http://radio.weblogs.com/0107211/rss.xml
+++      &lt;/value&gt;
          &lt;/attribute&gt;
          &lt;attribute&gt;
---             &lt;name&gt;buffer&lt;/name&gt;
---             &lt;value xsi:type="java:java.lang.Boolean" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;true&lt;/value&gt;
+++          &lt;name&gt;buffer&lt;/name&gt;
+++              &lt;value xsi:type="java:java.lang.Boolean" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;true&lt;/value&gt;
          &lt;/attribute&gt;
          &lt;attribute&gt;
---             &lt;name&gt;error-uri&lt;/name&gt;
---             &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;cocoon:/news/CZ_weblog.rss&lt;/value&gt;
+++          &lt;name&gt;error-uri&lt;/name&gt;
+++              &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;cocoon:/news/CZ_weblog.rss&lt;/value&gt;
          &lt;/attribute&gt;
       &lt;/coplet-data&gt;
    &lt;/coplets&gt;
    ...
---    </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>...
+++ &lt;coplet-data id="Portal-Demo" name="standard"&gt;
+++    &lt;title&gt;Introduction&lt;/title&gt;
+++    &lt;coplet-base-data&gt;CachingURICoplet&lt;/coplet-base-data&gt;
+++    &lt;attribute&gt;
+++       &lt;name&gt;uri&lt;/name&gt;
+++       &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;cocoon:/coplets/docs/portal-demo.html&lt;/value&gt;
+++    &lt;/attribute&gt;
+++    &lt;attribute&gt;
+++       &lt;name&gt;ignore-sizing-events&lt;/name&gt;
+++       &lt;value xsi:type="java:java.lang.Boolean" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;false&lt;/value&gt;
+++    &lt;/attribute&gt;
+++ &lt;/coplet-data&gt;
+++ ...
       </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>...
+++ &lt;coplet-data id="Portal-Demo" name="standard"&gt;
+++    &lt;title&gt;Introduction&lt;/title&gt;
+++    &lt;coplet-base-data&gt;CachingURICoplet&lt;/coplet-base-data&gt;
+++    &lt;attribute&gt;
+++      &lt;name&gt;uri&lt;/name&gt;
+++      &lt;value xsi:type="java:java.lang.String" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;cocoon:/coplets/docs/portal-demo.html&lt;/value&gt;
+++    &lt;/attribute&gt;
+++    &lt;attribute&gt;
+++      &lt;name&gt;cache-global&lt;/name&gt;
+++      &lt;value xsi:type="java:java.lang.Boolean" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;true&lt;/value&gt;
+++    &lt;/attribute&gt;
+++ &lt;/coplet-data&gt;
+++ ...
         </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