I want to add @morerows attribute in the 'entry' element. If you see in the input has <vmerge val="restart"/> and in the next <tr>/<tc> has <vmerge/> then total number of <vmerge> should be @morerows attribute value, Please look expected output.
Please help me on this and it's very grateful for me.
Input:
<tbl>
<tblGrid>
<gridCol/>
<gridCol/>
</tblGrid>
<tr>
<tc>
<p>Content Here</p>
</tc>
<tc>
<tcPr>
<vmerge val="restart"/>
</tcPr>
<p>Content here</p>
</tc>
</tr>
<tr>
<tc>
<p>Contenet here</p>
</tc>
<tc>
<tcPr>
<vmerge/>
</tcPr>
<p>Content here</p>
</tc>
</tr>
</tbl>
Expected Output:
<table>
<tgroup rowsep="0" cols="2">
<colspec colname="c1" colnum="1" colwidth="24.94*"/>
<colspec colname="c2" colnum="2" colwidth="25.06*"/>
<tbody>
<row>
<entry align="left">
<p>content here</p>
</entry>
<entry morerows="" align="right">
<p>Contenet here</p>
</entry>
</row>
<row>
<entry align="left">
<p></p>
</entry>
<entry align="left">
<p></p>
</entry>
</row>
</tbody>
</tgroup>
</table>