2017-01-13 2 views

Répondre

2

Si vous écrivez étiquette à l'intérieur, alors il sera un traitement particulier pour cette balise.

Si vous écrivez à l'extérieur, vous pouvez l'utiliser pour manipuler plusieurs entrées.

par ex.

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