Separators in multi-list in XSLT

Quick note: if inside an XSLT for-each loop and I need a separator, the following should be fine:

<xsl:if test="position() != 1">; </xsl:if> {...content...}

This will add the separator as a prefix before all but the first element.

Leave a Reply

Your e-mail address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.