cancel
Showing results for 
Search instead for 
Did you mean: 

Distinction header or property parameter in XSLTß

Hello,

special question again, I know how header and exchange properties can be accessed in an XSLT mapping. Both are passed the same way via parameters to the XSLT. What happens now if I if header and property names are the same? Can both be distinguished in the XSLT( if header or property, be? If both should be used specifically in different templates?

In the XSLT both are treated as params and no difference if property or header.

Jus ran a test., settinh header and property with the same name , in this case the header value is assignedesd to the XSLT Parameter in the xslt mapping.

So any idea, how I can specifcally access the property vlue in rthe XSLT?

Thank you.

philippeaddor
Active Participant
0 Kudos

Was wondering the same when using XSLT params in the past. It's strange that there is no distinction...

Accepted Solutions (0)

Answers (2)

Answers (2)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Florian,

Its interesting to see above use case and I think its not business critical one ( i feel ).But good ask for enhancement and even I have tried its not possible to differentiate as per my understanding. Please raise a ticket to SAP ( LOD-HCI-PI ) and influence request ( will vote if you share it here for better programming practice ).

Regards,

Sriprasad Shivaram Bhat

daviddasilva
Active Contributor
0 Kudos

Hi,

The easiest solution would be to use a different name if possible!

But seriously, I think maybe they both don't get saved because the parameter can only have one value for the name of the header/property. Is it possible to create the param and append a 'h' or 'p' in front of the header/property name depending if it was retrieved from header or property?

Kind regards,

David