att.datable.w3c
att.datable.w3c provides attributes for normalization of elements that contain datable events conforming
to the W3C XML Schema Part 2: Datatypes Second Edition. [3.6.4. Dates and Times 13.4. Dates]
Module | tei | ||||||||||||||||||||||||||||||||||||
Members | att.datable [affiliation author birth change correspAction creation death docDate editor faith floruit idno langKnown location name nationality objectName occupation orgName origin persName placeName residence resp settlement title] date time | ||||||||||||||||||||||||||||||||||||
Attributes | Attributes
|
||||||||||||||||||||||||||||||||||||
Schematron |
<sch:rule context="tei:*[@when]"> <sch:report test="@notBefore|@notAfter|@from|@to" role="nonfatal">The @when attribute cannot be used with any other att.datable.w3c attributes.</sch:report> </sch:rule> <sch:rule context="tei:*[@from]"> <sch:report test="@notBefore" role="nonfatal">The @from and @notBefore attributes cannot be used together.</sch:report> </sch:rule> <sch:rule context="tei:*[@to]"> <sch:report test="@notAfter" role="nonfatal">The @to and @notAfter attributes cannot be used together.</sch:report> </sch:rule> |
||||||||||||||||||||||||||||||||||||
Examples |
<date from="1863-05-28" to="1863-06-01">28 May through 1 June 1863</date> |
||||||||||||||||||||||||||||||||||||
Note |
The value of these attributes should be a normalized representation of the date, time,
or combined date & time intended, in any of the standard formats specified by XML Schema Part 2: Datatypes Second Edition, using the Gregorian calendar.
The most commonly-encountered format for the date portion of a temporal attribute
is
yyyy-mm-dd, but yyyy, --mm, ---dd, yyyy-mm, or --mm-ddmay also be used. For the time part, the form hh:mm:ssis used. Note that this format does not currently permit use of the value 0000 to represent the year 1 BCE; instead the value -0001 should be used.
|
||||||||||||||||||||||||||||||||||||
Source | Github
<classSpec module="tei" type="atts" ident="att.datable.w3c" xml:id="DATABLEW3C"> <desc>provides attributes for normalization of elements that contain datable events conforming to the W3C <ref target="#XSD2">XML Schema Part 2: Datatypes Second Edition</ref>.</desc> <attList> <attDef ident="when" usage="opt"> <desc>supplies the value of the date or time in a standard form, e.g. yyyy-mm-dd.</desc> <datatype> <dataRef key="teidata.temporal.w3c"/> </datatype> </attDef> <attDef ident="notBefore" usage="opt"> <desc>specifies the earliest possible date for the event in standard form, e.g. yyyy-mm-dd.</desc> <datatype> <dataRef key="teidata.temporal.w3c"/> </datatype> </attDef> <attDef ident="notAfter" usage="opt"> <desc>specifies the latest possible date for the event in standard form, e.g. yyyy-mm-dd.</desc> <datatype> <dataRef key="teidata.temporal.w3c"/> </datatype> </attDef> <attDef ident="from" usage="opt"> <desc>indicates the starting point of the period in standard form, e.g. yyyy-mm-dd.</desc> <datatype> <dataRef key="teidata.temporal.w3c"/> </datatype> </attDef> <attDef ident="to" usage="opt"> <desc>indicates the ending point of the period in standard form, e.g. yyyy-mm-dd.</desc> <datatype> <dataRef key="teidata.temporal.w3c"/> </datatype> </attDef> </attList> </classSpec> |