Last reviewed: 3/23/2024 8:31:24 AM
<LIST>
A <LIST> element is group of alternative grammar elements. Only one list entry is recognized and returned by the recognizer at a time.
<GRAMMAR LANGID="409">
<RULE NAME="sandwiches" TOPLEVEL="ACTIVE">
<OPT><RULEREF NAME="number"/></OPT>
<LIST PROPNAME="menuitems">
<PHRASE>VALUE MEAL</PHRASE>
<PHRASE>KIDS MEAL</PHRASE>
<PHRASE>FISH FILET DELUXE</PHRASE>
<PHRASE>JUMBO BURGER DELUXE</PHRASE>
<PHRASE>CHICKEN FILET DELUXE</PHRASE>
<PHRASE>APPLE PIE</PHRASE>
<PHRASE>COOKIES</PHRASE>
</LIST>
</RULE>
<RULE NAME="number">
<LIST PROPNAME="number">
<PHRASE VALSTR="1">one</PHRASE>
<PHRASE VALSTR="2">two</PHRASE>
<PHRASE VALSTR="3">three</PHRASE>
<PHRASE VALSTR="4">four</PHRASE>
<PHRASE VALSTR="5">five</PHRASE>
<PHRASE VALSTR="6">six</PHRASE>
<PHRASE VALSTR="7">seven</PHRASE>
<PHRASE VALSTR="8">eight</PHRASE>
<PHRASE VALSTR="9">nine</PHRASE>
<PHRASE VALSTR="10">ten</PHRASE>
</LIST>
</RULE>
</GRAMMAR>
Attributes
PROPID
NAME attribute of an <ID> element. The <ID> element VAL attribute is returned when recognitions occur. This attribute is optional.
PROPNAME
String identifier to indicate that a PROPID value is returned when recognitions occur. This attribute is optional.
Children
<DICTATION>, <PHRASE>, <RULEREF>, <TEXTBUFFER>, and <WILDCARD>.