Re: [xsl] Problem using tables with grouping in xsl 2.0

Subject: Re: [xsl] Problem using tables with grouping in xsl 2.0
From: David Brown <david.brown@xxxxxxxxxxx>
Date: Wed, 26 Jan 2005 14:21:55 -0500
I apologize for the original message...it had some formatting errors that resulted in a typo. The if statement should read 'position()!=1'.

Thanks,
David

----- Original Message -----
From: David Brown <david.brown@xxxxxxxxxxx>
Date: Wednesday, January 26, 2005 2:18 pm
Subject: [xsl] Problem using tables with grouping in xsl 2.0

> 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