data.temporal.iso

data.temporal.iso 定義該系列表示時間的屬性值,例如日期、時間或兩者的組合,需符合國際標準Data elements and interchange formats – Information interchange – Representation of dates and times
組件tei — 1 The TEI Infrastructure
屬於
分類:
宣告

<rng:define name="data.temporal.iso">
<rng:choice>
<!-- W3C -->
 <rng:data type="date"/>
 <rng:data type="gYear"/>
 <rng:data type="gMonth"/>
 <rng:data type="gDay"/>
 <rng:data type="gYearMonth"/>
 <rng:data type="gMonthDay"/>
 <rng:data type="time"/>
 <rng:data type="dateTime"/>
<!-- time w/ reduced precision <rng:data type="token"> <rng:param name="pattern">(-?[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T)?([01][0-9]|2[0-3])(:[0-5][0-9])?(Z|[+\-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?</rng:param> </rng:data> -->
<!-- week date <rng:data type="token"> <rng:param name="pattern">[0-9]{4}-W[0-9][0-9]?(-[1-7])?</rng:param> </rng:data> -->
<!-- any ISO 8601 format (and a lot more) -->
 <rng:data type="token">
  <rng:param name="pattern">[0-9.,DHMPRSTWYZ/:+\-]+</rng:param>
 </rng:data>
</rng:choice>
</rng:define>
data.temporal.iso =
   xsd:date
 | xsd:gYear
 | xsd:gMonth
 | xsd:gDay
 | xsd:gYearMonth
 | xsd:gMonthDay
 | xsd:time
 | xsd:dateTime
 | token { pattern = "[0-9.,DHMPRSTWYZ/:+\-]+" }