How to implement Carriage return in XSLT

后端 未结 10 1355
甜味超标
甜味超标 2020-12-28 15:18

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

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 15:50

    I believe that you can use the xsl:text tag for this, as in

    
    
    

    Chances are that by putting the closing tag on a line of its own, the newline is part of the literal text and outputted as such.

提交回复
热议问题