Sets a property value.
<property
name = "identifier"
value = "CDATA"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
name |
identifier |
yes |
NA |
Name of the property to set. |
value |
CDATA |
yes |
NA |
Value to assign to the property. |
Properties control platform behavior, including caching, timeouts, and so forth. For a list of supported properties, see Application Properties.
<field>, <form>, <initial>, <menu>, <object>, <record>, <subdialog>, <transfer>, <vxml>
None.
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<property name="audiomaxage" value="0"/>
<property name="audiofetchhint" value="safe"/>
<property name="confidence" value="0.75"/>
<property name="bargein" value="true"/>
<form id="weather_info">
<grammar src="../../grammar/weatherService.grxml"/>
<block>
<prompt bargein="false">
Welcome to the weather information service.
Barge in is enabled but not here
</prompt>
</block>
<initial name="start">
<property name="timeout" value="5s"/>
<prompt>
For what city and country would you like the weather?
</prompt>
<help>
Please say the name of the city and country
for which you would like a weather report.
</help>
</initial>
<field name="country">
<prompt>What country?</prompt>
<help>
Please speak the country for which you want the weather.
</help>
</field>
<field name="city">
<prompt>
Please say the city in <value expr="country"/>
for which you want the weather.
</prompt>
<help>
Please speak the city for which you want the weather.
</help>
</field>
<field name="go_ahead" type="boolean" modal="true">
<prompt>
Do you want to hear the weather
for <value expr="city$.utterance"/>
in <value expr="country$.utterance"/>
</prompt>
<filled>
<if cond="go_ahead">
<!-- Servlet example, does not exist -->
<submit next="/servlet/weather" method="post"
namelist="city country" fetchtimeout="45s" />
</if>
<clear namelist="start city country go_ahead"/>
</filled>
</field>
</form>
</vxml>
weatherService.grxml:
<?xml version="1.0"?>
<grammar version="1.0" root="weatherservice"
xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-gb">
<rule id="weatherservice">
<one-of>
<item>dublin <tag>dublin</tag></item>
<item>cork <tag>cork</tag></item>
<item>amsterdam <tag>amsterdam</tag></item>
</one-of>
</rule>
</grammar>