Document Navigation Example
example02_1.vxml
xml version="1.0" encoding="UTF-8"
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<meta name="description" content="document navigation example"/>
<meta name="author" content="OptimSys, s.r.o., Czech Republic (http://www.optimsys.cz)"/>
<meta name="copyright" content="free for any purpose"/>
<form id="start">
<var name="target"/>
<block>
<prompt> First form item is interpreted. </prompt>
<assign name="third" expr="true"/>
</block>
<block name="third">
Third form item is interpreted.
</block>
<block name="second">
Second form item is interpreted.
<clear namelist="third"/>
</block>
<block name="fourth">
Fourth form item is interpreted.
<assign name="target" expr="'fifth'"/>
<goto expritem="target"/>
</block>
<block name="sixth">
Sixth form item is interpreted.
<goto next="#another"/>
</block>
<block name="fifth">
Fifth form item is interpreted.
</block>
</form>
<form id="another">
<block name="a">
<prompt> Now we are in another dialog. </prompt>
<assign name="a" expr="'another2'"/>
<goto expr="'#'+a"/>
</block>
</form>
<form id="another2">
<block>
Now we are in even another dialog.
<goto next="example02_2.vxml"/>
</block>
</form>
</vxml>
example02_2.vxml
xml version="1.0" encoding="UTF-8"
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<meta name="description" content="document navigation example"/>
<meta name="author" content="OptimSys, s.r.o., Czech Republic (http://www.optimsys.cz)"/>
<meta name="copyright" content="free for any purpose"/>
<form id="start">
<block>
<prompt> Welcome to another document. </prompt>
<goto next="#another"/>
</block>
</form>
<form id="another">
<block>
Now we are in another dialog in the other document.
</block>
</form>
</vxml>