# EXSLT - exsl:object-type - Implementer Page

Version: 2 Status: stable User Page: index.html XML Definition: exsl.object-type.xml Function Package: exsl.object-type.zip #### Function Syntax
    string exsl:object-type(object)
The `exsl:object-type` function returns a string giving the type of the object passed as the argument. The possible object types are: `'string'`, `'number'`, `'boolean'`, `'node-set'`, `'RTF'` or `'external'`. Most XSLT object types can be coerced to each other without error. However, there are certain coercions that raise errors, most importantly treating anything other than a node set as a node set. Authors of utilities such as named templates or user-defined extension functions may wish to give some flexibility in the parameter and argument values that are accepted by the utility; the `exsl:object-type` function enables them to do so. An implementation of this extension function in the EXSLT exsl namespace must conform to the behaviour described in this document. ## Implementations Built-in support for `exsl:object-type` is available in the following XSLT processors:
Processor | Processor Version | Implemented Version
--- | --- | ---
4XSLT, from 4Suite. | 0.12.0a3 | 2
SAXON from Michael Kay | 6.3 | 2
jd.xslt from Johannes Döbler | 1.0.8 | 2
libxslt from Daniel Veillard; implementation by Thomas Broyer | 1.0.19 | 2
Xalan-J from Apache | 2.4.D1 | 2
There are currently no third-party implementations of `exsl:object-type`. ## Use Cases Use Case Package: exsl.object-type.use-cases.zip The following use cases illustrate the functionality of `exsl:object-type`.
Details | Calling Stylesheet | XML Data | Expected Result | Category | Template
--- | --- | --- | --- | --- | ---
1 | exsl.object-type.1.xsl | exsl.object-type.data.1.xml | exsl.object-type.result.1.xml | example | N
## Change History Previous Version: exsl.object-type.1.html
Version | Modified | By | Details
--- | --- | --- | ---
2 | 2001-04-24 | Jeni Tennison | Added `'external'` as a possible object type.
2.1 | 2001-04-24 | Jeni Tennison | Added vendor implementations of Saxon and 4EXSLT Changed status to stable
2.2 | 2001-06-02 | Jeni Tennison | Added vendor implementation in jd.xslt
2.3 | 2001-08-15 | Jeni Tennison | Added vendor implementation in libxslt
2.4 | 2002-08-20 | Craig Stewart | Added Xalan-J implementation to the list.
2.5 | 2002-11-12 | Craig Stewart | Updated 4XSLT version to 0.12.0a3.
## Copyright This material is in the public domain.

http://www.exslt.org/exsl/functions/object-type/exsl.object-type.html last modified 2002-11-12