XSLT self-closing tags issue

后端 未结 12 1079
遥遥无期
遥遥无期 2020-12-08 20:19

I am using xslt to transform an xml file to html. The .net xslt engine keeps serving me self-closing tags for empty tags.

Example:

12条回答
  •  萌比男神i
    2020-12-08 20:59

    A workaround can be to insert a comment element to force generation of non self closing:

    
    

    It is not a pretty soloution, but it works :-)

    /Sten

提交回复
热议问题