Motorola 1 manual Step Element

Page 48

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

Image 48
Contents VoxML Language Reference RevisionPage Contents Appendices What is VoxML OverviewPurpose of this Document Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideACK Element SyntaxAttributes Examples Audio Element Break Element Cancel Element Next step URLExamples Case Element Class Element IntegerExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Input Element Type Date Data FormatInput Element Type Digits Input Element Type Grammar Input Element Type Hidden Input Element Type Money Input Element Type None Input Element Type Number Input Element Type Optionlist Input Element Type Phone Input Element Type PROFILE‡ Input Element Type Record Prompt Input Element Type Time Input Element Type Yorn Option Element VoxML 1.0 Element Reference Options Element Or Element Syntax AttributesPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Value Element PromptAppendices Appendix a VoxML 1.0 Document Type DefinitionOctober VoxML 1.0 Language Reference Appendix B Vcard Profile Names and Subtypes Vcard Profile Names and SubtypesFirst