# saxon:current-mode-name()

saxon:current-mode-name() ==> xs:QName?

This function, designed for use in XSLT, returns the name of the current mode. If there is no current mode, or if the current mode is the default (unnamed) mode, it returns an empty sequence.

The function is useful where a template belongs to multiple modes, in that it allows the template at run-time to determine in which mode it was activated.

Next