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>
--- <map:flow language="Language">
+++ <pre> <map:flow language="Language">
<map:script src="URI"/>
</map:flow>
</pre>
<p>Example:</p>
--- <pre>
--- <map:flow language="javascript">
+++ <pre> <map:flow language="javascript">
<map:script src="myApplication.js"/>
</map:flow>
</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>
--- <map:call function="FunctionName">
+++ <pre> <map:call function="FunctionName">
<map:parameter name="Name" value="Value"/>*
</map:call>
</pre>
<p>Example:</p>
--- <pre>
--- <map:flow language="javascript">
+++ <pre> <map:flow language="javascript">
<map:script src="myApplication.js"/>
</map:flow>
<map:pipelines>
(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>
--- <map:call continuation="Id"/>
+++ <pre> <map:call continuation="Id"/>
</pre>
<p>Example:</p>
--- <pre>
--- <map:match pattern="*.form">
+++ <pre> <map:match pattern="*.form">
<map:call continuation="{1}"/>
</map:match>
</pre>
(3 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes