В итоге:
в XML передаю текущую дату в формате "Ymd" = $now_date.
в XSL пересчитываю total в $current_total
<xsl:variable name="current_total" select="total - count(search_page[module=3][concat(substring(date, 7, 4), substring(date, 4, 2), substring(date, 1, 2)) < $now_date])"/>