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.
Definition: '\{[^\}]+?\}'
Used by function tan:evaluate
()
Does not rely upon global variables, keys, functions, or templates.
tan:analyze-stats($arg as xs:anyAtomicType*) as element()?
Input: a sequence of numbers
Output: a single <stats>
with attributes calculating the count, sum, average, max, min, variance, standard deviation, and then one child <d>
per datum with the value of the datum
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.
Relies upon tan:letter-to-number
.
tan:group-elements($elements-to-group as element()*, $group-min as xs:double?, $label-to-prepend) as element()*
Input: any elements that should be grouped; parameters specifying minimum size of grouping and the name of a label to prepend
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.
Relies upon tan:evaluate
.
tan:median($numbers as xs:double*) as xs:double?
Input: any sequence of numbers
Output: the median value
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()
Takes a group of elements that follow the pattern that results from tan:analyze-stats and synthesizes them into a single element. If $add-stats
is true, then they are added; if false, the sum of the 2nd - last elements is subtracted from the first; if neither true nor false, nothing happens. Will work on elements of any name, so long as they have tan:d children, with the data points to be merged.
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:error
tan:analyze-stats
.
tan:most-common-item($sequence as item()*) as item()?
Input: any sequence of items
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.
Relies upon $namespaces-and-prefixes
.
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.
Relies upon tan:outliers
.
tan:normalize-xml-element-space($element-to-normalize as element()?) as element()?
Input: an element
Output: the same element, but with text node descendants with space normalized
If a text node begins with a space, and its first preceding sibling text node ends with a space, then the preceding space is dropped, otherwise it is normalized to a single space
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon ŧ normalize-xml-fragment-space
.
tan:number-sort($numbers as xs:anyAtomicType*) as xs:double*
Input: any sequence of items
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*
Input: one or more numerals
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
When working with bibliographical data, it is next to impossible to rely upon an exact match to tell whether two citations are for the same item
Many times, however, the longest word or two, plus the four-digit date, are good ways to try to find matches.
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?
Input: a sequence of numbers
Output: the product of those numbers
No variables, keys, functions, or named templates depend upon this xsl:function.
Relies upon tan:product-loop
.
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
.
tan:reset-hierarchy($expanded-class-1-docs as document-node()*, $flag-misplaced-leaf-divs as xs:boolean?) as document-node()*
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.
Relies upon tan:letter-to-number
.
tan:true($string as xs:string*) as xs:boolean*
Input: a sequence of strings representing truth values
Output: the same number of booleans; if the string is some approximation of y, yes, 1, or true, then it is true, and false otherwise
No variables, keys, functions, or named templates depend upon this xsl:function.
Does not rely upon global variables, keys, functions, or templates.
tan:zip-uris($uris as xs:string*) as xs:anyURI*
Input: any string representing a uri
Output: the same string with 'zip:' prepended if it represents a uri to a file in an archive (docx, jar, zip, etc.)
No variables, keys, functions, or named templates depend upon this xsl:function.
Does not rely upon global variables, keys, functions, or templates.