[DAISY] Updated: ParameterSelector

[email protected]
Newsgroups gmane.text.xml.cocoon.documentation
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.