Finding the difference between two dateTimes in XSLT
问题 I have an XML file which includes some dates with start and end points, like shown as follows: <start time=\"2016-02-21T00:59:06+02:00\"/> ..... ..... <end time=\"2016-02-22T02:24:38+02:00\"/> Question: How to calculate the difference between two time attributes? 回答1: I am getting the error: ... xsl:version: only 1.0 features are supported Here's a purely XSLT 1.0 solution: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0"