如何在 XSLT 中实现回车 [英] How to implement Carriage return in XSLT

查看:28
本文介绍了如何在 XSLT 中实现回车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 xslt 中实现回车.问题是我有一个变量:Step 1 = Value 1 breaktag Step 2 = Value 2 作为字符串并希望显示为

I want to implement carriage return within xslt. The problem is I have a varible: Step 1 = Value 1 breaktag Step 2 = Value 2 as a string and would like to appear as

第 1 步 = 值 1

Step 1 = Value 1

第 2 步 = 值 2

Step 2 = Value 2

在 HTML 表单中,但我在页面上获取了 br 标签.任何在 xsl 中实现换行/回车的好方法将不胜感激

in the HTML form but I am getting the br tag on the page.Any good ways of implementing a line feed/carriage return in xsl would be appreciated

推荐答案

我用 Environment.NewLine 分隔了值,然后在 html 中使用了一个 pre 标签来模拟我正在寻找的效果

I separated the values by Environment.NewLine and then used a pre tag in html to emulate the effect I was looking for

这篇关于如何在 XSLT 中实现回车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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