XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
<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.