Web Analytics Made Easy -
StatCounter Need help using count() and key() - CodingForum

Announcement

Collapse
No announcement yet.

Need help using count() and key()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help using count() and key()

    Code:
    <orders>
       <order date="June-15-2005" item="F101" qty="1" customer="C28901" />
    </orders>
    Code:
    <xsl:key name="date" match="order" use="@date" />
    I am trying to figure out a homework assignment using xslt and the above xml code. I need to use the count and key functions with the above key to count the total number of orders for a given date. The result is writen to a table cell.

    Code:
    <td rowspan="orders+2" class="date">
    This is what I have but it only prints the first date.

    Code:
    <td rowspan="{count(key('date', @date))}">
    			<xsl:value-of select="order/@date" />
    I am totally lost here any help would be greatly appreciated. Thank in advanced.
Working...
X