3.36. option

Element typeoption
Attributesdtmf | value
Parentsfield
ChildrenCDATA
DescriptionDeclares one of a set of possible responses for a field.

DTD

<!ELEMENT option (CDATA)* >
<!ATTLIST option
  dtmf  CDATA #IMPLIED
  value CDATA #IMPLIED >

Language model

Attributes

dtmf : CDATA

The DTMF sequence for this option.

value : CDATA

The string to assign to the parent field when this option is selected.

Children

None.

Examples

Example 3-42. A field with several options
 <?xml version="1.0" encoding="iso-8859-1"?> <vxml version="1.0"> <form id="icecream"> <field name="flavor"> <prompt>What ice cream flavor would you like?</prompt> <option>Vanilla</option> ...

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.