[tei-council] new validUntil=

Gabriel Bodard gabriel.bodard at kcl.ac.uk
Fri May 17 05:45:51 EDT 2013


Can't you just compare @validUntil to current-date()? I haven't tested, 
but if XSLT2 doesn't allow a simple "@validUntil > current-date()" 
test, then it's a pretty poor show...

On 2013-05-16 22:10, Sebastian Rahtz wrote:
> 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
>

-- 
Dr Gabriel BODARD
Researcher in Digital Epigraphy

Digital Humanities
King's College London
Boris Karloff Building
26-29 Drury Lane
London WC2B 5RL

T: +44 (0)20 7848 1388
E: gabriel.bodard at kcl.ac.uk

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



More information about the tei-council mailing list