cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Advanced Control Flow - Sitemap
Date Fri, 14 Oct 2005 13:21:35 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/legacydocs/512.html

Document ID: 512
Branch: main
Language: default
Name: Advanced Control Flow - Sitemap (previously Advanced Control Flow)
Document Type: Document (unchanged)
Updated on: 10/14/05 1:21:21 PM
Updated by: Helma van der Linden

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 3023 bytes (previous version: 3030 bytes)
Content diff:
(16 equal lines skipped)
    that will be compiled and executed when this Sitemap is created. The
    <tt>src</tt> attribute specifies the URI of the script.</p>
    
--- <pre>
---         &lt;map:flow language="Language"&gt;
+++ <pre>        &lt;map:flow language="Language"&gt;
               &lt;map:script src="URI"/&gt;
            &lt;/map:flow&gt;
          </pre>
    
    <p>Example:</p>
    
--- <pre>
---         &lt;map:flow language="javascript"&gt;
+++ <pre>        &lt;map:flow language="javascript"&gt;
               &lt;map:script src="myApplication.js"/&gt;
            &lt;/map:flow&gt;
          </pre>
(10 equal lines skipped)
    specifies the name of the function. Zero or more nested <tt>parameter</tt>
    elements may be provided to pass arguments to the function.</p>
    
--- <pre>
---         &lt;map:call function="FunctionName"&gt;
+++ <pre>        &lt;map:call function="FunctionName"&gt;
               &lt;map:parameter name="Name" value="Value"/&gt;*
            &lt;/map:call&gt;
          </pre>
    
    <p>Example:</p>
    
--- <pre>
---         &lt;map:flow language="javascript"&gt;
+++ <pre>        &lt;map:flow language="javascript"&gt;
               &lt;map:script src="myApplication.js"/&gt;
            &lt;/map:flow&gt;
            &lt;map:pipelines&gt;
(10 equal lines skipped)
    <p>Then in <tt>myApplication.js</tt> you would define a JavaScript function
    called <tt>showIndexPage()</tt> such as:</p>
    
--- <pre>
---         function showIndexPage() { 
+++ <pre>        function showIndexPage() { 
                var param = cocoon.parameters.paramName;
                sendPage("private/index.html", {param: param});
            }
(5 equal lines skipped)
    invoke an existing continuation of your Flowscript. The <tt>continuation</tt>
    attribute specifies the unique id of the continuation.</p>
    
--- <pre>
---         &lt;map:call continuation="Id"/&gt;
+++ <pre>        &lt;map:call continuation="Id"/&gt;
          </pre>
    
    <p>Example:</p>
    
--- <pre>
---         &lt;map:match pattern="*.form"&gt;
+++ <pre>        &lt;map:match pattern="*.form"&gt;
              &lt;map:call continuation="{1}"/&gt;
            &lt;/map:match&gt;
          </pre>
(3 equal lines skipped)


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes

Mime
View raw message