Hello,
Following are additional suggestions for clarifications of the VXML 2.0 W3C
Working Draft from 24 April 2002.
1 - Precise the behavior if Reprompt is executed outside of a catch element
Suggested text addition to section "5.3.6 REPROMPT":
"If a Reprompt is executed outside of a catch element (such as in a block or
filled elements) then an "error.semantic" event is thrown.
2 - Precise which event should be thrown for malformed ECMAScript
expressions in Var, Assign, Script, and ECMAScript expression evaluation
(such as the "cond" attribute, and expr attribute variants).
Suggested text addition to Appendix C, FIA:
"During the execution of the FIA, various ECMAScript expressions are
evaluated such as the "cond" attribute of input or prompt items and the
different variants of "expr" attribute. If the evaluation of such an
ECMAScript expression defined in the document results in an error then an
"error.semantic" event is thrown. These events are handled in the same way
than events thrown during execution as documented in the beginning of this
section."
3 - Precise that the Block's prompt queuing occurs during prior to execute
the Block.
In the example below, it seems unclear from the specifications whether the
second prompt would be heard because prompts are executable content and the
definition of "execute" states that as soon as a "<goto> is executed, the
transfer takes place immediately, and the remaining executable content is
not executed." However, the collect phase states that appropriate prompts
elements should be selected for the input item (including blocks).
<block>
This is my first prompt text
<goto next="#another_dialog"/>
This is my second prompt text
</block>
Suggested modifications to the appendix C:
" else if ( a <block> was chosen )
{
Set the block’s form item variable to a defined value.
Execute the block’s executable context (except for prompts which were
previously queued in the select phase).
}"
I hope this can help. Any comment on this is welcomed.
Best regards,
------------------------------------------
Guillaume Berche
Eloquant, ZA Le malvaisin
38240 Le Versoud, France
guillaume.berche@eloquant.com
+33 04 76 77 46 92
------------------------------------------