If you just want to ignore the subsequent productivity-line records
with the same date, i.e. you are only concerned about the first record
for a given date, AND records with the same date are ordered, you
could use something like:

<xsl:for-each select="productivity-line">
  <xsl:if test="position() = 1
             or preceding-sibling::productivity-line[1]/date != date>
    ...
  </xsl:if>
</xsl:for-each>

This is much lighter that grouping.

-Erik

Joerg Heinicke wrote:

> Group your data by <date/>, anything else won't work.
>
> http://www.jenitennison.com/xslt/grouping/muenchian.xml
> http://www.dpawson.co.uk/xsl/sect2/N4486.html
>
> Joerg
>
> Tim Bachta wrote:
>
>> I am having trouble with an xsl:if condition.  I am testing to see if
>> the date value is the same as the previous date value. If it is I want
>> to skip over the code otherwise I want it to execute the code, simple,
>> here is my code: (the xsl:variable is declared under the stylesheet
>> element as <xsl:variable name="oldGroup"/>
>>
>> Xml coming in is -
>
>
> XML and XSLT stripped ...
>
>> and my output is showing up with each productivity-line showing.  Thanks
>> for the help
>>
>> Tim Bachta



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to