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

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

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


  foo
  
  bar

         


        
10条回答
  •  不知归路
    2020-12-18 23:15

    It should not be a problem if it is or . However if you are using another tool which expects empty XML tags as way only, then you have a problem. A not very elegant way to do this will be adding a space between staring and ending 'B' tags through XSLT code.

提交回复
热议问题