我想在 xslt 中实现回车。
问题是我有一个变量:
Step 1 = Value 1 breaktag Step 2 = Value 2 作为字符串并希望显示为
步骤 1 = 值 1
步骤 2 = 值 2
在 HTML 表单中,但我在页面上获取了 br 标签。任何在 xsl 中实现换行/回车的好方法将不胜感激
最佳答案
作为替代
<xsl:text>
</xsl:text>
你可以用
<xsl:text> </xsl:text> <!-- newline character -->
或者
<xsl:text> </xsl:text> <!-- carriage return character -->
如果你不想弄乱你的缩进
关于xslt - 如何在 XSLT 中实现回车,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1017054/