3.14. example

Element typeexample
AttributesNone.
Parentsrule
ChildrenPCDATA
DescriptionPart of a grammar; provides an example of input that matches this element's parent rule. The example element serves as a structured comment and can be used to generate documentation or intelligent help messages.

DTD

<!ELEMENT example (#PCDATA) >

Language model

Attributes

None.

Children

PCDATA

The example of a given rule.

Examples

Example 3-16. An example indicating "blue" and "burgundy" as responses
 <?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form> <field name="favColor"> <prompt>What's your favorite color?</prompt> <grammar xml:lang="en-US" ...

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.