Re: [xsl] Cannot select a node here: the context item is an atomic value

Subject: Re: [xsl] Cannot select a node here: the context item is an atomic value
From: chris <oneskiingfool@xxxxxxxxx>
Date: Wed, 6 Apr 2005 01:59:02 -0600
Sorry, you're right.  Something like this:
-------------------------------------------------------
<xsl:variable name="one-day" select="xdt:dayTimeDuration('P1D')"/>
<xsl:variable name="rows" select="/rowset/row>

<xsl:for-each select="1 to $dayCount">
  <xsl:variable name="day" select="($date1 + ($one-day * .))"/>
  <tr>
    <td>
      <xsl:value-of select="format-dateTime($day,'[Y,*-2]-[M,2]-[D,2]')"/>
    </td>
    <xsl:for-each select="$rows">
      <td>
         <xsl:value-of select="value[@day=$day]"/"/>
      </td>
    </xsl:for-each>
  </tr>
</xsl:for-each>

> Are you going to post the working stylesheet, for the archive?
> I'd certainly find it useful.

Current Thread