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

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 .