fix for XPath date-string comparisons