<docDate>

<docDate> (document date) contains the date of a document, as given (usually) on a title page. 4.6 Title Pages
Module textstructure — 4 Default Text Structure
In addition to global attributes In addition to global attributes
when gives the value of the date in standard form, i.e. YYYY-MM-DD.
Status Optional
Datatype

<rng:ref name="data.temporal.w3c"/>
data.temporal.w3c
Values a date in one of the formats specified in XML Schema Part 2: Datatypes Second Edition
Note
For simple dates, the when attribute should give the Gregorian or proleptic Gregorian date in the form (YYYY-MM-DD) specified by XML Schema Part 2.
Used by
May contain
Declaration

<rng:element name="docDate">
 <rng:ref name="att.global.attributes"/>
 <rng:optional>
  <rng:attribute name="when">
   <rng:ref name="data.temporal.w3c"/>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.phraseSeq"/>
</rng:element>
element docDate
{
   att.global.attributes,
   attribute when { data.temporal.w3c }?,
   macro.phraseSeq
}
Example
<docImprint>Oxford, Clarendon Press, <docDate>1987</docDate>
</docImprint>
Note
Cf. the general date element in the core tag set. This specialized element is provided for convenience in marking and processing the date of the documents, since it is likely to require specialized handling for many applications.