Thomas said:
how can I make my XSLT-stylesheet insert a timestamp (date/time) into the
output file ?
With current XSLT processors extension functions are required, for
example with Xalan-J you can use Java methods to format the timestamp:
<xsl:template name="dateformat">
<xsl
aram name="dateformat">yyyy-MM-dd'T'HH:mm:ssZ</xsl
aram>
<xsl:variable name="tz" select='java:java.util.SimpleTimeZone.new(0,
"GMT+00:00")' />
<xsl:variable name="formatter"
select="java:java.text.SimpleDateFormat.new($dateformat)"/>
<xsl:variable name="settz" select="java:setTimeZone($formatter, $tz)" />
<xsl:variable name="date" select="java:java.util.Date.new()"/>
<xsl:value-of select="java:format($formatter, $date)" />
</xsl:template>