Hi, > Is there an equivalent of xsl:message please, > to produce debug output? There is fn:trace($val, $something). The $something serves as a label where the debug info should go and is implementation dependant. Be careful as many processors optimise unused code away. Martin Probst