Option 1 (TAN-core-expand-functions)
tan:expand-doc($tan-doc-and-dependencies as document-node()*) as document-node()*
one-parameter version of the fuller one below
Used by variable $morphologies-expanded
$self-expanded
$keys-expanded
Used by template ŧ class-1-expansion-verbose
ŧ core-expansion-verbose
Used by function tan:expand-doc
() tan:expand-doc
()
Relies upon tan:expand-doc
.
Option 2 (TAN-core-expand-functions)
tan:expand-doc($tan-doc-and-dependencies as document-node()*, $target-phase as xs:string) as document-node()*
Input: a tan document, a string indicating a phase of expansion, and for class-2 documents, any dependency class-1 files
Output: the document and its dependencies expanded at the phase indicated
Because class 2 files are expanded hand-in-glove with the class 1 files they depend upon, expansion is necessarily synchronized. The original class-2 document is the first document of the result, and the expanded class-1 files follow.
Used by variable $morphologies-expanded
$self-expanded
$keys-expanded
Used by template ŧ class-1-expansion-verbose
ŧ core-expansion-verbose
Used by function tan:expand-doc
() tan:expand-doc
()
Relies upon ŧ core-expansion-terse-alias
ŧ class-2-expansion-verbose
tan:class-number
ŧ class-1-expansion-verbose
ŧ core-expansion-verbose
ŧ class-2-expansion-normal
ŧ dependency-expansion-normal
ŧ reset-hierarchy
ŧ core-expansion-normal
ŧ class-2-expansion-terse
ŧ dependencies-tokenized-selectively
ŧ dependency-expansion-terse
ŧ core-expansion-terse
ŧ core-expansion-terse-attributes
$doc-id
ŧ catalog-expansion-terse
tan:expand-doc
tan:resolve-doc
$sources-must-be-altered
tan:get-1st-doc
$morphologies-resolved
$sources-resolved
.
tan:resolve-alias($aliases as element()*) as element()*
Input: one or more <alias>
es
Output: those elements with children <idref>
, each containing a single value that the alias stands for
Used by template ŧ core-expansion-terse-alias
dependency-expansion-terse
Relies upon tan:resolve-alias-loop
.
tan:resolve-alias-loop($other-aliases as element()*, $idrefs-to-process as xs:string*, $alias-ids-already-processed as xs:string*) as element()*
Function associated with the master one, above; returns only <id-ref>
and <error>
children
Used by function tan:resolve-alias
() tan:resolve-alias-loop
()
Relies upon tan:help-extracted
tan:error
tan:resolve-alias-loop
.
tan:resolve-idref($ref-vals as xs:string*, $aliases-expanded as element()*) as xs:string*
Input: any strings
Output: if a string refers to the id value of an <alias>
, the references to that alias, otherwise the string itself
Used by template ŧ class-2-expansion-terse-pass-2
ŧ core-expansion-terse-attributes
Does not rely upon global variables, keys, functions, or templates.