saxon:trace

The attribute saxon:trace on the xsl:accumulator element causes a trace message to be output (to the Configuration's Logger) whenever the value of the accumulator changes. The message includes the name of the accumulator, the path of the node, and the new accumulator value.