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:

ProcessorProcessor VersionImplemented Version
4XSLT, from 4Suite.0.12.0a32
SAXON from Michael Kay6.32
jd.xslt from Johannes Döbler1.0.82
libxslt from Daniel Veillard; implementation by Thomas Broyer1.0.192
Xalan-J from Apache2.4.D12

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.

DetailsCalling StylesheetXML DataExpected ResultCategoryTemplate
1exsl.object-type.1.xslexsl.object-type.data.1.xmlexsl.object-type.result.1.xmlexampleN

Change History

Previous Version: exsl.object-type.1.html

VersionModifiedByDetails
22001-04-24Jeni Tennison

Added 'external' as a possible object type.

2.12001-04-24Jeni Tennison
  • Added vendor implementations of Saxon and 4EXSLT
  • Changed status to stable
2.22001-06-02Jeni Tennison

Added vendor implementation in jd.xslt

2.32001-08-15Jeni Tennison

Added vendor implementation in libxslt

2.42002-08-20Craig Stewart

Added Xalan-J implementation to the list.

2.52002-11-12Craig Stewart

Updated 4XSLT version to 0.12.0a3.

Copyright

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