<enumerate>

Generates an automatic prompt of menu choices or field options.

Syntax

<enumerate/>

Attributes

None.

Details

The <enumerate> element can be empty or it can contain text , speech mark-up, and <value> elements that reference the following special variables:

Parents

<audio>, <block>, <catch>, <choice>, <enumerate>, <error>, <field>, <filled>, <foreach>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <object>, <prompt>, <prosody>, <record>, <subdialog>, <transfer>, <voice>

Children

<audio>, <break>, <emphasis>, <enumerate>, <mark>, <p>, <phoneme>, <prosody>, <say-as>, <s>, <value>

Example

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <catch event="myEvent">
        Goodbye
        <exit/>
    </catch>
    <catch event="nomatch">
        I didn't understand. Say one of <enumerate/>
    </catch>
<!-- 
    Note that the DTMF sequence for each choice will be 
    assigned automatically 
-->
    <menu id="main" dtmf="true">
        <prompt>
            Main Menu <break time="500ms"/>
            <enumerate>
            For <value expr="_prompt"/> say <value expr="_prompt"/>
                or press <value expr="_dtmf"/>
            </enumerate>
        </prompt>
        <choice next="#news"> news </choice>
        <choice next="#sport"> sport </choice>
        <choice event="myEvent"> quit </choice>
    </menu>
    <form id="news">
        <block>
            You chose news
            <goto next="#main"/>
        </block>
    </form>
    <form id="sport">
        <block>
            You chose sport
            <goto next="#main"/>
        </block>
    </form>
</vxml>

See Also

<choice>, <option>