W3C home > Mailing lists > Public > www-voice@w3.org > July to September 2007

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

From: Sébastien Bratières <sebastien.bratieres@voice-insight.com>
Date: Fri, 21 Sep 2007 17:37:00 +0200
Message-ID: <46F3E51C.5050504@voice-insight.com>
To: www-voice@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 24 September 2007 04:44:10 GMT