| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
<param> as a form-level variable within the subdialog itself, but some older VoiceXML browsers allow us some flexibility in this regard. However, this declaration is mandatory when using the Prophecy VoiceXML browser, and it is therefore suggested that you always declare these variables within the target subdialog document as illustrated below to ensure compatibility across the board:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1">
<form>
<subdialog name="MySub" src="SubD.vxml">
<param name="MyPrompt" expr="'here is the first prompt'"/>
</subdialog>
</form>
</vxml>
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1">
<form id="F1">
<var name="MyPrompt"/>
<block>
<prompt>
<value expr="MyPrompt"/>
</prompt>
<return/>
</block>
</form>
</vxml>
| ANNOTATIONS: EXISTING POSTS |
| login |
|