How to read csv file in Xslt to transform it into CDATA tag -


i want write xslt read csv file , transform data cdata tag

sample input file

col1,col2,col3 apple,mango,orange 

required output

<![cdata[apple|mango|orange]]> 

something this:

<xsl:stylesheet version="2.0"...>  <xsl:template name="main">   <out>     <xsl:for-each select="tokenize(unparsed-text('input.csv'), '\n')">     <line>       <xsl:value-of select="tokenize(., ',')" separator="|"/>     </line>     </xsl:for-each>   </out> </xsl:template>  <xsl:output cdata-section-elements="line"/>  </xsl:stylesheet> 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -