I'm included Roland's complete reply so that it is recorded int the bts.
I've also attached his example files to this mail.

On Sat, 2005-04-23 at 14:02 +0200, Roland SchÃuble wrote:
> Hi,
> 
> Thank you for the quick response.
> After applying th patch, I got the same error in my browser I had
> before:
> 
> -----------------
> Error loading stylesheet: (null)
> 
> file:///home/sro/rankinglist.xsl
> -----------------
> 
> I'm using Mozilla Firefox 1.0.2 but the error is the same on all
> mozilla based browsers. I'm working on a gentoo linux system but
> also experienced the problem on debian.
> 
> As soon, as I replace the line
> 
>  <mime-type type="application/xslt+xml">
> 
> with
> 
>   <mime-type type="text/xml">
> 
> or even
> 
>   <mime-type type="application/xml">
> 
> everything works fine.
> 
> I think Mathias has not checked with local xml/xsl files so
> this could be the difference.
> 
> I attached the two files (xml and xsl) I used for my test so
> you can check the behavior in your own environment.
> Copy them in the same directory and open the xml file with
> the browser. A Ranking list should appear, if everything is ok.

Ok. I've just used your files on my machine and agree that the current
upstream fix does not work with firefox 1.0.2. I also agree that
changing the mime type to application/xml makes the xsl file work in
firefox.

As a side note in my user account firefox will quite happily process the
xsl file EVEN with the original debian supplied mime type of
text/x-xslt. I've tried creating a new user profile for firefox in my
home directory but it still insists on processing the file.  It is only
when I create a completely new linux user account that I see this bug at
all.
<?xml version="1.0" encoding="iso8859-1"?>
<?xml-stylesheet type="text/xsl" href="rankinglist.xsl"?>
<rankinglist contest="31. Internationales Freundschaftsfliegen" organizer="NOS, MfG Reichenburg" category="F3A FAI" date="26/27 Juni 2004">
  <jury>
    <jury-member lastname="Becker" firstname="Herbert" />
    <jury-member lastname="Schmitter" firstname="Juerg" />
    <jury-member lastname="Giezendanner" firstname="Emil" />
  </jury>
  <ranking>
    <rank number="1" total="2000" lastname="Matt" firstname="Wolfgang" group="MfG Liechtenstein" >
      <flight number="1" score="1000" />
      <flight number="2" score="1000" />
      <flight number="3" score="963" />
    </rank>
    <rank number="2" total="1940" lastname="Rubin" firstname="Marc" group="MfG Burgdorf" >
      <flight number="1" score="921" />
      <flight number="2" score="954" />
      <flight number="3" score="986" />
    </rank>
    <rank number="3" total="1933" lastname="Drack" firstname="Patrick" group="MfG ABB" >
      <flight number="1" score="933" />
      <flight number="2" score="929" />
      <flight number="3" score="1000" />
    </rank>
    <rank number="4" total="1826" lastname="Koch" firstname="Daniel" group="MfG Nidwalden" >
      <flight number="1" score="897" />
      <flight number="2" score="909" />
      <flight number="3" score="917" />
    </rank>
    <rank number="5" total="1808" lastname="Spillmann" firstname="Jean-Claude" group="MfG Reichenburg" >
      <flight number="1" score="899" />
      <flight number="2" score="889" />
      <flight number="3" score="909" />
    </rank>
    <rank number="6" total="1806" lastname="Gaehwiler" firstname="Walter" group="MfG Worb" >
      <flight number="1" score="909" />
      <flight number="2" score="897" />
      <flight number="3" score="881" />
    </rank>
    <rank number="7" total="1793" lastname="Luethi" firstname="Martin" group="MfG Burgdorf" >
      <flight number="1" score="869" />
      <flight number="2" score="884" />
      <flight number="3" score="909" />
    </rank>
    <rank number="8" total="1776" lastname="Ineichen" firstname="Reto" group="MfG Luzern" >
      <flight number="1" score="878" />
      <flight number="2" score="877" />
      <flight number="3" score="898" />
    </rank>
    <rank number="9" total="1761" lastname="Kobel" firstname="Christoph" group="MfG Amriswil" >
      <flight number="1" score="880" />
      <flight number="2" score="881" />
      <flight number="3" score="814" />
    </rank>
    <rank number="10" total="1743" lastname="Schaedler" firstname="Nick" group="MfG Liechtenstein" >
      <flight number="1" score="844" />
      <flight number="2" score="871" />
      <flight number="3" score="872" />
    </rank>
    <rank number="11" total="1606" lastname="Kistler" firstname="Hermann" group="MfG Allschwil" >
      <flight number="1" score="789" />
      <flight number="2" score="817" />
      <flight number="3" score="719" />
    </rank>
    <rank number="12" total="1594" lastname="Studer" firstname="Hansjoerg" group="MfG Wangen" >
      <flight number="1" score="767" />
      <flight number="2" score="827" />
      <flight number="3" score="0" />
    </rank>
    <rank number="13" total="1587" lastname="Lehmann" firstname="Markus" group="MfG Wangen" >
      <flight number="1" score="802" />
      <flight number="2" score="187" />
      <flight number="3" score="785" />
    </rank>
    <rank number="14" total="1497" lastname="Andres" firstname="Felix" group="MfG Breitenbach" >
      <flight number="1" score="701" />
      <flight number="2" score="767" />
      <flight number="3" score="730" />
    </rank>
    <rank number="15" total="1476" lastname="Schenk" firstname="Rolf" group="MfG Thun" >
      <flight number="1" score="707" />
      <flight number="2" score="744" />
      <flight number="3" score="732" />
    </rank>
    <rank number="16" total="1426" lastname="Zemp" firstname="Roland" group="MfG Nidwalden" >
      <flight number="1" score="636" />
      <flight number="2" score="699" />
      <flight number="3" score="727" />
    </rank>
    <rank number="17" total="831" lastname="Savioz" firstname="Jerome" group="MfG Sierre" >
      <flight number="1" score="8" />
      <flight number="2" score="823" />
      <flight number="3" score="0" />
    </rank>
  </ranking>
</rankinglist>

Attachment: rankinglist.xsl
Description: application/xml

Reply via email to