There's no easy way to do this. The easiest thing I can think of would be to create a dynamic webpage with ASP (or similar) that generates XML containing the date. Something like this:
Code:
<%
Response.ContentType = "text/xml"
'function to create ISO date format
'found at http://www.edoceo.com/creo/vbscript-iso-date.php
Function iso_date(ByVal dt)
Dim y: y = Year(dt)
Dim mo: mo=Month(dt)
Dim d: d=Day(dt)
Dim h: h=Hour(dt)
Dim m: m=Minute(dt)
Dim s: s=Second(dt)
If mo < 10 Then mo="0" & mo
If d < 10 Then d="0" & d
If h < 10 Then h="0" & h
If m < 10 Then m="0" & m
If s < 10 Then s="0" & s
iso_date = y & "-" & mo & "-" & d & " " & h & ":" & m & ":" & s
End Function
Response.Write("<?xml version=""1.0"" encoding=""utf-8""?>")
Response.Write("<date>")
Response.Write(iso_date(Now()))
Response.Write("</date>")
%>
If you put this ASP page up on a server, at http://example.com/dategenerator.asp for example, then you could grab the current date in your XSL like so:
HTML Code:
<xsl:variable
name="date"
select="document('http://example.com/dategenerator.asp')/date"/>
...
<DateTimeStamp>
<xsl:value-of select="$date"/>
</DateTimeStamp>
Bookmarks