<item>

Defines a valid utterance match within an XML grammar.

Syntax

<item
    repeat = "integer"
    repeat-prob = "CDATA"
    weight = "CDATA"
/>

Attributes

None of the <item> attributes are required.

Attribute

Data Type

Default

Description

repeat

integer

NA

Integer range that specifies how many times the item can be repeated.

repeat-prob

CDATA

NA

Currently not supported.

weight

CDATA

NA

Probability weighting of this item.

Parents

<item>, <one-of>, <rule>

Children

<item>, <one-of>, <ruleref>, <tag>

Example

<?xml version= "1.0"?> 
<grammar xmlns="http://www.w3.org/2001/06/grammar" 
    xml:lang="en-GB" root="ruleid"> 
    <rule id="ruleid" scope="public"> 
        <one-of> 
            <item>
                irish 
                <tag><fieldone "irish"></tag> 
            </item> 
            <item weight="0.1">
                english
                <tag><fieldone "english"></tag> 
            </item> 
            <item weight="0.9">

                french
                <tag><fieldone "french"></tag> 
            </item> 
        </one-of> 
    </rule> 
</grammar>