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

Page 42
Image 42
Motorola 1 manual Or Element, Syntax Attributes