3.46. rule

Element typerule
Attributesid | scope
Parentsgrammar
Childrenexample | item | one-of | ruleref | tag | token
DescriptionDefines a grammar rule by associating a rule expansion with an identifier.

DTD

<!ELEMENT rule (%rule-expansion; | example | tag)* >
<!ATTLIST rule
  id    ID                 #REQUIRED
  scope (private | public) "private" >

Language model

Attributes

id : ID

A unique identifier for this rule. It is used to refer to this rule from ruleref or grammar elements.

scope : (public | private) = private

Indicates the visibility of this rule. If this attribute is set to private, this rule is only visible within the grammar element in which it is defined. ...

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.