Is it possible to compare two timestamps in xslt? Example: A Webpage must be online from 1.February 2001 0am until 1.March 0am. There are some timeformats spezified in: http://www.w3.org/TR/xmlschema-0/#CreatDt The "timeinstant" format look well. example: 2001-02-01T24:00:00.000-05:00 the -05:00 is for the timezone. The XML file it will look like: .... <time> <start time="2001-02-01T24:00:00.000-05:00"/> <end time="2001-03-01T24:00:00.000-05:00"/> </time> .... --------------------------- With the command: > sabcmd time.xml time.xsl time.html $currenttime="201-01-11T13:20:00.000-05:00" a html file should be generated if the currenttime is between the start und the endtime. Otherwise the content of the html file should be for example "forbidden" or empty. -------------------- Is it possible the compare this timestamps with a command like the following? <xsl:if test="/time/start[@time] < $time "> Is there an other standard timeformat that fits my requirements? thanx -- Bernhard Zwischenbrugger Tel.: +43/1/944 57 64 Mobil.: +43/699/1944 57 64 http://www.datenkueche.com
