We're using a XSLT file to convert a XML into RSS complaint XML.
The input XML contains an element with HtmlEncoded value like "#&174; " for characters like R or . We want to assign the decoded value to the title element of the RSS feed.
The problem is that, we need to display the title without any Htmlencoded characters.
Can anyone give us some examples or pointers on how to achieve HtmlDecode functionality in XSLT language
The code snippet of the XSLT file which we are using is as shown below:
<title> <xsl:value-of select="F[@N='1']"/>
Here we are trying to extract the value of the element with name F & attribute N & attribute value 1.
The code snippet of the input XML looks like this:
<F N="1"> Tailor Brand R</F>
After the transformation, the source of the output is as shown below:
<title> Tailor Brand R </title>
However, the same logic is working properly & rendering the R, when we place it under the <description> tag of the RSS XML. That is,
Can anyone provide some pointers on how to achieve the Htmldecoding inside the title tag of RSS also