<when>

<when> 同じ要素timeline中にある他の要素に対応する時点、または絶対 的な時点を示す。 [17.4.2 Placing Synchronous Events in Time]
モジュール linking — Linking, Segmentation, and Alignment
属性
absolute⚓︎ 当該時点の、絶対時間を示す。
状態 任意
データ型 teidata.temporal.w3c
解説

要素timelineにある属性originの値で指定され た要素で必要となる。

<a href="https://translate.tei-c.org/translate.html?edit=when.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a>
unit⚓︎ 親要素<timeLine>から継承されない場合、属性 intervalで示される時間の単位を示す。
状態 任意
データ型 teidata.enumerated
提案する値は以下の通り:
d
(days)
h
(hours)
min
(minutes)
s
(seconds)
ms
(milliseconds)
interval⚓︎ 時間幅を数値で示す。
状態 任意
データ型 teidata.interval
since⚓︎ 当該要素whenの時間となる参照時点を示す。参照時点に時間 幅を足すことで得られる。
状態 任意
データ型 teidata.pointer
解説

当該属性が省略され、かつ属性absoluteが指定されてい ない場合、参照時点は、要素timelineの始点と解釈される。

上位
linking: timeline
下位 空要素
解説

当該要素には、時点の識別子となるグローバル属性xml:idは 必ず付与される。この値は、当該文書中でユニークであり、統語上妥当で ある名前であれば、自由に選んでよい。一連の数字を含むといった制約は ない。

<when xml:id="TW3interval="20since="#w2"/>
Content model
<content>
 <empty/>
</content>
宣言
<rng:element name="when">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:optional>
  <rng:attribute name="absolute">
   <rng:ref name="teidata.temporal.w3c"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="unit">
   <rng:choice>
    <rng:value>d</rng:value>
    <rng:value>h</rng:value>
    <rng:value>min</rng:value>
    <rng:value>s</rng:value>
    <rng:value>ms</rng:value>
    <rng:ref name="teidata.enumerated"/>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="interval">
   <rng:ref name="teidata.interval"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="since">
   <rng:ref name="teidata.pointer"/>
  </rng:attribute>
 </rng:optional>
 <rng:empty/>
</rng:element>
element when
{
   att.global.attributes,
   att.global.analytic.attributes,
   att.global.change.attributes,
   att.global.facs.attributes,
   att.global.linking.attributes,
   att.global.rendition.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   attribute absolute { teidata.temporal.w3c }?,
   attribute unit { "d" | "h" | "min" | "s" | "ms" | teidata.enumerated }?,
   attribute interval { teidata.interval }?,
   attribute since { teidata.pointer }?,
   empty
}