Concatenate values of elements to a variable with the usage of a template?
问题 The following data need to be concatenated. But the XML document which I received can have "zero to n" b elements. In other words if there are no b elements the xslt should still work correctly example: <a> <b1>Some</b2> <b2>data</b2> <b3>what</b3> <b4>need</b4> <b5>to</b5> <b6>be</b6> <b7>concatenated</b7> </a> Expected result <a> <b1>Some data what need to be concatenated</b1> </a> I was trying the following construction but I couldn't made it work. <xsl:variable name="details" select="//b*