VoiceXML 2.1 Development GuideHome  |  Frameset Home

  Universal Grammar Modifications  |  TOC  |  Prophecy VXML Porting Guide  

Subdialog Modifications

In theory, good coding dictates that one should declare any <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:

MyFile.vxml


<?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>


SubD.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
0 posts - click the button below to add a note to this page

login
  Universal Grammar Modifications  |  TOC  |  Prophecy VXML Porting Guide  

© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site