Code: Select all
<form id="test">
<var name="var1" expr="'tooth'" />
<var name="var2" expr="'brush'" />
<subdialog name="call_sub" src="#sub_form">
<param name="param1" expr="var1" />
<param name="param2" expr="var2" />
<filled>
The concatenation of var 1 and var 2 is
<value expr="call_sub.retval" />
</filled>
</subdialog>
</form>
<form id="sub_form">
<var name="param1" />
<var name="param2" />
<!-- new variable holds concatenation of param1 and param2 -->
<var name="retval" expr="param1+param2" />
<block>
<return namelist="retval" />
</block>
</form>
In the context of a <subdialog>, "namelist" is only valid if src references a URI to another document (i.e. requires an actual HTTP request to be made).