Hi all,
I have a XML which has list items like
<list type="expl" margin="0">
<li label="(1)">
<p num="n">
<text>
(1) A person
is guilty of an offence if:
</text>
</p>
</li>
</list>
<list type="expl" margin="0">
<li label="(a)">
<p num="n">
<text>
(a) the
person deals with money or other property; and
</text>
</p>
</li>
</list>
The output i need is like
<list type="expl">
<li label="(1)">
<p num="n">
<text>A person is guilty of an offence if:</text>
</p>
<list type="expl">
<li label="(a)">
<p num="n">
<text>the person deals with money or other property; and</text>
</p>
</li>
</list>
</list>
Effectively if List appears as consecutive siblings, and they are of different types (eg, (1)/(a)/(i)) they must be nested inside the previous list item.
Thanks
Srini