W3C home > Mailing lists > Public > www-voice@w3.org > July to September 2007

Re: VXML2.0 spec question

From: Martin Drasar <drasar@optimsys.cz>
Date: Fri, 03 Aug 2007 16:03:40 +0200
Message-ID: <46B335BC.8030205@optimsys.cz>
To: David Nicol <davidnicol@gmail.com>
Cc: www-voice@w3.org

Hi David,

It seems that nobody reacted to your question so far. Let me be the first one.

The VoiceXML 2.0 specification says that "the <value> element is used to
insert the value of an expression into a prompt." It does not define what
value of an expression is. Our VoiceXML platform OptimTalk uses a natural
approach - it evaluates the expression first and then converts the result
to a string. Thus your script produces the following output: "undefined
undefined values throw errors".

Hope this helps,

Martin

-- 
Martin Drasar, Developer / Analyst
OptimSys, s.r.o.
drasar@optimsys.cz
Tel: +420 541 143 065
Fax: +420 541 143 066
http://www.optimsys.cz

David Nicol wrote:

> 
> error.semantic
>    A run-time error was found in the VoiceXML document, e.g.
> substring bounds error, or an undefined variable was referenced.
> 
> Is that supposed to say "undeclared?"
> 
> <vxml xmlns="http://www.w3.org/2001/vxml" version = "2.1">
> <form>
> <block>
> <prompt>
>   undefined
>   <value  expr="undefined"/>
>   values do not throw errors
> </prompt>
> </block>
> <catch event="error.semantic">
>   values throw errors
> </catch>
> </form>
> </vxml>
> 
> My reading of the spec is that the above dialog would say "undefined
> values throw errors"
> 
> is that correct? OpenVXI3.4 treats it as an empty string.
Received on Saturday, 4 August 2007 03:32:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 4 August 2007 03:32:35 GMT