[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Problem using tables with grouping in xsl 2.0


Subject: [xsl] Problem using tables with grouping in xsl 2.0
From: David Brown <david.brown@xxxxxxxxxxx>
Date: Wed, 26 Jan 2005 14:18:22 -0500

I'm in a situation where I'm creating an html table from groups. I want =
to have my gouping key in one column, and the elements of the group in =
the next column. The elements should appear one per row, and the key =
will span these rows.

The problem I have is that to create the appropritate table, all but the =
first element of the group needs both <tr> and <td> tags, while the =
first does not. However, I can find now way to distinguish the first =
element from the rest. In the 1.1 xsl, I used 'if position()!=3D1', but =
it seems that position returns the element's position within the =
document, not within the group.

If you need me to try to include code I can, but it's pretty confusing =
out of context, so I thought it would be easier to just describe the =
problem.

Thanks for any advice you might have.

-David


Current Thread
Keywords
xsl