Hi,
Here is a piece of xslt, i need to replace the characters with their shortcode which are not supported in xml.
For eg i need to replace '&' to '&' and similarly all other characters as mentioned
Unsupported characters and their replacements:
& - &< - <
> - >
" - "
' - '
XSLT:
<xsl:if test="/*[local-name()='Root' and namespace-uri()='http://schemas.microsoft.com/BizTalk/2003/aggschema']/*[local-name()='InputMessagePart_1' and namespace-uri()='']/*[local-name()='GetOrderDetailsByIdResponse' and namespace-uri()='http://tempuri.org/']/*[local-name()='GetOrderDetailsByIdResult' and namespace-uri()='http://tempuri.org/']/*[local-name()='TermsAndConditionList' and namespace-uri()='http://schemas.datacontract.org/2004/07/GEP.Cumulus.P2P.BusinessEntities']/*[local-name()='TermsAndCondition' and namespace-uri()='http://schemas.datacontract.org/2004/07/Gep.Cumulus.CSM.Entities']/*[local-name()='TermsConditionText' and namespace-uri()='http://schemas.datacontract.org/2004/07/Gep.Cumulus.CSM.Entities']/text()"><Extrinsic>
<HeaderExtrinsic>
<TermsAndConditions>
<xsl:for-each select="../s10:TermsAndConditionList">
<xsl:for-each select="s9:TermsAndCondition">
<xsl:if test="s9:TermsConditionText">
<TermsAndCondition>
<xsl:value-of select="s9:TermsConditionText/text()" />
</TermsAndCondition>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</TermsAndConditions>
</HeaderExtrinsic>
</Extrinsic>
</xsl:if>
[Need to do it in the value coming from termandcondition text ie s9:TermsConditionText]
Thanks in Advance