XSLT Getting two different output for same input XML for same XSL

前端 未结 4 1441
囚心锁ツ
囚心锁ツ 2021-01-20 04:22

I have been trying my XSLT code in the online tool [XSLT 1.0 processor]:

http://www.freeformatter.com/xsl-transformer.html

Recently, I had to make

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-20 04:44

    Output 2 is correct. I ran your example in Oxygen/XML, using both XSLT1 and XSLT2 and got the correct results for both. Your template

    
    

    eliminates the empty nodes in both XSLT1 and XSLT2.

    Therefore the only possible conclusion is that the online tool that produced your Output 1 has a bug.

提交回复
热议问题