Previous
Up
Next
5 Attributes for linking elements

5 Attributes for linking elements

All TEI linking elements carry a number of general purpose attributes, listed here for completeness:

The targType attribute may be used to add an additional semantic constraint to the linkage, by requiring that the GI of the elements indicated match the list of names supplied. attribute can be used to specify that the element pointed to must be of a particular type, as in the following example:

this is discussed in <xref from=id(dspec) targType='div1 p'>the section on links</ref>
This reference should fail if the element with identifier dspec is not either a <div1> or a <p>. This constraint is not enforceable by SGML parsers, of course, but a TEI-aware application may choose to enforce it.

The type attribute can be used to categorize the link represented by the pointer in any convenient way. The resp and crDate attributes may also be used to represent the person or agency responsible for making the link, and its date of creation, as in the following example:

    ...
   this is discussed in
   <xref type=navigator
    resp=auto crdate=950521 
    from=id(dspec) 
    targtype='div1 div2'>
   the section on links</xref>

The evaluate attribute can take values all, one or none. Its purpose is to specify the intended significance of a link which points to a pointer. With evaluate=all, if the element pointed at is itself a pointer, then the target of that pointer will be taken, and so on, until an element is found which is not a pointer. With evaluate=one, this evaluation process is carried out once only; with evaluate=none, it is not carried out at all.


Previous
Up
Next