VoiceXML 2.1 Development GuideHome  |  Frameset Home


<token>  element

The token element defines a word or phrases that may be spoken by the caller in an XML grammar. A token may contain whitespace, (if properly quoted), and may contain uppercase characters as well. Of note is the fact that any token containing whitespace is further broken into individual words by the voice browser. GrXML also allows for capital letters in a token. However, for dictionary lookups and the auto-pronunciation to work, it will be converted to lowercase as part of the compilation process. Hence, separate pronunciations for the same word written with different cases is disallowed.



usage
<token lang-list="NMTOKEN">


attributes
lang-listData Type: NMTOKENDefault: Optional
The lang-list attribute specifies the language used in the grammar token, conforming to RFC 1766.



shadow variables
none


parents
<item> <rule>


children
none


code samples
none


additional links
W3C SRGS 1.0 Specification


  ANNOTATIONS: EXISTING POSTS
safarishane
5/10/2007 7:25 PM (EDT)
Can we get some example code showing usage for token?

Thanks!
voxeojeff
5/10/2007 9:09 PM (EDT)
Hello Shane,

I think you'll find the information you're looking for at the following link:

http://docs.voxeo.com/voicexml/2.0/t_15.htm#start

Here you'll find our tutorial on initiating outbound vxml applications via HTTP.  You'll also find some juicy source code that you can play around with if you like.

Hope this helps!

Cheers,

Jeff Menkel
Voxeo Corporation

login



© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site