xsl-list
[Top] [All Lists]

Re: Problem using tables with grouping in xsl 2.0

2005-01-26 12:21:55
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(_dot_)brown(_at_)alcatel(_dot_)com>
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



--~----------------------------------------------------------------
--
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: <xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
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>