How to view xsl output in browsers?

前端 未结 2 571
忘了有多久
忘了有多久 2021-01-21 21:04

everyone!

I\'m building a website based on some xml data files, so I chose to work with XSLT to bind the stylesheets in browsers.

It works quite good at first, b

2条回答
  •  离开以前
    2021-01-21 21:17

    I get the full wanted result when I display the XML file with IE9:

    enter image description here

    Update:

    As shown by Martin Honnen, the missing xsl:output statement causes output method xml (default) to be used and this is what causes the browsers not to treat the output as HTML.

    Adding solves the problem.

提交回复
热议问题