firefox problem

Hi, he problem is the next, firefox 1.5 don’t display the transformation of the following xsl file, but IExplorer 6 do:

i’m using tamino API4J with servlets to display the results do the XQuery do it (the xml results), and of course, the XSL files to transform it :stuck_out_tongue:

the XML file…

<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="login.xsl" ?>

the XSL file (login.xsl):


<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version=“2.0” xmlns:xsl=“” xmlns:fn=“” xmlns:xdt=“” xmlns:xs=“”>
<xsl:output version=“1.0” method=“html” indent=“yes” encoding=“UTF-8”/>
<xsl:param name=“SV_OutputFormat” select="‘HTML’"/>
<xsl:variable name=“XML” select="/"/>
<xsl:template match="/">

FME - Administracion

<xsl:for-each select="$XML">
<xsl:for-each select=“usuarios”>

<xsl:when test=“administrador =‘true’”>


<xsl:when test=“administrador =‘true’”>

Bienvenido :
<xsl:for-each select=“login”>



Al Sistema de administracion de FME.



Sistema de Gesti

First thing, you have:

<?xml-stylesheet type="text/xsl" href="login.xsl" ?> 

The correct MIME type for an XSL stylesheet is “text/xml”, not “text/xsl”. Firefox expects you to get this right, while IE doesn’t. (I think IE just looks at the filename extension and goes by that.) It’s also important for Firefox that the server return the stylesheet with “text/xml” in the Content-type header; Firefox takes what the server says here as authoritative.