Saxonica.com

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