On Oct 27, 2004, at 9:43 AM, David Carlisle wrote:
each level 1 element checks if the immediately following thing is a
level 2 and if it is it starts a list and then processes that level 2.
a level 2 node has to process itself then process any immediately
following level 2 so the end result is that any consecutive sequence of
level 2s ends up in the list started on the level 1
I needed to remove the [1] on the apply-templates (because otherwise I
only get the first bullet), and then I end up with duplicates again:
<h2>Heading</h2>
<ul>
<li class="level1">Bullet 1a<ul>
<li class="level2">Bullet 3</li>
<li class="level2">Bullet 2a - “a quote’’</li>
<li class="level2">Bullet 2b</li>
</ul>
</li>
<li class="level1">Bullet 1b<ul>
<li class="level2">Bullet 2a - “a quote’’</li>
<li class="level2">Bullet 2b</li>
</ul>
</li>
</ul>
Bruce