Originally defined as an EXSLT extension to XSLT 1.0, to determine the type of a value.
object-type($arg as item()*) ➔ item()*
The value whose type is required
Links to specifications
Notes on the Saxon implementation
This function is retained in Saxon for backwards compatibility because it is encountered
in XSLT 1.0 stylesheets, however it has not caught up with the richness of the new types
introduced in XPath 2.0 and XPath 3.0. The input can be any sequence, and the output is a
string representation of the item type of the sequence (ignoring the cardinality). If the
input corresponds to one of the XPath 1.0 types
number, then the result is one
of those four strings (number covers integer, decimal, float, and double); otherwise it is
a string representation of the actual item type of the input.