View Single Post
  #2 (permalink)  
Old December 3rd, 2006, 03:06 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,438, Level: 59
Points: 18,438, Level: 59 Points: 18,438, Level: 59 Points: 18,438, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,954
Thanks: 0
Thanked 290 Times in 285 Posts
Default

If each of the months has the same internal structure, do something like this:

<xsl:variable name="months" select="month">
<xsl:for-each select="$months[1]/*">
  <xsl:variable name="p" select="position()"/>
  <tr>
    <td><xsl:value-of select="name()"/></td>
    <xsl:for-each select="$months">
      <td><xsl:value-of select="*[$p]"/></td>



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote