Concatenate several child items into one child item using XSLT

In XSLT 2.0 you can write:

<xsl:template match="parent">
  <xsl:copy>
    <child>
      <xsl:value-of select="child" separator=";"/>
    </child>
  </xsl:copy>
</xsl:template>

Leave a Comment