W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2002

multiple values returned

From: Yahn Teisseire <yahn@ukibi.com>
Date: Wed, 16 Oct 2002 14:42:03 +0200
Message-ID: <0a8201c27511$6dd059a0$e9020a0a@paris.ukibi.com>
To: <www-voice@w3.org>
Hi,

I have the following grammar :


Finalgrammar [
         (Action:a ?Name:n ?Media:m)  {<action $a><contact $n><media $m>}
]


Action [
           call { return ("call")}
           find { return ("find")}
           spell { return ("spell")}
]


Name [
               [john doe (john doe) johny] {return([<contactname "john doe"><contactid "1234">])}
 ]


Media [
               home { return ("home")}
               mobile { return ("mobile")}
               work { return ("work")}
           ]



This grammar works, but i'm unable to access "contactname" and "contactid" :
application.lastresult$[0].interpretation.action returns "call" for example,
application.lastresult$[0].interpretation.contact returns { contactname = "john doe" contactid = "1234" },
but application.lastresult$[0].interpretation.contact.contactname returns "undefined".

How could i do ?

Thanks
Received on Wednesday, 16 October 2002 08:42:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:56 GMT