xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> select="string-join((for $i in 1 to 3 return string($i * $i)), ' => ')" /> Output: 1 => 4 => 9