| 
 
Subject: Re: [xsl] Grouping based on the sum of an attribute From: "Spencer Tickner" <spencertickner@xxxxxxxxx> Date: Fri, 26 Jan 2007 09:43:11 -0800  | 
<xsl:variable name="tcols" select="@cols"/> <xsl:for-each-group select="*" group-by="sum(@cols,preceding-sibling::*/@cols) idiv $tcols">
then:
$ saxon8 st.xml st.xsl \!indent=yes <?xml version="1.0" encoding="UTF-8"?> <table> <tr> <th colspan="3" rowspan="1"> Head </th> </tr> <tr> <td colspan="1" rowspan="1"> Column 1 </td> <td colspan="1" rowspan="1"> Column 2 </td> <td colspan="1" rowspan="1"> Column 3 </td> </tr> </table>
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Grouping based on the sum, David Carlisle | Thread | Re: [xsl] Grouping based on the sum, David Carlisle | 
| Re: [xsl] Grouping based on the sum, David Carlisle | Date | Re: [xsl] Grouping based on the sum, David Carlisle | 
| Month |