I have an XML file with the following structure:
<root>
<level1>
<level2>
<value>A</value>
<value>B</value>
<value>C</value>
<value>D</value>
<value>E</value>
<value>F</value>
</level2>
</level1>
</root>
Guess I want to concatenate only the first three values in XSL in order to get ABC. How do I do it?
Assuming the focus item is the level2 node, you can use a XSLT 1.0 sequence constructor like…
…or in XSLT 2.0…