SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Notices
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# saxon:type-annotation()

type-annotation(item as item()) ==> xs:QName

This function takes an item as argument. If the argument is a node, the function returns the type annotation of the node, as a QName. If the type is anonymous, this will be a system-generated internal name. If the argument is an atomic value, the function returns the type label of the atomic value, again as a QName.

Next