This variable has a complex definition. See stylesheet for definiton.
No variables, keys, functions, or named templates depend upon this xsl:variable.
Relies upon $self-prepped
tan:analyze-string-length
ŧ class-1-errors
ŧ class-1-copy-errors
.
Definition: tan:duplicate-values($self-leaf-div-flatrefs)
Used by template ŧ class-1-errors
Relies upon tan:duplicate-values
$self-leaf-div-flatrefs
.
Definition: $self-prepped/tan:TAN-T/tan:body//tan:div[not(tan:div)]/@ref
Used by variable $self-leaf-div-flatref-duplicates
Relies upon $self-prepped
.
tan:compare-copies($document as document-node(), $copy as document-node()) as document-node()
Input: two class-1 documents, one treated as a master and the other as a copy
Output: addition of @copy-loc
to the first document's leaf divs, indicating at what character number a div's text is found in the copy. If the text is not found in the copy, the corresponding text from the copy is placed in @copy-text
and @ref
, with the faulty div's ref, is returned.
This function is useful for diagnosing and fixing discrepancies between copies, especially those that have a different segmentation / div structure.
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:text-join
ŧ compare-copies
ŧ get-mismatched-text
.
tan:get-ref-seq($resolved-class-1-doc as document-node()) as xs:string*
Input: any resolved class 1 document
Output: a sequence of flatrefs for the document
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:flatref
.
tan:mark-splits($c1-doc-prepped as document-node()) as document-node()
Input: any prepped class 1 doc
Output: the same document, but with @pos
added to <div>
s that are split.
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:prep-resolved-class-1-doc
tan:duplicate-values
ŧ mark-splits
.
tan:normalize-doc-space($doc as document-node()+) as document-node()+
Input: any document
Output: that same document, but with each text(
) space-normalized
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon ŧ normalize-space
.