PHP Classes

File: grammar_test3_xml

Recommend this page to a friend!
  Classes of Mark Headd  >  PHP Grammar  >  grammar_test3_xml  >  Download  
File: grammar_test3_xml
Role: Sample output
Content type: text/plain
Description: Complex grammar in XML format
Class: PHP Grammar
Create speech recognition grammar W3C XML files
Author: By
Last change:
Date: 18 years ago
Size: 1,222 bytes
 

Contents

Class file image Download
<?xml version="1.0" ?> <!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN" "http://www.w3.org/TR/speech-grammar/grammar.dtd"> <grammar version="1.0" xml:lang="en-US" xmlns="http://www.w3.org/2001/06/grammar" root="mainRule"> <rule id="mainRule" scope="public"> <one-of> <item><ruleref uri="#rule_0"/> <tag>department="HR"</tag> </item> <item><ruleref uri="#rule_1"/> <tag>department="Sales"</tag> </item> <item><ruleref uri="#rule_2"/> <tag>department="Marketing"</tag> </item> <item><ruleref uri="#rule_3"/> <tag>department="Security"</tag> </item> </one-of> </rule> <rule id="rule_0" scope="private"> <one-of> <item>Mary</item> <item>Paul</item> <item>Jake</item> <item>Phil</item> <item>Elayne</item> <item>Dorothy</item> <item>Rita</item> </one-of> </rule> <rule id="rule_1" scope="private"> <one-of> <item>Skip</item> <item>Helen</item> <item>Renee</item> <item>Vito</item> </one-of> </rule> <rule id="rule_2" scope="private"> <one-of> <item>Mark</item> <item>Greg</item> <item>Stacy</item> <item>Lynn</item> </one-of> </rule> <rule id="rule_3" scope="private"> <one-of> <item>Chuck</item> <item>Scott</item> <item>Mike</item> </one-of> </rule> </grammar>