SRGS repeat attribute: for rule expansions or just for items?

Hello,
There seems to be a slight inconsistency in the use of the repeat 
operator between the XML form, and the ABNF form.

The XML Schema definition of SRGS restricts the repeat attribute to be 
used exclusively on the <item> element, since the only occurrence of
<xsd:attributeGroup ref="Repeat.attrib"/>
is in the definition of the <item> element's attributes.

However, the ABNF definition of SRGS allows any rule expansion to have a 
repeat operator:

sequenceElement ::=
    subexpansion | subexpansion repeatOperator

subexpansion    ::=
    Token LanguageAttachment?
    | ruleRef 
    | Tag
    | '(' ')'
    | '(' ruleExpansion ')' LanguageAttachment?
    | '[' ruleExpansion ']' LanguageAttachment?

Finally, the text of the specification regarding repeats, 
http://www.w3.org/TR/speech-grammar/#S2.5, specifies:
--- Operators are provided that define a legal rule expansion as being 
another sub-expansion that is optional, that is repeated zero or more 
times, that is repeated one or more times, or that is repeated some 
range of times. ---
This means that the operator under discussion applies to a 
sub-expansion. "Sub-expansion" is not further defined in the 
specification, but I would interpret is as meaning any expansion, that 
is also a ruleref for example.

Thus both the specification text and the ABNF authorize repeat's of any 
rule expansion; however the XML form does not authorize it and restricts 
it to <item>'s.

Is this intentional? Could you comment on this?

Thank you.

Sébastien Bratières

Received on Monday, 24 September 2007 04:44:00 UTC