- From: harbhanu <harbhanu@huawei.com>
- Date: Wed, 28 Dec 2005 17:43:14 +0530
- To: www-voice@w3.org
- Message-id: <004001c60ba8$14b16860$7905120a@china.huawei.com>
Hi, I want to know whether the following explanation and the original post are as per the behavior specified in the VoiceXML 2.0 Specification. I think that irrespective of the fact that the current input item is filled or not, the nomatch handler specified inside the input item must be selected. As specified in the VoiceXml 2.0 specification..section 5.2 5.2 Event Handling "An element inherits the catch elements ("as if by copy") from each of its ancestor elements, as needed." Also as specified in the Appendix C FIA of the specification.. " If an event is thrown during the execution of a <filled>, event handler selection starts in the scope of the <filled>, which could be an input item or the form itself. " Comments awaited. Regards, Harbhanu -----Original Message----- From: voicexml@yahoogroups.com [mailto:voicexml@yahoogroups.com] On Behalf Of Ritu Raj Tiwari Sent: 15 October 2005 02:23 To: voicexml@yahoogroups.com Subject: Re: [voicexml] (unknown) A <field>-level nomatch kicks in if the input to the field did not match the field's grammar. In your case, the grammar *did* infact match. With your current approach, a <form>-level (or higher) nomatch handler would get invoked. But, if you want the field to be revisited, you will need to clear its guard variable. Hope this helps. -Raj --- Vallish B M <bm_vallish@yahoo.com> wrote: > Hi All, > Why doesnt the nomatch condition > doesnt work in a snippet code like the one given > below: > > <formId = "xyz"> > <field name = "abc" type="digits"> > > < prompt> > Press 1 for this, 2 for this . > </prompt> > > <filled> > < if cond="abc == 1"> > <goto next="#menu1"/> > <else if cond="abc== 2"> > <goto next="#menu2"/> > <else/> > <throw event="nomatch" /> > > </filled> > > <nomatch count="1" > <reprompt/> </nomatch> > </field> > > </form> > > > Regards, > Vallish > > > > > > > > > --------------------------------- > Yahoo! Music Unlimited - Access over 1 million > songs. Try it free. SPONSORED LINKS Voice <http://groups.yahoo.com/gads?t=ms&k=Voice+xml&w1=Voice+xml&w2=Xml+developer &w3=Basic+programming+language&w4=Computer+programming+languages&w5=Programm ing+languages&w6=Java+programming+language&c=6&s=160&.sig=Y1hsq695FA6mlGqb6x C1Cw> xml Xml <http://groups.yahoo.com/gads?t=ms&k=Xml+developer&w1=Voice+xml&w2=Xml+devel oper&w3=Basic+programming+language&w4=Computer+programming+languages&w5=Prog ramming+languages&w6=Java+programming+language&c=6&s=160&.sig=RI3ACyfZZJYBqQ Z7bEFAvw> developer Basic <http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Voice+xml &w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programming+lang uages&w5=Programming+languages&w6=Java+programming+language&c=6&s=160&.sig=t oyNQU8xEQ5V5nk09AbzrA> programming language Computer <http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Voice +xml&w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programming+ languages&w5=Programming+languages&w6=Java+programming+language&c=6&s=160&.s ig=cqXERrqHVcCRrkTDSn2DSg> programming languages Programming <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Voice+xml&w2=X ml+developer&w3=Basic+programming+language&w4=Computer+programming+languages &w5=Programming+languages&w6=Java+programming+language&c=6&s=160&.sig=bYgc0X xRLX9bYpqpAzM7rA> languages Java <http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Voice+xml& w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programming+langu ages&w5=Programming+languages&w6=Java+programming+language&c=6&s=160&.sig=d- r597M583G3hUSfT4gmWA> programming language _____ YAHOO! GROUPS LINKS * Visit your group "voicexml <http://groups.yahoo.com/group/voicexml> " on the web. * To unsubscribe from this group, send an email to: voicexml-unsubscribe@yahoogroups.com <mailto:voicexml-unsubscribe@yahoogroups.com?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of <http://docs.yahoo.com/info/terms/> Service. _____
Received on Wednesday, 28 December 2005 15:11:17 UTC