I have done XSLT transformation on the XML and now would like to apply XSLT to alter some of the content.
How to wrap all the tr element in table element? I am was using XSLT 1.0 in C#.
XML
<?xml version="1.0" ?>
<div class="group">
<div class="group-header">A</div>
<div class="group-body">
<div class="group">
<div class="group-header">B</div>
<div class="group-body">
<div class="group">
<div class="group-header">C</div>
<div class="group-body">
<tr>C1</tr>
<tr>C2</tr>
<tr>C3</tr>
</div>
</div>
<div class="group">
<div class="group-header">D</div>
<div class="group-body">
<tr>D1</tr>
<tr>D2</tr>
<tr>D3</tr>
</div>
</div>
</div>
</div>
</div>
</div>
Expected Result:

trelements into atableelement? Which version of XSLT, which XSLT processor do you use/can you use?div class="group-body"elements do always contain onlytrelements that need to be wrapped by atableparent?