|
Subject: Re: [xsl] following-sibling problem From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Wed, 27 Oct 2004 09:50:21 -0400 |
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>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] following-sibling problem, David Carlisle | Thread | Re: [xsl] following-sibling problem, David Carlisle |
| Re: [xsl] output .net register dire, Jan Limpens | Date | Re: [xsl] following-sibling problem, David Carlisle |
| Month |