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: tan:escape($help-trigger)
Used by template ŧ resolve-keyword
Used by function tan:convert-ref-to-div-fragment
() tan:normalize-text
() tan:analyze-elements-with-numeral-attributes
() tan:help-requested
()
Relies upon tan:escape
.
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
()
tan:error-report($error as item()*) as xs:string*
Input: strings corresponding to an error id or tan:error elements
Output: a sequence of strings constituting a report to the user
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:error
.
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.
tan:fragment-to-text($fragment as item()*) as xs:string?
Input: any document fragment
Output: a string representation of the fragment
This function is used to represent XML fragments in a plain text message, used particularly in validation reports
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon ŧ fragment-to-text
.
tan:help($diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?) as element()
Used by template ŧ prep-tan-a-div-pass-a
ŧ prep-tan-a-div-pass-a
ŧ prep-class-1
ŧ prep-class-2-doc-pass-1
ŧ prep-class-2-doc-pass-2
ŧ resolve-keyword
ŧ core-attribute-errors
Used by function tan:convert-ref-to-div-fragment
() tan:get-toks
()
Relies upon tan:help-or-info
.
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:help-requested($node as node()?) as xs:boolean
Used by template ŧ prep-tan-a-div-pass-a
ŧ prep-tan-a-div-pass-a
ŧ prep-tan-lm
ŧ prep-class-1
ŧ prep-class-2-doc-pass-1
ŧ prep-class-2-doc-pass-2
ŧ prep-class-2-doc-pass-3
ŧ core-attribute-errors
Used by function tan:get-toks
()
Relies upon $help-trigger-regex
.
tan:idrefs($idrefs as xs:string?, $nodes as node()*) as node()*
Input: a string; documents or document fragments
Output: the elements that have an @xml:id
value that matches the string, after it has been normalized and resolved for proxies
Used by template ŧ core-errors
Relies upon tan:normalize-text
tan:idrefs-loop
.
tan:idrefs-loop($id-refs-to-check as xs:string*, $results-so-far as node()*, $nodes-to-check as node()*, $alias-ids-already-checked as xs:string*) as node()*
Loop function for tan:idrefs
Used by function tan:idrefs
() tan:idrefs-loop
()
Relies upon tan:error
tan:normalize-text
tan:idrefs-loop
.
tan:info($diagnostic-message as item()*, $fix as item()*, $fix-type as xs:string?) as element()
Used by template ŧ prep-verbosely
ŧ core-errors
Used by function tan:convert-ref-to-div-fragment
()
Relies upon tan:help-or-info
.