This chapter is from the book
3.55 token
Element type |
token |
Attributes |
lexicon | xml:lang |
Parents |
count | item | rule |
Children |
PCDATA |
Description |
A token encapsulates one or more words. These words are typically written using plain text. |
DTD
<!ELEMENT token (#PCDATA) > <!ATTLIST token lexicon CDATA #IMPLIED xml:lang NMTOKEN #IMPLIED >
Language model
Attributes
-
lexicon : CDATA
Specifies a lexicon document to be used to represent this token phonetically.
-
xml:lang : NMTOKEN
Specifies the spoken language used with this element - for example, en-US for US English.
Children
-
PCDATA
The word or words that comprise this token.
Examples
Example 3-66 A token definition within a grammar
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form id="test"> <field name="city"> <prompt>Which city?</prompt> <grammar xml:lang="en-US" version="1.0" root="city"> <rule id="city" scope="public"> <one-of> <item><token>New York City</token></item> <item><token>Los Angeles</token></item> </one-of> </rule> </grammar> <filled> <prompt> You said <value expr="city"/>. </prompt> </filled> </field> </form> </vxml>