xsl-list
[Top] [All Lists]

RE: Multilevel Muenchian grouping -- Why doesn't this work?

2003-01-30 00:50:20
Hi,

The output this gets me on the input included below is:

<h2>2003</h2>
<h3>2</h3>
<ul></ul>
<h3>1</h3>
<ul></ul>
<h3>1</h3>
<ul></ul>
<h3>1</h3>
<ul></ul>
<h3>1</h3>
<ul></ul>
<h2>2002</h2>
<h3>11</h3>
<ul></ul>
<h3>11</h3>
<ul></ul>

I don't understand why all the months are showing up repeatedly, and
nothing inside at all.

That's odd, since I get

    <h2>2003</h2>
    <h3>2</h3>
    <ul>
    [...]
    </ul>
    <h3>1</h3>
    <ul>
    [...]
    [...]
    [...]
    [...]
    </ul>
    <h2>2002</h2>
    <h3>11</h3>
    <ul>
    [...]
    [...]
    </ul>
 
and if I replace [...] with <li><xsl:value-of select="."/></li> the output is 
correctly grouped. Which XSLT processor are you using, looks like a bug.

Cheers,

Jarno - Birmingham 6: The Deadliest Beat

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>