Created
March 24, 2014 15:18
-
-
Save kparms/9742233 to your computer and use it in GitHub Desktop.
Comma delimited for-each loop in XSLT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--I use this all the time--> | |
<xsl:for-each select="rm:field"> | |
<xsl:value-of select="."/> | |
<!-- If we're not the last item, put a comma --> | |
<xsl:if test="(position() < last())"> | |
<xsl:text> , </xsl:text> | |
</xsl:if> | |
</xsl:for-each> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment