using subdialogs for prompts only
Posted: Wed Apr 05, 2006 6:22 am
Hi, I'm trying to use subdialogs to encapsulate and reuse prompt logic. In the example below however, only the first subdialog is executed, not the second. Am I abusing subdialogs or should this be expected to work?
Thanks,
Kevin
Thanks,
Kevin
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<subdialog src="#saynumber">
<param name="theValue" expr="53"/>
</subdialog>
<subdialog src="#saynumber">
<param name="theValue" expr="99"/>
</subdialog>
</form>
<form id="saynumber">
<var name="theValue"/>
<block>
<prompt>
The number is
<say-as type="number"><value expr="theValue"/></say-as>
</prompt>
</block>
</form>
</vxml>