xsl-list
[Top] [All Lists]

[xsl] Output rowspan on multiple columns

2007-05-17 08:24:44
I'm trying to build a table with three columns.  The first two may have
a rowspan attribute.  Something like this...

<table border=1>
        <tr>
                <td rowspan=5>Comp1</td>
                <td rowspan=3>Drive1</td>
                <td>Partition1</td>
        </tr>
        <tr>
                <td>Partition2</td>
        </tr>
        <tr>
                <td>Partition3</td>
        </tr>
        <tr>
                <td rowspan=2>Drive2</td>
                <td>Partition4</td>
        </tr>
        <tr>
                <td>Partition5</td>
        </tr>
</table>

... from data like this...

<summary>
        <comp name="Comp1">
                <drive name="Drive1">
                        <partition name="Partition1" />
                        <partition name="Partition2" />
                        <partition name="Partition3" />
                </drive>
                <drive name="Drive2">
                        <partition name="Partition4" />
                        <partition name="Partition5" />
                </drive>
        </comp>
        ...  more comp  ...
</summary>

I've tried nested for-each and template matches and just can't figure
it out.  Any help is appreciated.

Regards,
Cliff

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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