Form grammars can specify one of the scopes shown in Table 1.
Scope | Description | Implementation details |
---|---|---|
dialog | The grammar is accessible only within the current <form> or <menu> element. | Supported as documented in VoiceXML 2.0. |
document | The grammar is accessible from any dialog within the current document. If the document is the application root document, the grammar is accessible to all documents that use that root document. | Supported as documented in VoiceXML 2.0.
You can improve performance by using a combination of fetching and caching to prime the cache with all referenced grammar files before your application starts, as described in Fetching and caching resources for improved performance. |
Field, link, and menu choice grammars cannot specify a scope: