[tei-council] respond by 1 May: summary of and path forward for "no longer recommended" and "deprecated" practices
James Cummings
James.Cummings at it.ox.ac.uk
Thu Jun 20 09:47:33 EDT 2013
On 20/06/13 13:35, Sebastian Rahtz wrote:
> you can add another Schematron which fires on D-Day minus 30.
>
> its in att.deprecated.xml
Just double checking before I add it... am I doing the date
arithmetic correctly there?
<sch:assert test="(@validUntil cast as xs:date -
current-date()) lt (30*xs:dayTimeDuration('P1D'))">
<!-- same warning below -->
<sch:value-of select="if (@ident) then concat('The ', at ident) else
concat('This ',local-name(.),' of
',ancestor::tei:*[@ident][1]/@ident)"/> construct is outdated (as
of <sch:value-of select="@validUntil"/>); ODD processors may
ignore it, and it should probably be removed
</sch:assert>
I think that (30*xs:dayTimeDuration('P1D')) should do what I want?
-james
--
Dr James Cummings, James.Cummings at it.ox.ac.uk
Academic IT Services, University of Oxford
More information about the tei-council
mailing list