Enables the grammar to be constructed with a series of alternate phrases or rule expansions, each of which is contained within an <item> element.
<one-of
xml:lang = "CDATA"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
xml:lang |
CDATA |
no |
NA |
Language used in the grammar token, conforming to RFC 3066. |
The <one-of> element specifies a disjunction in an SRGS XML grammar, allowing the grammar to specify a list of alternatives using multiple <item> elements.
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-GB" root="rule1">
<rule id="rule1" scope="public">
<one-of>
<item>
irish
<tag><field1 "irish"></tag>
</item>
<item>
english
<tag><field1 "english"></tag>
</item>
</one-of>
</rule>
</grammar>