| VoiceXML 2.1 Development Guide | Home | Frameset Home |
| expr | Data Type: CDATA | Default: Required |
| The expr attribute specifies the ECMAScript expression which evaluates to a string to be rendered by the TTS engine. | ||
| <?xml version="1.0" encoding="UTF-8"?> <vxml version = "2.1"> <meta name="author" content="Matthew Henry"/> <meta name="copyright" content="2005 voxeo corporation"/> <meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/> <form id="F1"> <var name="MyVar" expr="'Dirk Diggler'"/> <block> <prompt> Our favorite movie star is <value expr="MyVar"/>. </prompt> </block> </form> </vxml> |
| ANNOTATIONS: EXISTING POSTS |
moshe
|
|
| <prompt> is also a parent of <value>
The explanation of what <value> does is wong, even though that's what the W3C spec says. <value> transforms an ECMA expression into text, and can be used where the interepreter expects text. Examples: Given <var name="foo" value="'bar'"/> In a log, <log>The value was <value expr="foo"/></log> prints out "The value was bar." And in a <prompt>, <prompt>The value was <value expr="foo"/></prompt> The system will say "The value was bar." |
| login |