wiki:schema/tei-pointers

Version 1 (modified by jwillenborg, 13 years ago) (diff)

--

Simple pointers and links: within a document by Id attribute

<ptr> a pointer to another location in the current document in terms of one or more identifiable elements.

<ref> a reference to another location in the current document, in terms of one or more identifiable elements, possibly modified by additional text or comment.

<link> defines an association or hypertextual link among elements or passages, of some type not more precisely specifiable by other elements. (auch zwischen verschiedenen Dokumenten möglich) Beispiel: <note id="n3.284" type="imitation" place="foot" anchored="no">

<ref id="r3.284" rend="sc"> <!-- ... --> </ref>

</note> <link targType="ref l" targOrder="Y" targets="r3.284 l3.284"/>

<linkGrp> Linkgruppen Beispiel: <linkGrp type="imitation" targType="note l" targOrder="Y">

<link targets="n2.79 l2.79"/> <link targets="n2.88 l2.88"/> <!-- ... --> <link targets="n3.284 l3.284"/> <!-- ... -->

</linkGrp>

<anchor> specifies a location or point within a document so that it may be pointed to. <seg> identifies a span or segment of text within a document so that it may be pointed to.

Extended pointers: Between documents and by XPointer

<xptr> defines a pointer to another location in the current document or an external document. Examples: <p>This is discussed in <xptr doc="TEIP3"/>.</p> <xptr doc="OrbisPictus?" from="id (animalia)"/> <xptr doc="OrbisPictus?" from="id (animalia)" to="id (aquaticae)"/> <xptr doc="P3" from="id (SA) child (3 p)"/> (the third <p> element directly contained by whatever element has the identifier SA) HTML: <p>This is discussed in <xptr url="http://www.tei-c.org/TEI/Guidelines/SA.html"/>

<xref> defines a pointer to another location in the current document or an external document, possibly modified by additional text or comment. Examples: <p>This is discussed in <xref doc="TEIP3">The TEI Guidelines</xref>.</p> HTML: <p>This is discussed in <xref url="http://www.tei-c.org/TEI/Guidelines/SA.html">the chapter on linking</xref> --> HTML: <p>This is discussed in <a href="http://www.tei-c.org/TEI/Guidelines/SA.html">the chapter on linking</a> <p>This is discussed in <xref doc="TEIP3SA" from="id(SAXR)">the chapter on linking</xref>.</p> --> HTML: <p>This is discussed in <a href="http://www.tei-c.org/TEI/Guidelines/SA.html#SAXR">the subsection on external linking</a>

In a URL:

example.xml#xpointer((p)[1]) example.xml#xpointer(id('4711')/div[1])