Cross-format functions

Some functions are defined differently according to different TAN formats.

2 elements: TAN-class-1-and-2-functions.xsl TAN-class-1-functions.xsl

Input: sequence of resolved class 1 TAN documents

Output: sequence of documents with these changes:

/* - > add @work = "[DIGIT TAKEN FROM TAN-A-div //tan:group[tan:work]/@id]"

tei:TEI - > tan:TAN-T

tei:text/tei:body - > tan:body

tei:div - > tan:div

<div [copy of @*] ref="[NORMALIZED, FLAT REF WITH N SUBSTITUTIONS AND SUPPRESSIONS]">[COPY OF TEXT][SECOND COPY INSIDE TEI MARKUP, IF ANY]</div>

Text remains untokenized. Any <div> with an @n with a range will be replicated as it is, but will be followed by empty <div>s with simple forms of @n and a @see that points to the ref of the original

The one-parameter version points to the master function kept in TAN-class-1-and-2-functions.xsl

Used by variable $self-prepped

Used by template ŧ class-1-errors

Used by function tan:prep-resolved-class-1-doc() tan:mark-splits() tan:prep-resolved-class-2-doc() tan:get-context-prepped()

Relies upon tan:prep-resolved-class-1-doc ŧ prep-class-1 .