首页 > 解决方案 > WSO2 EI : is not working in wso2 and the output remains in same line

问题描述

I am working on one transformation from xml to csv using xslt. All the code is working fine but I need to add a new line after one record and for that I am using in the xslt code.

<xsl:text>&#xA;</xsl:text>

Even after adding , still the result are coming into single line. Also,

&#xA;

gets disappear from the xslt code. Can some one please guide how to add a line at the end of the record in xslt in wso2 EI.

Thanks in advance. Can someone please check

标签: xsltwso2wso2esbwso2ei

解决方案


Have you tried <xsl:text>&#xD;&#xA;</xsl:text>?

Save it to a .xslt file and package it into a .car file and deploy that to the your wso2 EI.

Also be wary of what operating system you are writing the file to and what program you are using to view the file. If you are using Windows and viewing the file with notepad even though there are new line characters notepad will still display everything on one line.


推荐阅读