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: ParameterSelector
Date Tue, 29 Jul 2008 10:13:55 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/911.html

Document ID: 911
Branch: main
Language: default
Name: ParameterSelector (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 7/29/08 9:29:50 AM
Updated by: Felix Knecht

A new version has been created, state: publish

Parts
=====

Long description
----------------
This part has been added.
Mime type: text/xml
File name: null
Size: 828 bytes
Content:
<html>
<body>

<p>&lt;map:selector name="parameter"
factory="org.apache.cocoon.selection.ParameterSelector"/&gt;</p>

<p>&lt;map:select type="parameter"&gt;<br/>
  &lt;map:parameter name="parameter-selector-test"
value="{mySitemapParameter}"/&gt;</p>

<p>  &lt;map:when test="myParameterValue"&gt;<br/>
    &lt;!-- executes iff {mySitemapParameter} == "myParameterValue" --&gt;<br/>
    &lt;map:transform src="stylesheets/page/uk.xsl"/&gt;<br/>
  &lt;/map:when&gt;<br/>
  &lt;map:otherwise&gt;<br/>
    &lt;map:transform src="stylesheets/page/us.xsl"/&gt;<br/>
  &lt;/map:otherwise&gt;<br/>
&lt;/map:select&gt;</p>

<p>The purpose of this selector is to allow an action to set parameters<br/>
and to be able to select between different pipeline configurations<br/>
depending on those parameters.</p>

</body>
</html>


Mime
View raw message