Firefox 3 doesn't apply my xslt stylesheet, but other browsers do

后端 未结 5 1100
礼貌的吻别
礼貌的吻别 2021-01-04 19:51

I\'m trying to serve dynamically generated xml pages from a web server, and provide a custom, static, xslt from the same web server, that will offload the processing into th

5条回答
  •  温柔的废话
    2021-01-04 20:34

    I just write here for posterity - I had the same symptom, also Firefox 3. However in my case, the problem was another:

    Firefox seems to really, really dislike when an XSL file has an underscore _ in the name. My XSLT file was called something like my_super_nice_xslt_which_loads_in_opera_and_ie.xsl.

    So, people, let's not use underscores. Use a hyphen (minus) instead: my-super-nice-xslt-which-loads-in-opera-and-ie.xsl.

    Then it will load in Firefox as well. I think I will just use dead simple names with letters and numbers in them from now on. You know the saying, "once bitten, twice shy". (In my case, I was bitten twice, but forgot the first time, so that makes me like four times shy this time.)

提交回复
热议问题