Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSLT -- Generating data @ run-time

843834Jan 30 2002 — edited Jan 31 2002
Hi.

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2002
Added on Jan 30 2002
3 comments
149 views