I just started fiddling with XSL for the first time in order to create my own "view template" in some collector's software. In the code I'm trying to insert line-breaks as a separator whenever there are multiple entries instead of ", ", but I'm having trouble getting it right. I've read inserting " " should do the trick, but it only outputs a space for me. Also read about seemingly simpler options like [br] and [p], but those codes break the template when simply inserting them instead of the comma.
Hope you can help me pointing out where I'm going wrong, thanks in advance!
<xsl:for-each select="userdefinedvalues/userdefinedvalue[@fieldid='dfUserField100010']/values/value">
<xsl:value-of select="."/>
<xsl:if test="position()!=last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>