RE: Field without a prompt

I have a library that validates the scripts. It just goes through tags
and says whether everithing in the script is valid or not. Assuming that
the field is the only one in the form it will be visited again and again
(it is possible that there are no factors that prevent visiting this
field again) till the user says something matching the grammar. And this
may cause a problem since it may become an infinite loop. But it seems
that it is the correct behavior according to the spec. Thank you very
much for the answer.

-----Original Message-----
From: Petr Kuba [] 
Sent: Thursday, October 19, 2006 12:01
Cc: Petrova Anastasia
Subject: Re: Field without a prompt

Hi Anastasia,

The spec seems to be very clear about behaviour in the situation you
described. As Teemu Tingander already explained, when the interpreter
should reprompt and there are no prompts in the respective <field>,
will be said to the user when interpreting the prompt.

If there is no but the default nomatch event handler present and the
says something unrecognizable, platform default prompt informing about
nomatch situation is spoken to the user and the field is visited again
(unless other factors will prevent it - see FIA in the spec), which is
acceptable behaviour.

If there is no but the default noinput event handler present and the
is silent until the noinput timeout elapses, no prompt is spoken at all
the field is visited again (unless other factors will prevent it), which
kind of pathological behaviour since the user has no feedback. Anyway,
is the correct behaviour according to the spec.

I don't understand why you should translate such a script for a platform
that will perform it. Such a script is a correct one, though not very
friendly. Could you please be more specific about your needs and the
you use?


   Petr Kuba, Project Manager
   OptimSys, s.r.o
   Tel: +420 541 143 065
   Fax: +420 585 750 429

Petrova Anastasia wrote:
> Actually, I guess I need to provide better explanation of the 
> situation. It's not about writing a script where field doesn't have a 
> prompt. It's about translating such a script for the platform that 
> performs it. I actually don't know why someone may need field without 
> a prompt, but as you confirmed, it is possible. And it's also possible

> that no <catch> elements are specified within the field. So, in 
> accordance with table in section 5.2.5, if nomatch or noinput event 
> occures I need to reprompt. And the most interesting question is what 
> should I do in this situation, when I have a script with field that 
> has no prompt and no event handlers, and I need to reprompt?
> *From:* 
> []
> *Sent:* Wednesday, October 18, 2006 12:00
> *To:* Petrova Anastasia;
> *Subject:* RE: Field without a prompt
> Hi !
> Without not going into the reasons reasons to do field item without 
> prompt;, Yes. Field item can exist without any prompt. In fact the 
> prompts before the collection to that fields starts can be queued from

> other elements processed during FIA collect phase. But if you indeed 
> have a field item without any prompts and reprompt request occurs 
> nothing is putted to prompt queue and thus nothing is prompted. In 
> this case you should use event counts to define amount of events 
> like"nomatch" can occur in that field. In my example this count is 3.
> <nomatch count="3">
> <-- executed when event nomatch is thrown 3rd time while the 
> collecting this field -->
> <prompt> Sorry I could not really under stand you, bye </prompt>
> <-- lets disconnect the phone call-->
> <disconnect/>
> </nomatch>
> You should probably do something more clever in here. Studying FIA 
> helps a lot to understand the VoiceXML process / collect loop that 
> plays a big role in this question too. If form has more field items 
> that you want to collect you may use cond or filling this particulars 
> field item to make FIA to skip its collect.
> The interesting part in here is the "timeout", but that's another 
> story then.
> - Teemu
> (oh I see that you got some answer already but..)
> *From:* [] *On

> Behalf Of *Petrova Anastasia
> *Sent:* 17. lokakuuta 2006 11:22
> *To:*
> *Subject:* Field without a prompt
> Hello. My name is Anastasia and I have a question about the
> In 2.4.1 there's a sentense: Each field can have one or more prompts.
> Can you clear to me, whether it is possible that field have no prompts

> at all?
> If this is really possible, what should I do when nomatch or noinput 
> event occures and I have to reprompt?
> Is it an infinite loop till user says something matching a grammar, or

> I should throw an error?
> Thank you in advance.
> //Best regards,//
> //Anasatsia Petrova//
> //Software Analyst//
> <>
> // //
> /liter '3', 22 Moiseenko street,
> St. Petersburg, Russia, 191144
> Phone/fax: +7 812 327 32 33,
> E-mail:
> Web-site: //

Received on Thursday, 19 October 2006 08:20:45 UTC