| VoiceXML 2.1 Development Guide | Home | Frameset Home |
| id | Data Type: ID | Default: Required |
| The id attribute specifies the rulename of the grammar. Rulenames must be unique within the file itself, and may not contain hyphens, colons, or periods. | ||
| scope | Data Type: (private|public) | Default: private |
| The scope attribute denotes whether or not the XML grammar is a private (local), rule, or if it is a public rule, which is used for an external rule reference. | ||
| <?xml version="1.0" encoding="UTF-8"?> <vxml version = "2.1"> <meta name="author" content="Matthew Henry"/> <meta name="copyright" content="2005 voxeo corporation"/> <meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/> <form id="F1"> <field name="F_1"> <prompt> Which is it better to be, a Call XML snob, or a Voice XML snob? </prompt> <grammar src="MyRuleGrammar.xml" type="application/grammar-xml"/> <filled> <prompt> Thats right. Voice XML rocks the hizzau! </prompt> </filled> </field> </form> </vxml> |
| <?xml version= "1.0"?> <grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" root = "MYRULE"> <rule id="MYRULE" scope="public"> <one-of> <item> voice x m l snob </item> </one-of> </rule> <!-- Hey, what did you expect? We *all* know which one is King.--> </grammar> |
| ANNOTATIONS: EXISTING POSTS |
moshe
|
|
| It goes without saying that this element has plenty of parents and children, as shown in the example. The lack of parents and children is a documentation error. | |
MattHenry
|
|
| The inclusion of these parent/child relationships was flagged in our DB for the VWS platform, but was overlooked within the Motorola docset. This has been corrected in our most recent Build, and will be posted to the 'live' content shortly.
~Matt |
| login |