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

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

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


  foo
  
  bar

         


        
10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-18 23:14

    
    
    ]]>

    This works fine with C#'s XslCompiledTransform class with .Net 2.0, but may very well fail almost anywhere else. Do not use unless you are programmatically doing the transofrm yourself; it is not portable at all.

提交回复
热议问题