<anchor/>

Validation Information:

[table border="1" colwidth="115"]
Rules,Values

Contained by:,<add>|<back>|<body>|<date>|<del>|<div>|<floatingText>|<front><head>|<hi>|<l>|<lg>|<metamark>|<note>|<num>|<p>|<restore>|<seg>|<sic>|<sp>|<speaker>|<stage>|<stamp>|<text>|<unclear>

May contain:,none (empty element)
Attributes:,@xml:id
[/table]


What is it?

An <anchor/> element is a reference point in the XML document, that can be used to point to by other elements. We use the <anchor/> almost exclusively as the second part of a <delSpan/>, which denotes a larger passage that was canceled in its entirety, or otherwise 'marked as used'. Because <delSpan/>s typically do not abide to the usual nesting rules, we cannot use normal start-and-end tags to mark these passages. Instead, we need to use two empty elements, and link them together to mark the extent of the deleted passage. The first of these two empty elements is the <delSpan/> element (see: <delSpan>), and the second element is an <anchor/> element, further detailed below.


Attributes

For the possible values of the @xml:id, see: 'Special case: xml:id'. Apart from the usual rules for @xml:ids, it is of course important that the anchor's @xml:id has the same value (minus a hashtag) as the <delSpan>'s @spanTo value (see: <delSpan/>).


For example:

<pre>
<p>
	<delSpan spanTo="#anchor5" type="cross" extent="paragraph"/>
		DELETED PASSAGE
		<note>This whole paragraph has been crossed out using a
		St. Andrew's cross in black ink.</note>
	<anchor xml:id="anchor5"/>
</p>