How to preserve Empty XML Tags after XSLT - prevent collapsing them from to

后端 未结 10 2634
不思量自难忘°
不思量自难忘° 2020-12-18 22:31

Say I have a very simple XML with an empty tag \'B\':


  foo
  
  bar

         


        
10条回答
  •  鱼传尺愫
    2020-12-18 23:10

    Try this:

    
    

    Your HTML output will be:

    
    

    The   prevents the collapsing but translates to a blank space. It's worked for me in the past.

提交回复
热议问题