W3C home > Mailing lists > Public > www-voice@w3.org > April to June 2006

Grammar activation

From: harbhanu <harbhanu@huawei.com>
Date: Tue, 18 Apr 2006 11:31:39 +0530
To: www-voice@w3.org
Message-id: <002c01c662ad$8f59a940$7905120a@china.huawei.com>
Hi,

I have one doubt regarding grammar processing for dialog in Vxml 2.0.

 

Say I have two document "root.vxml" (which is the root of my application)
and "leaf.vxml."

And my application starts with "leaf.vxml."

 

Now, if there is a document level grammar defined in a dialog of
"root.vxml", then will that grammar be active when I start executing the 

First dialog of leaf.vxml ??

 

Since, no dialog from "root.vxml" is visited yet.so should that grammar be
active.

 

Also, that grammar is defined as document level in a root document, so its
an application scoped grammar...and thus it must be active throughout the
application..

 

root.vxml :-

<form id="id1">

<grammar scope="document" src=".."/>

</form>

 

leaf.vxml

<vxml. application="root.vxml".>

<form id="test">

</form>

</vxml>

 

Now, in case root is the first document visited in the application, then
that grammar specified in form 'Id1' will be active when I am executing in
leaf.

But am not sure about the behavior in case leaf.vxml is visited first.

 

Waiting for comments .thanks in advance!!

 

Regards,

Harbhanu

 
Received on Tuesday, 18 April 2006 08:56:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:49:02 GMT