3.35. one-of

Element typeone-of
Attributesxml:lang
Parentsitem | rule
Childrenitem
DescriptionIndicates a set of possible choices for a phrase in a rule expansion.

DTD

<!ELEMENT one-of (item)* >
<!ATTLIST one-of
  xml:lang NMTOKEN #IMPLIED >

Language model

Attributes

xml:lang : NMTOKEN

Specifies the spoken language used with this element - for example, en-US for US English.

Children

item

Each choice within a one-of element is represented by an item element containing a rule expansion.

Examples

In Example 3-41, the rule uses the one-of elements to accept either "like" or "hate" and either "dogs" or "cats." Hence it will match the following phrases: ...

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.