Xml – new line character in xslt

newlinexmlxslt

I add new line character '
' between two string in xslt file like this:

test 
 test1

Output is just like this:

test
test1

But I want output to be just like this:

test 
 test1

Is that possible in xslt?

I think I should talking about why I want this:

the first output doesn't make effect in excel's Alt + Enter's. But when I manually edit xml like output2, it works. 
 also doesn't work.

Extra Explaination

Let's imagine 'test test1' is written inside an excel cell. When i use Alt + Enter inside this and open file with notpead++, i see this cell like this:

test
test1

In xslt file I try to replace all "newline" text with "
" to make this effect. But when I open this output in notpead i see that:

test
test1

but I want output to be like that:

test
test1

Best Answer

Try something like this:-

<xsl:text>test &#10; test1 </xsl:text>