- From: Puneet Sharma <puneetbs@huawei.com>
- Date: Thu, 02 Apr 2009 17:10:10 +0530
- To: www-voice@w3.org
- Cc: ranjit@hauwei.com
- Message-id: <000601c9b387$c81ab480$2201120a@china.huawei.com>
Hi, I feel there is an ambiguity in behavior of <choice> element. Consider case, where while recognition in a <form> , <menu scope="document">'s choice is matched. Then, I feel there is an ambiguity about scope of current execution of <choice> element. Specification does not clarify either it should be <menu> or <form>. Please refer below section of Vxml 2.0 : http://www.w3.org/TR/voicexml20/#dmlAFIA Appendix C - Form Interpretation Algorithm // // Process Phase: process the resulting utterance or event. // Assign the utterance and other information about the last recognition to application.lastresult$. // Must have an utterance if ( the utterance matched a grammar belonging to a <link> ) If the link specifies an "next" or "expr" attribute, transition to that location. Else if the link specifies an "event" or "eventexpr" attribute, generate that event. else if ( the utterance matched a grammar belonging to a <choice> ) If the choice specifies an "next" or "expr" attribute, transition to that location. Else if the choice specifies an "event" or "eventexpr" attribute, generate that event. else if ( the utterance matched a grammar from outside the current <form> or <menu> ) { Transition to that <form> or <menu>, carrying the utterance to the new FIA. } From this I understand that, if <choice> is matched from outside of <menu> then execute <choice> without any transition to that <menu>, so it is not clear that in which scope event thrown by such <choice> element should be handled. If it is <menu> then above specified algorithm does not allow that because that grammar is from <choice>, and if it is <form> then <form> will be executing <filled> from some other scope which is not right to do. Please also clarify below points also considering above scenarios: Specification: A menu can be viewed as a form containing a single field whose grammar and whose <filled> action are constructed from the <choice> elements. This statement says that, <choice> is treated as <menu>/<form> level grammar and but <menu> can specify scope attribute which means <choice> can be matched at global scope. Regards Puneet
Received on Monday, 6 April 2009 09:26:05 UTC