The concat function returns the concatenation of its arguments. : concat « XSLT stylesheet « XML Tutorial






File: Data.xml
<?xml version="1.0" encoding="utf-8"?>
<data>
  <text>Start</text>
  <text>Body</text>
  <text>Finish</text>
</data>
File: Transform.xslt

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="T" select="concat(//text[1],' - ',//text[2],' - ',//text[3])"/>
    <xsl:template match="/">
      <Paragraph>
        <xsl:value-of select="$T"/>
      </Paragraph>
    </xsl:template>
</xsl:stylesheet>

Output:

<?xml version="1.0" encoding="UTF-8"?><Paragraph>Start - Body - Finish</Paragraph>








5.26.concat
5.26.1.Concat string together
5.26.2.concat function
5.26.3.select=concat(The second album is , list/listitem[2])
5.26.4.Function concat() can stick several strings together
5.26.5.The concat function returns the concatenation of its arguments.