- From: Jean-Michel Reghem <reghem@babeltech.com>
- Date: Tue, 05 Feb 2002 12:21:12 +0100
- To: voicexml@smartgroups.com, www-voice@w3.org
The same question but with this adding: In case of a simple <return> without namelist ... Is the subdialog var defined? In voiceXML 1.0 specs, they said that if namelist doesn't exists, the default is to return an empty ECMAscript object ... For me, empty means that in this case: <subdialog name="result" src="#returnevent"> <catch event="returnevent.event"> Received return event from subdialog, test complete. </catch> <prompt>Calling subdialog that returns an event.</prompt> </subdialog> <form id="returnevent"> <block> <prompt> In subdialog, returning empty return. </prompt> <return/> </block> </form> --> result is true, but contains no data ... but <subdialog name="result" src="#returnevent"> <catch event="returnevent.event"> Received return event from subdialog, test complete. </catch> <prompt>Calling subdialog that returns an event.</prompt> </subdialog> <form id="returnevent"> <var name="truc" expr="'hello'"/> <block> <prompt> In subdialog, returning empty return. </prompt> <return namelist="name"/> </block> </form> --> result is true, and result.name is define yet ... My second question is thus also: is the variable of a subdialog define when an empty return occurs (it means thus that subdialog element is filled)? Jean-Michel Jean-Michel Reghem écrivait ( Monday 2/4/02 04:05 PM ) dans le message ci-dessous: --- >I have a question about interpretation of specs (voiceXML 1.0) on this >subject: to set or not to set a subdialog name variable when the subdialog >return an event ... > >I use our VoiceXML server, based on openVXI 1.4 (with a lot of debugging ;-)) > > > >When i use a subdialog, with a classic return tag, there is no problem > >But, when i use a subdialog which the return tag return an event and not >some variables, there is an infinite loop: > ><?xml version="1.0"?> ><vxml version="1.0"> > ><!-- Copyright (c) 2001 VoiceXML Forum. All rights reserved. > Samples are for illustrative purposes only. >--> > > <form> > <subdialog name="result" src="#returnevent"> > <catch event="returnevent.event"> > Received return event from subdialog, test complete. > </catch> > <prompt>Calling subdialog that returns an event.</prompt> > > > </subdialog> > </form> > > <form id="returnevent"> > <block> > <prompt> In subdialog, returning event. </prompt> > <return event="returnevent.event"/> > </block> > </form> > ></vxml> > > > >It seems that the return element with event doesn't set "result" as true >like a return element with classic namelist do ... >Here is the dialog: >- Calling subdialog that returns an event. >- In subdialog, returning event. >- Received return event from subdialog, test complete. >- Calling subdialog that returns an event. >- In subdialog, returning event. >- Received return event from subdialog, test complete. >- Calling subdialog that returns an event. >- In subdialog, returning event. >- Received return event from subdialog, test complete. >... > > >if i add ><assign name="result" expr="true"/> >in the <catch event="returnevent.event"> ... </catch> > >There is no more problem: the application exit normally after the first >prompt Received return event from subdialog, test complete. > > > >Is it normal? is it a return tag with event not a condition to fill a >subdialog (like nomatch, noinput, ...) >VoiceXML 1.0 spec is not really clear about that... > > >And this example comes from www.voicexml.org ... > > >What do you think? > >Jean-Michel > >Jean-Michel Reghem >Voice Technology Development Engineer >E-Mail : mailto:reghem@babeltech.com > >Babel Technologies S.A. >Boulevard Dolez 33 B-7000 Mons (Belgium) >Tel: (+32) 65.37.43.06 >http://www.babeltech.com > > >-- >If you want to share pictures, use the calendar, or start a vote >visit http://www.smartgroups.com/groups/VoiceXML > >To leave the group, email: VoiceXML-unsubscribe@smartgroups.com --- Jean-Michel Reghem Voice Technology Development Engineer E-Mail : mailto:reghem@babeltech.com Babel Technologies S.A. Boulevard Dolez 33 B-7000 Mons (Belgium) Tel: (+32) 65.37.43.06 http://www.babeltech.com
Received on Tuesday, 5 February 2002 06:40:20 UTC