<when>

<when> indicates a point in time either relative to other elements in the same timeline tag, or absolutely. 16.5.2 Placing Synchronous Events in Time
組件linking — 16 Linking, Segmentation, and Alignment
屬性
absolutesupplies an absolute value for the time.
狀態 可應用時必備的
資料類型
data.temporal.w3c
Times may be given in standard form, as specified in the Encoding Declarations section of the header.
Required for the element designated as the value of the origin attribute in the timeline tag.
unitspecifies the unit of time in which the interval value is expressed, if this is not inherited from the parent <timeline>.
狀態 可應用時必備的
資料類型
data.enumerated
被推薦的值包含:
d
(days)
h
(hours)
min
(minutes)
s
(seconds)
ms
(milliseconds)
intervalspecifies the numeric portion of a time interval
狀態 可應用時必備的
資料類型
xsd:float { minExclusive = "0" } | "unknown"
a positive number, or the special value unknown.
The value unknown indicates uncertainty about the interval.
sinceidentifies the reference point for determining the time of the current <when> element, which is obtained by adding the interval to the time of the reference point.
狀態 可應用時必備的
資料類型
data.pointer
Should point to another <when> element in the same <timeline>.
If this attribute is omitted, and the absolute attribute is not specified, then the reference point is understood to be the origin of the enclosing <timeline> tag.
屬於timeline
可包含空白元素
宣告
element when
{
   att.global.attributes,
   attribute absolute { data.temporal.w3c }?,
   attribute unit { "d" | "h" | "min" | "s" | "ms" | xsd:Name }?,
   attribute interval { xsd:float { minExclusive = "0" } | "unknown" }?,
   attribute since { data.pointer }?,
   empty
}
例子
<when xml:id="TW3interval="20since="#w2"/>
On this element, the global xml:id attribute must be supplied to specify an identifier for this point in time. The value used may be chosen freely provided that it is unique within the document and is a syntactically valid name. There is no requirement for values containing numbers to be in sequence.