cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a property in xslt SAP CPI

Jaimestrada
Explorer
0 Kudos
1,778

Hi experts,

I want to transform a message using XSLT in SAP CPI.

I have a content modifier where I save a property from xml, i need to use that property in xlst to transform. Do you know how can i do that, any idea?

Thanks for help

Regards

Accepted Solutions (1)

Accepted Solutions (1)

MortenWittrock
Active Contributor

Hi Jaime

Declare two parameters in your stylesheet like this:

<xsl:param name="candidateId"/>
<xsl:param name="applicationId"/><br>

Afterwards, you can get at the values using $candidateId and $applicationId.

Documented here.

Have fun with Cloud Integration and XSLT!

Regards,

Morten

P.S. If your XSLT mapping is immediately after your Content Modifer, you can also just extract those values directly in your stylesheet using the same XPath expressions, instead of storing them in properties first and then accessing those properties in the stylesheet.

Jaimestrada
Explorer

Hi Morten,

Thanks for your time, this solution works perfectly.

Regards.

MortenWittrock
Active Contributor
0 Kudos

Glad to hear it, jestradag.

Answers (0)