cancel
Showing results for 
Search instead for 
Did you mean: 

xsl generate date/time

Former Member
0 Kudos

Hi,

is there a easy way to generate an actual date/time in an xslt mapping without get these data from the source message.

Regards Bernd

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use a java class in xsl.

1. Write a java class with a static method to generate the date/time

2. Import the java class into imported archives.

3. Invoke the java class from xslt. (You can do xmlns:myclass="foo.DateTimeGenerator" in the xslt header and do myclass:generateDateTime() wherever you want the values)

Regards,

Suresh.

Former Member
0 Kudos

Hi Bernd,

i dont't think so.

the easyiest way is with a Message Mapping.

Do a Message mapping with your Request type as Source and Target.

Than insert the Date Function "currentDate".

Thats it.

So you can set a Message Mapping before your xslt mapping to fill that field.

Regards,

Robin