I'm new to XSLT 1.0 , And I'm tring to merge/group two diffrent elements with the same value into a table.
XML input
<transaction>
<request_id> 1 </request_id>
<message> Hi </message>
</transaction>
<transaction>
<response_id> 1 </response_id>
<message> Hola </message>
</transaction>
<transaction>
<request_id> 2 </request_id>
<message> bye </message>
</transaction>
<transaction>
<response_id> 2 </response_id>
<message> bye bye </message>
</transaction>
I want to have the following table
<table>
<thead>
<th> ID </th>
<th> request </th>
<th> response </th>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td> Hi </td>
<td> Hola </td>
</tr>
<tr>
<td> 2 </td>
<td> bye </td>
<td> bye bye </td>
</tr>
</tbody>
</table>
I found here solutions for how to merge elements by value , but it always with the same element name, any suggestions?