3.35. one-of
Element type | one-of |
Attributes | xml:lang |
Parents | item | rule |
Children | item |
Description | Indicates 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.