on 09-20-2005 4:35 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.