tan:data-type-check($item as item()?, $data-type as xs:string) as xs:boolean
Input: an item and a string corresponding to a data type
Output: a boolean indicating whether the item can be cast into that data type
Used by template ŧ prep-tan-claims
Does not rely upon global variables, keys, functions, or templates.
tan:feature-test-to-groups($attr-feature-test as xs:string?) as element()*
Input: any value of @feature-test
Output: the value converted into a series of <group>
ed <item>
s, observing the accepted syntax for this attribute
Example: "a b + c" - >
<item>
a</item>
</group>
<item>
b</item>
<item>
c</item>
</group>
Used by template ŧ prep-tan-mor
Used by function tan:obeyed-by-m
()
Relies upon tan:normalize-text
.
tan:prep-TAN-claims($TAN-docs-resolved as document-node()*) as document-node()*
Input: resolved TAN documents that take claims
Output: the same documents, marking <claim>
s for errors
Used by variable $self-prepped
Used by function tan:prep-resolved-tan-a-div-doc
()
Relies upon ŧ prep-tan-claims
.
Option 1 (TAN-class-2-and-3-functions)
tan:prep-TAN-mor($TAN-mor-docs-resolved as document-node()*) as document-node()*
One-param version of the function below
Used by variable $morphologies-prepped
Used by function tan:prep-TAN-mor
()
Relies upon $doc-id
$inclusions-1st-da
tan:resolve-doc
tan:get-1st-doc
tan:prep-TAN-mor
.
Option 2 (TAN-class-2-and-3-functions)
tan:prep-TAN-mor($TAN-mor-docs-resolved as document-node()*, $TAN-mor-doc-inclusions-resolved as document-node()*) as document-node()*
Input: resolved TAN-mor documents
Output: the same documents, after the inclusions have been resolved
Used by variable $morphologies-prepped
Used by function tan:prep-TAN-mor
()
Relies upon ŧ prep-tan-mor
.