下面是一个子对话框的例子:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.
xmlns:xsi="http://www.
xsi:schemaLocation="http://www.
http://www.
<!—调用子对话框 -->
<form>
<subdialog name="result" src="#getdriverslicense">
<param name="birthday" expr="'2000-02-10'"/>
<filled>
<submit next="http://myservice.
</filled>
</subdialog>
</form>
<!—定义对话框 -->
<form id="getdriverslicense">
<var name="birthday"/>
<field name="drivelicense">
<grammar src="http://grammarlib/drivegrammar.grxml"
type="application/srgs+xml"/>
<prompt> Please say your drivers license number. </prompt>
<filled>
<if cond="validdrivelicense(drivelicense,birthday)">
<var name="status" expr="true"/>
<else/>
<var name="status" expr="false"/>
</if>
<return namelist="drivelicense status"/>
</filled>
</field>
</form>
</vxml>