exsl:object-type
Originally defined as an EXSLT extension to XSLT 1.0, to determine the type of a value.
object-type($arg as item()*) ➔ item()*
Arguments | |||
| $arg | item()* | The value whose type is required |
Result | item()* |
Namespace
http://exslt.org/common
Links to specifications
Saxon availability
Available in all Saxon editions. Available for Java and C/C++ only (not .NET).
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 node-set
,
string
, boolean
, or 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.