[tei-council] Dates and calendars

Gabriel Bodard gabriel.bodard at kcl.ac.uk
Mon Aug 13 06:16:01 EDT 2012


The @calendar attribute on datable elements is defined as "indicat[ing] 
the system or calendar to which the date represented by the _content of 
this element_ belongs"; in other words the markup:

<date when="1424-02" calendar="#julian"/>

Means: "A date in the Julian calendar which corresponds to February 1424 
CE in the proleptic Gregorian calendar." If you want to encode a 
normalized version of the Julian date, the only legal way to do so is to 
use @when-custom and @datingMethod.

(This is exactly the use-case for which we introduced the whole 
http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.datable.custom.html 
class, of which Lou so disapproves. ;-) )

G

On 2012-08-10 22:07, Martin Holmes wrote:
> Hi all,
>
> I've just been working on date/calendar issues, and I've come up against
> what looks like rather an anomaly. Our default values for @when etc. are
> this:
>
> data.temporal.w3c =
>      xsd:date
>    | xsd:gYear
>    | xsd:gMonth
>    | xsd:gDay
>    | xsd:gYearMonth
>    | xsd:gMonthDay
>    | xsd:time
>    | xsd:dateTime
>
> So I went to the W3C site to find out about calendar issues, and I
> discovered this:
>
> "The ·primitive· datatypes duration, dateTime, time, date, gYearMonth,
> gMonthDay, gDay, gMonth and gYear use lexical formats inspired by [ISO
> 8601]... [ISO 8601] "specifies the representation of dates in the
> proleptic Gregorian calendar and times and representations of periods of
> time". The proleptic Gregorian calendar includes dates prior to 1582
> (the year it came into use as an ecclesiastical calendar).
>
> [...]
>
> "gYearMonth represents a specific gregorian month in a specific
> gregorian year."
>
> [...]
>
> "gYear represents a gregorian calendar year."
>
> <http://www.w3.org/TR/xmlschema-2/#date>
>
> So what on earth are we doing when we encode something like this?
>
> <date when="1424-02" calendar="#julian"/>
>
> The XSD specification for @when insists that it's Gregorian, yet our
> @calendar says something different.
>
> This is problematic, surely?
>
> Cheers,
> Martin
>

-- 
Dr Gabriel BODARD
(Research Associate in Digital Epigraphy)

Department of Digital Humanities
King's College London
26-29 Drury Lane
London WC2B 5RL

Email: gabriel.bodard at kcl.ac.uk
Tel: +44 (0)20 7848 1388
Fax: +44 (0)20 7848 2980

http://www.digitalclassicist.org/
http://www.currentepigraphy.org/


More information about the tei-council mailing list