RE: Event handler selection[VoiceXml2.0]- Clarification needed

Correct - the field nomatch event handler would be selected since it is
the first matching event handler in the scope hierarchy started from the
<filled> element.
 
In the original code snippet, using a <reprompt/> to speak out "Press 1
for this ..." will not work (see section 5.3.6 on <reprompt/> semantics
- basically <reprompt/> applies to next form item the FIA visits and in
this example there isn't one). However, if you replace <reprompt/> with
a specific prompt, it should work correctly (i.e. speaks out the specifc
prompt before exiting).
   
Scott
 


________________________________

From: www-voice-request@w3.org [mailto:www-voice-request@w3.org] On
Behalf Of harbhanu
Sent: Wednesday, December 28, 2005 13:13
To: www-voice@w3.org
Subject: Event handler selection[VoiceXml2.0]- Clarification needed



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 xml
<http://groups.yahoo.com/gads?t=ms&k=Voice+xml&w1=Voice+xml&w2=Xml+devel
oper&w3=Basic+programming+language&w4=Computer+programming+languages&w5=
Programming+languages&w6=Java+programming+language&c=6&s=160&.sig=Y1hsq6
95FA6mlGqb6xC1Cw>  

Xml developer
<http://groups.yahoo.com/gads?t=ms&k=Xml+developer&w1=Voice+xml&w2=Xml+d
eveloper&w3=Basic+programming+language&w4=Computer+programming+languages
&w5=Programming+languages&w6=Java+programming+language&c=6&s=160&.sig=RI
3ACyfZZJYBqQZ7bEFAvw>  

Basic programming language
<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Voice
+xml&w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programm
ing+languages&w5=Programming+languages&w6=Java+programming+language&c=6&
s=160&.sig=toyNQU8xEQ5V5nk09AbzrA>  

Computer programming languages
<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=V
oice+xml&w2=Xml+developer&w3=Basic+programming+language&w4=Computer+prog
ramming+languages&w5=Programming+languages&w6=Java+programming+language&
c=6&s=160&.sig=cqXERrqHVcCRrkTDSn2DSg>  

Programming languages
<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Voice+xml&
w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programming+l
anguages&w5=Programming+languages&w6=Java+programming+language&c=6&s=160
&.sig=bYgc0XxRLX9bYpqpAzM7rA>  

Java programming language
<http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Voice+
xml&w2=Xml+developer&w3=Basic+programming+language&w4=Computer+programmi
ng+languages&w5=Programming+languages&w6=Java+programming+language&c=6&s
=160&.sig=d-r597M583G3hUSfT4gmWA>  

 

________________________________

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
Service <http://docs.yahoo.com/info/terms/> . 

 

________________________________

Received on Tuesday, 10 January 2006 17:41:11 UTC