2017-01-13 14 views

答えて

2

例に記載されています。

外部に書き込むと、複数の入力操作が好きなときに使用できます。

例えば、

<?xml version="1.0" encoding="UTF-8"?> 
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml"> 
<form id="get_starting_and_ending_cities"> 
    <field name="start_city"> 
     <grammar src="city.grxml" 
     type="application/srgs+xml"/> 
     <prompt>What is the starting city?</prompt> 
    </field> 
    <field name="end_city"> 
     <grammar src="city.grxml" 
     type="application/srgs+xml"/> 
     <prompt>What is the ending city?</prompt> 
    </field> 
    <filled mode="all" namelist="start_city end_city"> 
    <log><value expr="start_city"/></log> 
<log><value expr="end_city"/></log> 

    <if cond="start_city == end_city"> 
     <prompt> 
     You can't fly from and to the same city. 
     </prompt> 
    </if> 
    </filled> 
</form> 
</vxml> 
関連する問題