XSLT -- Generating data @ run-time
843834Jan 30 2002 — edited Jan 31 2002Hi.
I'm using xalan to translate one xml document into another. However, the result of the xml document contains a required element of type dateTime.
This dateTime value is supposed to represent the dateTime at processing/run time.
Does anyone know how to generate dateTime @ run-time? I've checked the xpath functions and I didn't see anything for the dateTime at run-time.
In an xml book, I found the following for oracle's date:
<xsl:stylesheet version="1.0"
xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date">
...
<xsl:value-of select="date:toString(date:new())"/>
But this is in a format specific for oracle. How do I get something into the xml's dateTime format?
Thanks in advance!
--S.