小编rad*_*zek的帖子

XSLT stylesheet isn't applied to XML in Firefox. How to fix it?

I have no idea why my code isn't cooperating, with me and my xml. I'm sorry for giving pics, but when i'm giving code, site is displaying end result, not the code it self, and I have no idea how to change it.

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="movies.xsl" type="text/xsl" ?>
<collection>
    <movie>
        <title>hasdasd</title>
        <year>1222</year>
        <genre>horror</genre>
    </movie>
    <movie>
        <title>wqw</title>
        <year>1111</year>
        <genre>notporn</genre>
    </movie>
    <movie>
        <title>asdsd</title>
        <year>1444</year>
        <genre>comedy</genre>
    </movie>
</collection>

Run Code Online (Sandbox Code Playgroud)

my XML code

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/collection">
      <html> …
Run Code Online (Sandbox Code Playgroud)

xml xslt firefox xslt-1.0

6
推荐指数
1
解决办法
6295
查看次数

标签 统计

firefox ×1

xml ×1

xslt ×1

xslt-1.0 ×1