[tei-council] respond by 1 May: summary of and path forward for "no longer recommended" and "deprecated" practices

Martin Holmes mholmes at uvic.ca
Thu Jun 20 11:31:21 EDT 2013


Tried this in Oxygen and it works. :-)

On 13-06-20 06:47 AM, James Cummings wrote:
> 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
>

-- 
Martin Holmes
University of Victoria Humanities Computing and Media Centre
(mholmes at uvic.ca)


More information about the tei-council mailing list