XSL - Get attribute of previous element
- by Chris
In the if block below I want to be also test whether @Timestamp is smaller than the previous Message's timestamp.  How can I achieve this?
<xsl:for-each select="Message">
    <xsl:sort select="position()" data-type="number" order="descending"/>
    <xsl:variable name="newclass">
        <xsl:if test="@Timestamp + 60 > $ctimestamp">new</xsl:if>
    </xsl:variable>
    <tr><td class="debugtime">
        <xsl:value-of select="@Time"/>
    </td><td class="{$newclass}">
        <xsl:value-of select="node()"/>
    </td></tr>
</xsl:for-each>