Subject: Re: table: general template
From: "Anton Triest" <anton@xxxxxxxx>
Date: Sat, 25 Sep 2004 00:59:25 +0200
|
Hi Jan,
I would try with Muenchian grouping on a key:
<xsl:key name="columns" match="entry/*" use="local-name()"/>
Best regards,
Anton
Jan Limpens wrote:
>
> hello all,
>
> this is a bridge probably thousands have crossed already, so I'd be
> glad for a direction...
>
> i need to make a html table
>
> <table>
> <tr>
> <th>some header from the local-name()</th>
> ...
> </tr>
> <tr>
> <td>some data matching the header</td>
> ...
> </tr>
> ...
> </table>
>
> This would be easy, if i knew the elements I will get, but instead of
> this I have:
>
> <log>
> <entry>
> <a>foo</a>
> <b>foo</b>
> </entry>
> <entry>
> <a>foo</a>
> <b>foo</b>
> <c>foo</c>
> </entry>
> <entry>
> <x>foo</x>
> <b>foo</b>
> </entry>
> </log>
>
> so all a's get into the a column, b's in the b columns, and if there
> is no c in an entry, it should make a blank <td>
>
> any links? ideas?
>
> thanks a lot!
> --
> Jan
> http://www.limpens.com
|