TAN-core-errors global variables, keys, and functions summarized

Definition: $all-functions//*[matches(@select, concat('tan:error\([', $quot, $apos, ']'))]

Used by variable $function-error-ids

Relies upon $all-functions $quot $apos .

Definition: $all-schemas/sch:*//*[some $i in @* satisfies matches($i, 'tan:error\(')]

Used by variable $schema-error-ids

Relies upon $all-schemas .

Definition: doc('TAN-errors.xml')

Used by variable $errors-not-used

Used by template ŧ referenced-doc-errors

Used by function tan:error()

Does not rely upon global variables, keys, functions, or templates.

Definition: $errors//tan:error[not(@xml:id = ($function-error-ids, $schema-error-ids))]

No variables, keys, functions, or named templates depend upon this xsl:variable.

Relies upon $errors $function-error-ids $schema-error-ids .

Definition: for $i in $all-function-uses-of-error/@select return replace($i, concat('.*tan:error\([', $apos, $quot, '](\w+).+'), '$1')

Used by variable $errors-not-used

Relies upon $all-function-uses-of-error $apos $quot .

Definition: for $i in $all-schema-uses-of-error/(@select, @value)[matches(., 'tan:error\(')] return replace($i, concat('.*tan:error\([', $apos, $quot, '](\w+).+'), '$1')

Used by variable $errors-not-used

Relies upon $all-schema-uses-of-error $apos $quot .

Option 1 (TAN-core-errors)

tan:error($idref as xs:string) as element()?

one-parameter function of the master version, below

Used by variable $erroneously-looped-doc

Used by template ŧ prep-tan-a-div-pass-a ŧ prep-tan-a-div-pass-b ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ prep-verbosely ŧ segment-tokd-prepped-class-1 ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ prep-tan-lm ŧ prep-tan-lm ŧ arabic-numerals ŧ prep-class-1 ŧ prep-class-1 ŧ prep-class-1 ŧ prep-tan-claims ŧ prep-tan-claims ŧ prep-tan-mor ŧ prep-tan-mor ŧ prep-class-2-doc-pass-2 ŧ prep-class-2-doc-pass-2 ŧ resolve-attr-include ŧ resolve-keyword ŧ TAN-A-div-errors ŧ TAN-A-div-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-copy-errors ŧ class-2-errors ŧ class-2-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-attribute-errors

Used by function tan:merge-analyzed-stats() tan:prep-class-2-doc-pass-2() tan:group-by-IRIs() tan:pick-prepped-class-1-data() tan:cull-prepped-class-1-data() tan:convert-ref-to-div-fragment() tan:get-toks() tan:get-context-prepped() tan:sequence-error() tan:get-1st-doc() tan:resolve-doc() tan:error() tan:error() tan:error-report() tan:idrefs-loop()

Relies upon tan:error .

Option 2 (TAN-core-errors)

tan:error($idref as xs:string, $diagnostic-message as item()*) as element()?

two-parameter function of the master version, below

Used by variable $erroneously-looped-doc

Used by template ŧ prep-tan-a-div-pass-a ŧ prep-tan-a-div-pass-b ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ prep-verbosely ŧ segment-tokd-prepped-class-1 ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ prep-tan-lm ŧ prep-tan-lm ŧ arabic-numerals ŧ prep-class-1 ŧ prep-class-1 ŧ prep-class-1 ŧ prep-tan-claims ŧ prep-tan-claims ŧ prep-tan-mor ŧ prep-tan-mor ŧ prep-class-2-doc-pass-2 ŧ prep-class-2-doc-pass-2 ŧ resolve-attr-include ŧ resolve-keyword ŧ TAN-A-div-errors ŧ TAN-A-div-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-copy-errors ŧ class-2-errors ŧ class-2-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-attribute-errors

Used by function tan:merge-analyzed-stats() tan:prep-class-2-doc-pass-2() tan:group-by-IRIs() tan:pick-prepped-class-1-data() tan:cull-prepped-class-1-data() tan:convert-ref-to-div-fragment() tan:get-toks() tan:get-context-prepped() tan:sequence-error() tan:get-1st-doc() tan:resolve-doc() tan:error() tan:error() tan:error-report() tan:idrefs-loop()

Relies upon tan:error .

Option 3 (TAN-core-errors)

tan:error($idref as xs:string, $diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?) as element()?

Input: idref of an error, and optional diagnostic messages

Output: the appropriate <error> with each diagnostic inserted as a child <message>

Used by variable $erroneously-looped-doc

Used by template ŧ prep-tan-a-div-pass-a ŧ prep-tan-a-div-pass-b ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ insert-seg-into-leaf-divs-in-hierarchy-fragment ŧ prep-verbosely ŧ segment-tokd-prepped-class-1 ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ tan-key-errors ŧ prep-tan-lm ŧ prep-tan-lm ŧ arabic-numerals ŧ prep-class-1 ŧ prep-class-1 ŧ prep-class-1 ŧ prep-tan-claims ŧ prep-tan-claims ŧ prep-tan-mor ŧ prep-tan-mor ŧ prep-class-2-doc-pass-2 ŧ prep-class-2-doc-pass-2 ŧ resolve-attr-include ŧ resolve-keyword ŧ TAN-A-div-errors ŧ TAN-A-div-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-errors ŧ class-1-copy-errors ŧ class-2-errors ŧ class-2-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-errors ŧ core-attribute-errors

Used by function tan:merge-analyzed-stats() tan:prep-class-2-doc-pass-2() tan:group-by-IRIs() tan:pick-prepped-class-1-data() tan:cull-prepped-class-1-data() tan:convert-ref-to-div-fragment() tan:get-toks() tan:get-context-prepped() tan:sequence-error() tan:get-1st-doc() tan:resolve-doc() tan:error() tan:error() tan:error-report() tan:idrefs-loop()

Relies upon $errors tan:fix .

tan:fix($fix as item()*, $fix-type as xs:string?) as element()?

Input: any items; a string representing a fix type

Ouput: a tan:fix element with @type

This function is used to populate a file with material to be used by Schematron Quick Fixes

Used by template ŧ core-attribute-errors

Used by function tan:error() tan:help-or-info()

Does not rely upon global variables, keys, functions, or templates.