[tei-council] new validUntil=

Sebastian Rahtz sebastian.rahtz at it.ox.ac.uk
Thu May 16 17:10:44 EDT 2013


re testing, we write the XSLT to compare the validUntil date to a
variable called $todaysdate. That can default to the current date, but for
the purposes of testing, we pass in a fixed date (ie 1st Jan 1970), 
and have an ODD which has some values for @validUntil related to
that fixed date.

 <xsl:param name="today"/>
 <xsl:variable name="todaysdate" select="if ($today = '') then format-dateTime(current-dateTime(),'[Y]-[M02]-[D02]') else $today}"/>

(untested :-})
--
Sebastian Rahtz      
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431



More information about the tei-council mailing list