<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Identity template to copy elements as is -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<!-- Template to handle phone elements -->
<xsl:template match="*[contains(local-name(), 'Phone') and not(starts-with(local-name(), 'phone'))]">
<xsl:copy>
<countryCode></countryCode>
<subscriberNumber>
<xsl:value-of select="."/>
</subscriberNumber>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
<sml>
<sml>
<dayPhone>9090909091</dayPhone>
</sml>
<BusinessPhoneNumber/>
<phonePin/>
</sml>
<sml>
<sml>
<dayPhone>
<countryCode/>
<subscriberNumber>9090909091</subscriberNumber>
</dayPhone>
</sml>
<BusinessPhoneNumber>
<countryCode/>
<subscriberNumber/>
</BusinessPhoneNumber>
<phonePin/>
</sml>
<sml>
<sml>
<dayPhone>9090909091</dayPhone>
</sml>
<BusinessPhoneNumber/>
<phonePin/>
</sml>
<dayPhone>9090909091</dayPhone>
expected conversion-->
<dayPhone>
<countryCode/>
<subscriberNumber>9090909091</subscriberNumber>
</dayPhone>
<BusinessPhoneNumber/>
expected conversion-->
<BusinessPhoneNumber>
<countryCode/>
<subscriberNumber/>
</BusinessPhoneNumber>
<phonePin/>
expected no conversion-->
<phonePin/>
@dchiesa1 @omidt Is there anything I am missing here.
Solved! Go to Solution.
After a bit of digging, I was able to find a small error that resolved the problem and made it function properly.
When I built the policy and added it to the response flow, by default the source of the payload was set to<Source>request</Source>.
I modified it to <Source>response</Source> now its working
Well done for cracking it in the end and thank you for reporting back here!
After a bit of digging, I was able to find a small error that resolved the problem and made it function properly.
When I built the policy and added it to the response flow, by default the source of the payload was set to<Source>request</Source>.
I modified it to <Source>response</Source> now its working
Well done for cracking it in the end and thank you for reporting back here!