How can I inject values from the message context into an Xslt transformation? The only thing I have found is this conversation:
http://forum.neuronesb.com/forum/topics/passing-parameters-with-tra...
I would like to inject values such as context.Data.Header.MessageId, SourceId, Created.ToString(), etc. into Xslt parameters for mapping into fields in my transformed message.
Thanks!
Tags: parameters, xslt
Hi John. We currently don't support directly accessing the message header properties as a parameter to the XSLT step. What you can do is use a C# code step before the XSLT and move the header properties that you need into the context.Data.Header.CustomProperties collection. You can then reference those properties using the "{property:name}" syntax.
Please let me know if you have additional questions on how to do this.
Michael Collins
Neuron ESB Support
Thanks for the quick reply. As a follow-up question, is there a reference of the various context values that are available? I can see many when viewing them in the Set Property step shape, or in a C# step. But, I can't find any docs about them and what they can/should contain.
Thanks again!
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by