Description
Used to insert the value of an expression into a prompt.
Syntax
<value
expr="ECMAScript_Expression"/> |
Attributes
|
Attribute |
Description |
|
expr |
The ECMAScript expression to be evaluated and inserted into the prompt. Required. |
Parents
<audio>, <block>, <catch>, <choice>, <enumerate>, <error>, <field>, <filled>, <foreach>, <help>, <if>, <initial>, <log>, <menu>, <noinput>, <nomatch>, <object>, <prompt>, <record>, <subdialog>, <transfer>, Speech Markup (SSML)
Children
None.
Extensions
None.
Limitations/Restrictions
<value> tag is used as a child of any of the SSML
tags (e.g. <say-as>), the interpreter adds a space
character before and after the <value> tag. For example,
for the following VoiceXML snippet:<var name="color" expr="'red'"/>
...
This is a<value expr="color"/>cat.<value>
tag without any spaces around it, they should write a javascript function
to concatenate the evaluated <value> tag with the
surrounding text.
Example
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<var name="var1" expr="'first'"/>
<form>
<block>
The initial value is <value expr="var1"/>.
</block>
</form>
</vxml> |