Sample Input Value
Copy
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<Pay> 100 </Pay>
<Payda> 50 </Payda>
</soapenv:Body>
</soapenv:Envelope>
XSLT Transformation Code
Copy
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//*[local-name()='Pay']/text()">
<xsl:value-of select="concat('Prefix', .)"/>
</xsl:template>
<xsl:template match="//*[local-name()='Payda']/text()">
<xsl:value-of select="concat('Prefix',.)"/>
</xsl:template>
</xsl:stylesheet>
Sample Output Value
Copy
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<Pay>Prefix 100 </Pay>
<Payda>Prefix 50 </Payda>
</soapenv:Body>
</soapenv:Envelope>

