换行符在XSL文件中造成了问题 [英] newline character is creating a problem in the XSL file

查看:97
本文介绍了换行符在XSL文件中造成了问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经开发了一个用户控件.
我正在使用xslt进行格式化.我以字符串而不是文件的形式给xslt一个xml输入.现在的问题是
当我写例如:

你好吗?
早上好
它显示如下

你好么?早上好
格式化后排成一行. m使用Web浏览器控件显示输入的文本.
我想按用户输入的样子显示它.
换行符不是xml和xslt所采用的.


i have developed a user control.
i am using xslt for formatting. i am giving an xml input to xslt in the form of string and not file. now the problem is
when i write for eg:

how r u?
good morning
it displays as follows

how r u? good morning
in one line after formating. m using web browser control to display the text entered.
i want to display it as it is as entered by the user.
the new line character is not been taken by xml and xslt. how can i solve this issue?

推荐答案

尝试使用< br>标记换行符.
Try using the <br> tag for newline.


这篇关于换行符在XSL文件中造成了问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆