| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
<item>
utterance value
<tag>
out.slotname_1="interpretation value 1";
out.slotname_2="interpretation value 2";
</tag>
</item>
lastresult$.interpretation.[slotname]
<?xml version= "1.0"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" root = "MCCARTHY">
<rule id="MCCARTHY" scope="public">
<one-of lang-list="en-US">
<item>
the orchard keeper
<tag> out.title="The Orchard Keeper"; out.year="1965"; </tag>
</item>
<item>
outer dark
<tag> out.title="Outer Dark"; out.year="1968"; </tag>
</item>
<item>
child of god
<tag> out.title="Child of God"; out.year="1974"; </tag>
</item>
<item>
suttree
<tag> out.title="Suttree"; out.year="1979"; </tag>
</item>
<item>
blood meridian
<tag> out.title="Blood Meridian: Or the Evening Redness in the West"; out.year="1985"; </tag>
</item>
<item>
all the pretty horses
<tag> out.title="All the Pretty Horses"; out.year="1992"; </tag>
</item>
<item>
the crossing
<tag> out.title="The Crossing"; out.year="1994"; </tag>
</item>
<item>
cities of the plain
<tag> out.title="Cities of the Plain"; out.year="1998"; </tag>
</item>
<item>
no country for old men
<tag> out.title="No Country for Old Men"; out.year="2005"; </tag>
</item>
<item>
the road
<tag> out.title="The Road"; out.year="2006"; </tag>
</item>
</one-of>
</rule>
</grammar>
| Utterance | Slot= 'title' | Slot= 'year' |
blood meridian |
out.title="Blood Meridian: Or the Evening Redness in the West"; |
out.year="1985"; |
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1">
<form id="MainForm">
<field name="F_1">
<grammar src="XMLMultiSlotGrammar.xml" type="application/grammar-xml"/>
<prompt>
What is your favorite novel by Cormac McCarthy?
</prompt>
<filled>
<prompt>
<value expr="lastresult$.interpretation.title"/>,
is an exceptional piece of literature, and was well received by readers, critics,
and Pee Wee Herman when it was originally released in
<value expr="lastresult$.interpretation.year"/>.
</prompt>
<log expr="'*** INTERPRETATION RESULT = ' + lastresult$.interpretation.title"/>
<log expr="'*** INTERPRETATION RESULT = ' + lastresult$.interpretation.year"/>
</filled>
</field>
</form>
</vxml>
| ANNOTATIONS: EXISTING POSTS |
| login |
|