5

I need to join multiple element values into a new string separated with whitespace, what is the best way to do this? I am using xslt 2.0.

Thanks in advance.

Mathias Müller
  • 22,203
  • 13
  • 58
  • 75

1 Answers1

3

Look at the string-join function.

<xsl:value-of select="string-join(/path/to[1]/nodes/text(), ' ')" />
Tomalak
  • 332,285
  • 67
  • 532
  • 628