How can I add 
 as text when using libxslt?
Or, alternatively, make all browsers including Firefox display linefeeds in td/title elements properly by generating a different output?
The xslt code I use:
<td>
<xsl:attribute name="title">
<xsl:for-each select="input/item">
<xsl:if test="position()!=1"><xsl:text>
</xsl:text></xsl:if>:<xsl:value-of select="."/>
</xsl:for-each>
</xsl:attribute>
</td>
This works fine when applying Saxon9he, for instance leading to
<td title="item1
item2
item3"/>
But when I use libxslt (part of php) as XSLT 1.0 processor, and run the same code as above, I get real linefeeds in the result file:
<td title="item1
item2
item3"/>
causing Firefox to display the tooltip incorrectly (without linefeeds).
So I assumed I had to add disable-output-escaping attribute to <xsl:text> as follows:
<xsl:text disable-output-escaping="no">
</xsl:text>
but this has no effect.
So the conclusion from comments and tests is that it is a bug in Firefox but not in all versions: 9.01 does not even display

 right; 10.0 does not display linefeed but does display
as a linefeed, and 12.0/13.0 display both correctly.Case closed.