Skip to Content
0
Jul 22, 2010 at 09:46 AM

Set file name with XSLT - receiver channel - elements from XML?

657 Views

Dear experts,

I have an XSLT mapping for a message that is sent via a receiver channel to a customer.

The customer wants a certain file name which is put toghether by elements from the XML message.

I have looked at:

java-map-for-writing-the-file

The java code and the XSLT work perfectly!

In the line

fos = new FileOutputStream(new File("Fixed_" + new Date().getTime() + ".xml"));

a fixed value, date and time are used for the file name.

But I need some values from the XML message to create my name. But how do I do that? Can I somehow get values from the XML message through that java function or do I have to adapt the XSLT?

Can someone please help me!

Thank you,

Peter