Comments in GRXML Documents

  Microsoft Speech Technologies Homepage

Can be used to specify the description of a rule for display in the Microsoft Speech Application SDK (SASDK) Speech Grammar Editor Rule Browser.

The SASDK Speech Grammar Editor uses the content of an HTML comment that immediately precedes a rule element as the display text for the Description field that is associated with that rule in the Rule Browser. Comments are enclosed between the string sequences <!-- and -->.

<!-- Grammar_rule_description -->

Attributes

  • None

Example

<!-- Language ID = United States English -->
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
 xml:lang="en-US" tag-format="semantics-ms/1.0">
<!-- This rule recognizes the color names "blue", "indigo", "green", and "aqua", and returns a string value. -->
  <rule id="BlueGreen" scope="public">
      <one-of>
          <item> <ruleref uri="#Blue"/> </ITEM>
          <item> <ruleref uri="#Green"/> </ITEM>
      </one-of>
      <tag> $ = $$ </tag>
  </rule>
</grammar>

See Also

Grammar XML | rule Element