- From: <Mitchell.Allen@dictaphone.com>
- Date: Thu, 31 Jul 2003 15:19:45 -0400
- To: www-voice@w3.org
Section 3.2 Scoping of Rule Definitions states: "One exception is that a rule declared as the root may be referenced externally even if it is a private rule." Questions: What if you are just working with one grammar? Can/should a private root rule be activated? Should a root rule always be treated as public? I'm most interested in the second question. Thanks. Example 1: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN" "http://www.w3.org/TR/speech-grammar/grammar.dtd"> <grammar mode="voice" root="myroot" version="1.0" xmlns ="http://www.w3.org/2001/06/grammar"> <rule id="myroot">open window</rule> </grammar> Example 2: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN" "http://www.w3.org/TR/speech-grammar/grammar.dtd"> <grammar mode="voice" root="myroot" version="1.0" xmlns ="http://www.w3.org/2001/06/grammar"> <rule id="myroot" scope="private">open window</rule> </grammar> -- Mitch Allen, x13625, Dictaphone Burlington SQA ******************************************************************************************** This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message along with any attachments, from your computer.Thank you. ********************************************************************************************
Received on Thursday, 31 July 2003 15:20:06 UTC