This variable has a complex definition. See stylesheet for definiton.

Used by function `tan:namespace`

()

Does not rely upon global variables, keys, functions, or templates.

Used by function `tan:evaluate`

()

Does not rely upon global variables, keys, functions, or templates.

`tan:analyze-stats($arg as xs:anyAtomicType*) as element()?`

Used by function `tan:merge-analyzed-stats`

()

Does not rely upon global variables, keys, functions, or templates.

`tan:blob-to-regex($globs as xs:string*) as xs:string*`

Input: any strings that follow a blob-like syntax

Output: the strings converted to regular expressions

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

`tan:counts-to-firsts($seq as xs:integer*) as xs:integer*`

Input: sequence of numbers representing counts of items.

Output: sequence of numbers representing the first position of each item within the total count.

E.g., (4, 12, 0, 7) - > (1, 5, 17, 17)

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

`tan:counts-to-lasts($seq as xs:integer*) as xs:integer*`

Input: sequence of numbers representing counts of items.

Output: sequence of numbers representing the last position of each item within the total count.

E.g., (4, 12, 0, 7) - > (4, 16, 16, 23)

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

*Option 1 (TAN-extra-functions)*

`tan:evaluate($string-with-xpath-to-evaluate as xs:string, $context-1 as item()*) as item()*`

2-param version of the fuller one below

Used by function `tan:group-elements`

() `tan:evaluate`

()

Relies upon `tan:evaluate`

.

*Option 2 (TAN-extra-functions)*

`tan:evaluate($string-with-xpath-to-evaluate as xs:string, $context-1 as item()*, $context-2 as item()*) as item()*`

Input: a string to be evaluated in light of XPath expressions; a context node

Output: the result of the string evaluated as an XPath statement against the context node

Used by function `tan:group-elements`

() `tan:evaluate`

()

Relies upon `$xpath-pattern`

.

`tan:grc-to-int($greek-numerals as xs:string*) as xs:integer*`

Input: Greek letters that represent numerals

Output: the numerical value of the letters

NB, this does not take into account the use of letters representing numbers 1000 and greater

No variables, keys, functions, or named templates depend upon this xsl:function.

Output: those elements grouped

This function was written primarily for the major alter function

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:median($numbers as xs:double*) as xs:double?`

Input: any sequence of numbers

It is assumed that the input has already been sorted by `tan:numbers-sorted(`

) vel sim

Used by function `tan:outliers`

()

Does not rely upon global variables, keys, functions, or templates.

`tan:merge-analyzed-stats($analyzed-stats as element()*, $add-stats as xs:boolean?) as element()`

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:most-common-item($sequence as item()*) as item()?`

Output: the one item that appears most frequently

If two or more items appear equally frequently, only the first is returned

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

`tan:namespace($prefix-or-uri as xs:string*) as xs:string*`

Input: any strings representing a namespace prefix or uri

Output: the corresponding prefix or uri whenever a match is found in the global variable

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:no-outliers($numbers as xs:anyAtomicType*) as xs:anyAtomicType*`

Input: any sequence of numbers

Output: the same sequence, without outliers

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:normalize-xml-element-space($element-to-normalize as element()?) as element()?`

Output: the same element, but with text node descendants with space normalized

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:number-sort($numbers as xs:anyAtomicType*) as xs:double*`

Output: the same sequence, sorted with string numerals converted to numbers

Used by function `tan:outliers`

()

Does not rely upon global variables, keys, functions, or templates.

`tan:ordinal($in as xs:integer*) as xs:string*`

Output: one or more strings with the English form of the ordinal form of the input number

E.g., (1, 4, 17) -> ('first','fourth','17th').

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

`tan:outliers($numbers as xs:anyAtomicType*) as xs:anyAtomicType*`

Input: any sequence of numbers

Output: outliers in the sequence,

Used by function `tan:no-outliers`

()

Relies upon `tan:number-sort`

`tan:median`

.

`tan:possible-bibliography-id($bibl-cit as xs:string) as xs:string`

Input: a string with a bibliographic entry

Output: unique values of the two longest words and the first numeral that looks like a date

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.

`tan:product($numbers as item()*) as xs:double?`

Output: the product of those numbers

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:product-loop($product-so-far as xs:double?, $numbers-to-multiply as item()*) as xs:double?`

Used by function `tan:product`

() `tan:product-loop`

()

Relies upon `tan:product-loop`

.

Input: any expanded class-1 documents whose `<div>`

s may be in the wrong place, because `<rename>`

or `<reassign>`

have altered the `<ref>`

values; a boolean indicating whether misplaced leaf divs should be flagged

Output: the same documents, with `<div>`

s restored to their proper place in the hierarchy

No variables, keys, functions, or named templates depend upon this xsl:function.

Relies upon `ŧ reset-hierarchy`

.

`tan:resolve-keyword($items as item()*, $extra-keys as document-node()*) as item()*`

Input: any items; any extra keys

Output: the same items, but with elements with `@which`

expanded into their full form, using the predefined TAN vocabulary and the extra keys supplied

No variables, keys, functions, or named templates depend upon this xsl:function.

Relies upon `ŧ resolve-keyword`

.

`tan:syr-to-int($syriac-numerals as xs:string*) as xs:integer*`

Input: Syriac letters that represent numerals

Output: the numerical value of the letters

NB, this does not take into account the use of letters representing numbers 1000 and greater

No variables, keys, functions, or named templates depend upon this xsl:function.

`tan:true($string as xs:string*) as xs:boolean*`

Input: a sequence of strings representing truth values

No variables, keys, functions, or named templates depend upon this xsl:function.

Does not rely upon global variables, keys, functions, or templates.