TAN-core-errors
Definition: doc('TAN-errors.xml')
Used by variable $errors-to-squelch
.
Used by template ŧ core-expansion-terse
, ŧ imitate-validation
, ŧ imprint-adjustment-action
, ŧ element-to-error
.
Used by function tan:imprint-adjustment-locator()
, tan:error()
.
Does not rely upon global variables, keys, functions, or templates.
TAN-core-errors
Definition: $errors/tan:errors/tan:squelch[@phase = $validation-phase]/tan:error-id
Used by template ŧ imitate-validation
.
Relies upon $errors
.
TAN-core-errors
Definition: tan:escape($help-trigger)
Used by function tan:help-extracted()
, tan:normalize-text()
.
Does not rely upon global variables, keys, functions, or templates.
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 ŧ apply-inclusions-and-adjust-vocabulary
, ŧ first-stamp-shallow-copy
, ŧ core-expansion-terse
, ŧ core-expansion-terse-attributes
, ŧ dependency-adjustments-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1, ŧ expand-reassigns
, ŧ resolve-critical-dependencies-loop
, ŧ dependency-adjustments-pass-2
, ŧ resolve-numerals
, ŧ mark-tok-pos
, ŧ catalog-expansion-terse
, ŧ core-expansion-terse-attributes-to-elements
, ŧ check-and-expand-ranges
, ŧ mark-dependencies-pass-2-for-validation
, ŧ class-2-expansion-terse
class-2-expansion-terse-for-validation, ŧ class-1-expansion-verbose-pass-2
, ŧ class-2-expansion-verbose
, ŧ class-1-expansion-verbose-pass-3
, ŧ cut-faulty-hrefs
, ŧ check-referred-doc
, ŧ core-expansion-normal
, ŧ class-1-expansion-verbose-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1 normalize-tei-space, ŧ tan-a-lm-expansion-terse
, ŧ dependency-adjustments-pass-1
core-expansion-terse, ŧ strip-divs-to-reset
, ŧ core-expansion-verbose
.
Used by function tan:error()
, tan:resolve-doc-loop()
, tan:resolve-alias-loop()
, tan:collection()
, tan:sequence-error()
, tan:get-1st-doc()
, tan:error-report()
.
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 ŧ apply-inclusions-and-adjust-vocabulary
, ŧ first-stamp-shallow-copy
, ŧ core-expansion-terse
, ŧ core-expansion-terse-attributes
, ŧ dependency-adjustments-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1, ŧ expand-reassigns
, ŧ resolve-critical-dependencies-loop
, ŧ dependency-adjustments-pass-2
, ŧ resolve-numerals
, ŧ mark-tok-pos
, ŧ catalog-expansion-terse
, ŧ core-expansion-terse-attributes-to-elements
, ŧ check-and-expand-ranges
, ŧ mark-dependencies-pass-2-for-validation
, ŧ class-2-expansion-terse
class-2-expansion-terse-for-validation, ŧ class-1-expansion-verbose-pass-2
, ŧ class-2-expansion-verbose
, ŧ class-1-expansion-verbose-pass-3
, ŧ cut-faulty-hrefs
, ŧ check-referred-doc
, ŧ core-expansion-normal
, ŧ class-1-expansion-verbose-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1 normalize-tei-space, ŧ tan-a-lm-expansion-terse
, ŧ dependency-adjustments-pass-1
core-expansion-terse, ŧ strip-divs-to-reset
, ŧ core-expansion-verbose
.
Used by function tan:error()
, tan:resolve-doc-loop()
, tan:resolve-alias-loop()
, tan:collection()
, tan:sequence-error()
, tan:get-1st-doc()
, tan:error-report()
.
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()?
four-parameter function of the master version, below
Used by variable $erroneously-looped-doc
.
Used by template ŧ apply-inclusions-and-adjust-vocabulary
, ŧ first-stamp-shallow-copy
, ŧ core-expansion-terse
, ŧ core-expansion-terse-attributes
, ŧ dependency-adjustments-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1, ŧ expand-reassigns
, ŧ resolve-critical-dependencies-loop
, ŧ dependency-adjustments-pass-2
, ŧ resolve-numerals
, ŧ mark-tok-pos
, ŧ catalog-expansion-terse
, ŧ core-expansion-terse-attributes-to-elements
, ŧ check-and-expand-ranges
, ŧ mark-dependencies-pass-2-for-validation
, ŧ class-2-expansion-terse
class-2-expansion-terse-for-validation, ŧ class-1-expansion-verbose-pass-2
, ŧ class-2-expansion-verbose
, ŧ class-1-expansion-verbose-pass-3
, ŧ cut-faulty-hrefs
, ŧ check-referred-doc
, ŧ core-expansion-normal
, ŧ class-1-expansion-verbose-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1 normalize-tei-space, ŧ tan-a-lm-expansion-terse
, ŧ dependency-adjustments-pass-1
core-expansion-terse, ŧ strip-divs-to-reset
, ŧ core-expansion-verbose
.
Used by function tan:error()
, tan:resolve-doc-loop()
, tan:resolve-alias-loop()
, tan:collection()
, tan:sequence-error()
, tan:get-1st-doc()
, tan:error-report()
.
Relies upon tan:error()
.
Option 4 (TAN-core-errors)
tan:error($idref as xs:string, $diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?, $elements-that-caused-this-error as element()*) 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 ŧ apply-inclusions-and-adjust-vocabulary
, ŧ first-stamp-shallow-copy
, ŧ core-expansion-terse
, ŧ core-expansion-terse-attributes
, ŧ dependency-adjustments-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1, ŧ expand-reassigns
, ŧ resolve-critical-dependencies-loop
, ŧ dependency-adjustments-pass-2
, ŧ resolve-numerals
, ŧ mark-tok-pos
, ŧ catalog-expansion-terse
, ŧ core-expansion-terse-attributes-to-elements
, ŧ check-and-expand-ranges
, ŧ mark-dependencies-pass-2-for-validation
, ŧ class-2-expansion-terse
class-2-expansion-terse-for-validation, ŧ class-1-expansion-verbose-pass-2
, ŧ class-2-expansion-verbose
, ŧ class-1-expansion-verbose-pass-3
, ŧ cut-faulty-hrefs
, ŧ check-referred-doc
, ŧ core-expansion-normal
, ŧ class-1-expansion-verbose-pass-1
, ŧ core-expansion-terse
dependency-adjustments-pass-1 normalize-tei-space, ŧ tan-a-lm-expansion-terse
, ŧ dependency-adjustments-pass-1
core-expansion-terse, ŧ strip-divs-to-reset
, ŧ core-expansion-verbose
.
Used by function tan:error()
, tan:resolve-doc-loop()
, tan:resolve-alias-loop()
, tan:collection()
, tan:sequence-error()
, tan:get-1st-doc()
, tan:error-report()
.
Relies upon $errors
, tan:fix()
, tan:shallow-copy()
.
TAN-core-errors
tan:error-codes($string-with-error-codes as xs:string?) as xs:string*
Input: a string
Output: the error codes found within the string
This function is used primarily in TAN-core.sch, to parse comments in functions/errors/*.xml and see which errors are expected.
No variables, keys, functions, or named templates depend upon this xsl:function.
Does not rely upon global variables, keys, functions, or templates.
TAN-core-errors
tan:error-report($error as item()*) as xs:string*
Input: <error>
s or strings corresponding to an error id
Output: a sequence of strings to be reported to the user
Used by template ŧ imitate-validation
.
Relies upon tan:error()
.
TAN-core-errors
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 function tan:help-or-info()
, tan:error()
.
Does not rely upon global variables, keys, functions, or templates.
TAN-core-errors
tan:help($diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?) as element()
Used by template ŧ core-expansion-terse-attributes
, ŧ class-1-expansion-verbose-pass-2
.
Relies upon tan:help-or-info()
.
TAN-core-errors
tan:help-extracted($strings-to-check as xs:string*) as element()*
Input: any strings
Output: one element per string, with @help
if help has been requested, and
containing the value of the string after the help request has been removed.
Used by template ŧ apply-inclusions-and-adjust-vocabulary
, ŧ core-expansion-terse-attributes
, ŧ core-expansion-terse-attributes-to-elements
, ŧ core-expansion-terse
.
Used by function tan:analyze-sequence()
, tan:resolve-alias-loop()
.
Relies upon $help-trigger-regex
.
TAN-core-errors
tan:help-or-info($diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?, $is-info as xs:boolean) as element()
Input: a sequence of items to populate a message, a series of items to be used in a SQFix, and a boolean value indicating whether the output element should be named info (rather than help)
Output: an element with the appropriate help or info message
Used by function tan:help()
, tan:info()
.
Relies upon tan:fix()
.
TAN-core-errors
tan:info($diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?) as element()
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:help-or-info()
.