xsl-list
[Top] [All Lists]

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

2005-04-06 00:59:02
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[(_at_)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.

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