O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required