<xref>, <xptr> [070]

Abstract

Details of the WWP’s use of <xref> and <xptr/>

Discussion

The WWP uses <xptr/> and <xref> as specified in TEI to link to a particular location in another document; <xptr> is an empty element marking a spot in the source document; <xref> contains the text which implies the pointing.

The WWP uses <ptr/> and <ref> to link to a specific location in the current document. In other respects they work in the same way as <xptr/> and <xref>.

However, when specifying a location in a WWP document, only the ID keyword will be used (instead of the more complex parts of the location ladder offered by TEI). When linking to documents outside of the WWP’s control, we will use the location ladders as necessary.

If a link needs to be made to a location in a WWP document which does not already have an ID attribute, this attribute must be added before the link can be made. If the link is to an entire existing element, or to a feature which could be encoded as an element, the ID attribute should be added to that element. If the link is to a range of text spanning several elements, IDs should be added to the boundary elements for the from= and to= attributes of <[x]ptr> or <[x]ref> to point to. If the link is to some random selection from within an element (a selection which does not lend itself to treatment as a separate element), the pointer should point to the ID of the element containing the selection.

list all entries

search

about

wwp