VoxML 1.0 Element Reference

STEP Element

STEP Element

The STEP element defines a state in a VoxML application. A STEP element typically has an associated PROMPT element and INPUT element that minimally define the application state.

Each VoxML DIALOG must contain exactly one STEP element named “init”.

The execution of the VoxML application begins with the STEP named “init”.

The STEP element can be contained by a DIALOG element only.

Syntax

<STEP NAME="value" [PARENT="value"] [BARGEIN="value"] [COST="value"] > VoxML </STEP>

Attributes

Attribute Name

Allowed Values

NAMEidentifier

PARENT

identifier

 

 

BARGEIN

Y *

 

N

 

 

COST

integer

Examples

1 <STEP NAME="askpython" PARENT="tvrating">

2<PROMPT> Please rate Monty Python's Flying Circus

3on a scale of 1 to 10. </PROMPT>

4<INPUT NAME="python" TYPE="number" NEXT="#drwho" />

5</STEP>

This example illustrates a simple STEP that collects the user’s opinion on one of several public television shows. The step uses the PARENT attribute to share a common set of help and error elements with other TV-show-rating STEPs. For example, the parent class might contain a help element explaining what a rating of 1, 5, and 10 would mean; a common error message might remind the user that a numeric rating is expected.

The COST attribute is a platform-dependent feature.

October 1998

VoxML 1.0 Language Reference 44

Page 48
Image 48
Motorola 1 manual Step Element