O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required