W3C home > Mailing lists > Public > www-smil@w3.org > October to December 2005

Re: SMIL21: repeat vs repeatEvent

From: Daniel Weck <daniel.weck@gmail.com>
Date: Wed, 7 Dec 2005 14:42:24 +0000
Message-Id: <0bb415d0ead87d69f56e167e18f0c61f@free.fr>
Cc: derhoermi@gmx.net
To: www-smil@w3.org

I spent some time identifying places in the W3C documents with  
references to "repeat" and "repeatEvent", and it is indeed inconsistent  
(or at least leads to confusion). You'll find the links below.

- There is an error in the recommendation, one of the examples for the  
syntax of Event-values is illegal [5]:
[ begin="x.repeat"        : Begin each time a repeat event is observed  
on "x" ]
Indeed, the list of legal "Event-symbol" only includes "repeatEvent"  
This part of the specification needs to be fixed.

Note: [ begin="x.repeat(1)" ] is allowed, but this is part of a  
different grammar ("Repeat-values") [4]. The "(iteration_number)" part  
is mandatory by the way.

Now, "foo.repeat(1)" is semantically equivalent to "foo.repeatEvent".  
The first notation allows to access specific iteration numbers (>=1),  
whereas the second notation doesn't filter the repeat events (all of  
them are captured when raised).

On the other hand:
- [ begin="foo.end+1s" ] differs from [ begin="foo.endEvent+1s" ]  
because the first instance describes a synchronization-arc using a  
*syncbase value*, whereas the second instance shows the use of the  
*event model* (DOM-compatible).
=> In principle, the 2 notations are semantically different, and the  
"observed" begin may potentially be different. In practice (from the  
user-agent standpoint), "end" can potentially be "calculated", whereas  
"endEvent" can only be "raised".

The same can't be said for [ begin="foo.repeat(1)+1s" ] and [  
begin="foo.repeatEvent+1s" ], because they are semantically equivalent.

Therefore, for consistency purposes, a good improvement to the  
recommendation would be to rename ".repeat" to ".repeatEvent", because  
it is not a syncbase value: it is an event value.


-[1] DOM events and event model

-[2] Supported event symbols in the default profile

-[3] Syntax for syncbase values

-[4] Syntax for repeat values

-[5] Syntax for event values

and additionally:

-[6] Repeat in Smil animation

-[7] the "repeat" attribute (deprecated in favor of "repeatDur" and  

Kind regards, Daniel WECK.
Received on Thursday, 8 December 2005 04:05:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:25 UTC