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" ?>
<usuarios>
<login>jpg</login>
<administrador>false</administrador>
</usuarios>

the XSL file (login.xsl):

[code]

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

<xsl:stylesheet version=“2.0” xmlns:xsl=“http://www.w3.org/1999/XSL/Transform” xmlns:fn=“http://www.w3.org/2005/xpath-functions” xmlns:xdt=“http://www.w3.org/2005/xpath-datatypes” xmlns:xs=“http://www.w3.org/2001/XMLSchema”>
<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:choose
<xsl:when test=“administrador =‘true’”>






</xsl:when>
</xsl:choose>






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

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

xsl:apply-templates/

</xsl:for-each>


Al Sistema de administracion de FME.

</xsl:when>
xsl:otherwise










Pacientes









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.