Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8509

Re: XML encoding using udf java code

$
0
0

Hello,

U need a little bit of adjustment in xslt , check below code

 

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:ns0="http://test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template match="@*|node()">

      <xsl:copy>

         <xsl:apply-templates select="@*|node()"/>

      </xsl:copy>

   </xsl:template>

   <xsl:template match="/">

      <ns0:MT_Name>

         <xsl:variable name="data">

            <xsl:value-of select="substring(//Data, 39)"/>

         </xsl:variable>

         <xsl:value-of select="$data" disable-output-escaping="yes"/>

      </ns0:MT_Name>

   </xsl:template>

</xsl:stylesheet>

 

Thanks

Amit Srivastava


Viewing all articles
Browse latest Browse all 8509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>