Skip to Content
0
Former Member
Nov 01, 2005 at 03:33 PM

xslt mapping can't get date from java

533 Views

I am trying to get the current date/time from java in my xsl mapping. I can't seem to get it to work. This is the code I am using in my xsl file.

<IDField>

<xsl:template name="currentTime" xmlns:date="java:java.util.Date">

<xsl:value-of select="date:new()"/>

</xsl:template>

</IDField>

also tried

<xsl:value-of select="java:java.util.Date:new()"/>

I simply want to put the current date time in the IDField. What am I doing wrong? I am currently getting back a xslt mapping error. Here's the error....

Transformer configuration exception occurred when loading XSLT

I've tried a few different ways, but none have worked. What I'm looking for is the specific code that would display the date/time.

- Emmett