| 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 | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] help with java.lang.outof, Nicola Harlow | Thread | [xsl] creating nodes from text, omprakash . v | 
| Re: [xsl] help with java.lang.outof, omprakash . v | Date | RE: [xsl] help with java.lang.outof, Michael Kay | 
| Month |