Motorola 1 manual Or Element, Syntax Attributes

Page 42

VoxML 1.0 Element Reference

OR Element

OR Element

The OR element is used to define alternate recognition results in an OPTION element. The OR element is interpreted as a logical or, and is used to associate multiple recognition results with a single NEXT attribute.

The OR element can exist only within the OPTION element.

Syntax

<OR/>

Attributes

The OR element has no attributes.

Examples

1<INPUT TYPE="optionlist">

2<OPTION NEXT="#coke_chosen">

3coke <OR/> coca-cola

4</OPTION>

5<OPTION NEXT="#pepsi_chosen"> pepsi </OPTION>

6</INPUT>

The code shown above illustrates the use of the OR element within an OPTION element. As you can see on line 3, the user may respond with either “coke” or “coca-cola”, and the effect is the same — the voice browser will proceed to the STEP named “coke_chosen”.

October 1998

VoxML 1.0 Language Reference 38

Image 42
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