<?xml version="1.0"?>
<!--
- $Id: irspy2zeerex.xsl,v 1.20 2007-04-02 10:11:17 sondberg Exp $
This stylesheet is used by IRSpy to map the internal mixed Zeerex/IRSpy
record format into the Zeerex record which we store.
<xsl:param name="what" select="'unspecified'"/>
<xsl:param name="i" select="count(*/irspy:probe[@ok='1'])"/>
<xsl:variable name="date"
- select="*/irspy:probe[@ok='1' and position() = $i]"/>
+ select="*/irspy:probe[@ok='1'][$i]"/>
<xsl:variable name="latest"
- select="$nodes[irspy:strcmp(text(), $date) > 0]"/>
+ select="$nodes[irspy:strcmp(text(), $date) >= 0]"/>
<xsl:choose>
<xsl:when test="$latest">
<xsl:copy-of select="$latest"/>
</xsl:when>
+ <!-- <xsl:when test="$i > 0 and $i < 200"> -->
<xsl:when test="$i > 0">
<xsl:call-template name="insert-latest-nodes">
<xsl:with-param name="what" select="$what"/>