[tei-council] tricky situations for using @validUntil

Martin Holmes mholmes at uvic.ca
Fri Dec 13 16:41:41 EST 2013


I like this a lot. But couldn't we just use a date check in the 
constraint itself, in XPath, rather than having to add constraintSpec to 
att.datable?

On 13-12-13 11:32 AM, Syd Bauman wrote:
> Another possible solution.
>
> 4. Rely on <constraintSpec> more
> -- ---- -- ---------------- ----
> This suggestion is to use <constraintSpec> to generate warnings for
> users. We could still use @validUntil to flag stuff for ourselves.
> But rather than trying to generate generic messages from a construct
> that has @validUntil, we would expect the Council members deprecating
> something to write individualized <constraintSpec>s for it. That way
> the error messages users get can be tailored. E.g. "use
> <listRelation> instead" or "see FR 1234"[1].
>
> To support generation of messages at the right "time" on build, we
> would add <constraintSpec> to att.datable. At build time, a
> <constraintSpec> that was not "in date" would be ignored.
>
> So:
>
>    <elementSpec ident="relationGrp">
>      ...
>      <constraintSpec to="2014-12-01" scheme...>
>        ... WARN: The 'relationGrp' element will not be available in
>        TEI releases after 2014-12-01; TEI recommends the use of
>        'listRelation' instead ...
>      </>
>      <constraintSpec from="2014-12-02" scheme...>
>        ... ERROR: The 'relationGrp' element is no longer valid TEI;
>        use 'listRelation' instead ...
>     </>
>    </>
>

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


More information about the tei-council mailing list