| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
STANDINGS
[
(boston ?(red sox)) { <team "Boston"> <league "American"> <division "east"> <standing "first"> }
(new york ?yankees) { <team "New York"> <league "American"> <division "east"> <standing "last"> }
(toronto ?(blue jays)) { <team "Toronto"> <league "American"> <division "east"> <standing "second"> }
]| Utterance | Slot= 'team' | Slot= 'league' | Slot= 'division' | Slot= 'standing' |
(red sox) | {<team "Boston"> | <league "American"> | <division "east">} | <standing "first">} |
<value expr="lastresult$.interpretation.SLOT"/>
<?xml version="1.0"?>
<vxml version="2.1">
<form id="multipleslots">
<field name="F_1">
<grammar src="grammar/mlbteams.gsl#STANDINGS" type="text/gsl"/>
<prompt>Please select a baseball team.</prompt>
<filled>
<prompt>
You selected <value expr="lastresult$.utterance"/>.
They are in <value expr="lastresult$.interpretation.standing"/> place
in the <value expr="lastresult$.interpretation.league"/> league
<value expr="lastresult$.interpretation.division"/>.
</prompt>
</filled>
</field>
</form>
</vxml>
| ANNOTATIONS: EXISTING POSTS |
manoop
|
|
| In the code above:
You selected <value expr="team"/>. May need to replace "team" with "F_1$.interpretation.team". Cheers, Sudhanshu |
|
MattHenry
|
|
| Hiya Sudhanshu,
Good catch; I'll have this fixed in a jiffy. ~Matt |
| login |
|