I've been battling this XSL (Saxon/Java) code for several hours now, and still can't figure it. I narrowed the problem down to this snippet:
<xsl:function name="my:fff" > <xsl:element name="p0"> ...