Hi,
I use an xsl file to read an xml file with a browser
default.xsl
ms_old_default.xsl
Ce même fichier s'affiche correctement avec Mozilla 3 et affiche une erreur Error loading stylesheet: (null) avec mozilla 1.7
je ne sais pas pourquoi, est ce que qcq pourra m'aider
I use an xsl file to read an xml file with a browser
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="ms_old_default.xsl" alternate="yes"?>
<?xml-stylesheet type="text/xsl" href="default.xsl" alternate="no"?>
<REPORT>
<HEADER></HEADER>
<TITLE>Dormant Accounts Summary Report</TITLE>
<NAME>Dormant Accounts Summary Report</NAME>
<DESCRIPTION><PRE class="OneuiText"></PRE></DESCRIPTION>
<DATE>Tue Sep 16 13:49:43 GMT+0200 2008</DATE>
<AUTHOR>user1</AUTHOR>
<SECTION>
<HEADERROW>
<HEADER>name</HEADER>
<HEADER>lastLogin</HEADER>
</HEADERROW>
</SECTION>
<FOOTER></FOOTER>
</REPORT>
default.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<LINK REL="stylesheet" type="text/css" HREF="style.css"/>
<LINK REL="stylesheet" type="text/css" HREF="style2.css"/>
<title>
<xsl:value-of select="REPORT/TITLE"/>
</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Og2Bnr" align="left">
<xsl:value-of select="REPORT/HEADER"/>
</td>
<td class="Og2Bnr" align="right">
<xsl:value-of select="REPORT/AUTHOR"/>
<xsl:value-of select="REPORT/DATE"/>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<img src="ph_BannerUnderscore.gif" width="212" height="5" border="0"/>
</td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#999999">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="cCARESearchArea">
<tr>
<td colspan="2">
<font color="#FFFFFF">
<b/>
</font>
<b>
<font color="#FFFFFF">
<xsl:value-of select="REPORT/TITLE"/>
</font>
</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<font class="OneuiText">
<br/>
<xsl:copy-of select="REPORT/DESCRIPTION"/>
</font>
</td>
</tr>
</table>
<xsl:for-each select="REPORT/SECTION">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="bottom">
<br/>
<span class="OneuiTableBanner">
<xsl:value-of select="TITLE"/>
</span>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#999999">
<tr>
<xsl:for-each select="HEADERROW/HEADER">
<td align="center" bgcolor="#CCCCCC" class="OneuiTableColumnHeader">
<font color="#000000">
<b class="OneuiTableColumnHeader">
<xsl:value-of select="."/>
</b>
</font>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="DATAROW">
<tr>
<xsl:for-each select="DATAITEM">
<xsl:variable name="alignment" select="@cellContent"/>
<td bgcolor="#FFFFFF" class="OneuiTableCell" valign="top">
<!--Abro celda-->
<!--Existe el atributo, ponemos el alineado correcto-->
<xsl:choose>
<xsl:when test="$alignment='String'">
<xsl:attribute name="align">left</xsl:attribute>
</xsl:when>
<xsl:when test="$alignment='Date'">
<xsl:attribute name="align">center</xsl:attribute>
</xsl:when>
<xsl:when test="$alignment='Numeric'">
<xsl:attribute name="align">right</xsl:attribute>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
<!--y ahora, el valor concreto-->
<xsl:value-of select="./text()"/>
<xsl:for-each select="SIMPLEITEM">
<xsl:value-of select="."/>
<br/>
</xsl:for-each>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</td>
</tr>
<tr>
<td width="30%">
<br/>
<div id="BannerText" class="Og2Bnr" align="left">
<img src="ph_BannerUnderscore.gif" width="212" height="5" border="0"/>
<br/>
<xsl:value-of select="REPORT/FOOTER"/>
</div>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
ms_old_default.xsl
?xml version="1.0"?>
<xsl:stylesheet type="text/xsl" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<LINK REL="stylesheet" type="text/css" HREF="style.css"/>
<LINK REL="stylesheet" type="text/css" HREF="style2.css"/>
<title>
<xsl:value-of select="REPORT/TITLE"/>
</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Og2Bnr" align="left">
<xsl:value-of select="REPORT/HEADER"/>
</td>
<td class="Og2Bnr" align="right">
<xsl:value-of select="REPORT/AUTHOR"/>
<xsl:value-of select="REPORT/DATE"/>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<img src="ph_BannerUnderscore.gif" width="212" height="5" border="0"/>
</td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#999999">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="cCARESearchArea">
<tr>
<td colspan="2">
<font color="#FFFFFF">
<b/>
</font>
<b>
<font color="#FFFFFF">
<xsl:value-of select="REPORT/TITLE"/>
</font>
</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<font class="OneuiText">
<br/>
<xsl:value-of select="REPORT/DESCRIPTION"/>
</font>
</td>
</tr>
</table>
<xsl:for-each select="REPORT/SECTION">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="bottom">
<br/>
<span class="OneuiTableBanner">
<xsl:value-of select="TITLE"/>
</span>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#999999">
<tr>
<xsl:for-each select="HEADERROW/HEADER">
<td align="center" bgcolor="#CCCCCC" class="OneuiTableColumnHeader">
<font color="#000000">
<b class="OneuiTableColumnHeader">
<xsl:value-of select=". "/>
</b>
</font>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="DATAROW">
<tr bgcolor="#FFFFFF">
<xsl:for-each select="DATAITEM">
<td class="OneuiTableCell" valign="top">
<!--Abro celda-->
<!--Existe el atributo, ponemos el alineado correcto-->
<xsl:choose>
<xsl:when test=".[(@cellContent $ieq$ 'String')]">
<xsl:attribute name="align">left</xsl:attribute>
</xsl:when>
<xsl:when test=".[(@cellContent $ieq$ 'Date')]">
<xsl:attribute name="align">center</xsl:attribute>
</xsl:when>
<xsl:when test=".[(@cellContent $ieq$ 'Numeric')]">
<xsl:attribute name="align">right</xsl:attribute>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
<!--y ahora, el valor concreto-->
<xsl:value-of select="./text()"/>
<xsl:for-each select="SIMPLEITEM">
<xsl:value-of select="."/>
<br/>
</xsl:for-each>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</td>
</tr>
<tr>
<td width="30%">
<br/>
<div id="BannerText" class="Og2Bnr" align="left">
<img src="ph_BannerUnderscore.gif" width="212" height="5" border="0"/>
<br/>
<xsl:value-of select="REPORT/FOOTER"/>
</div>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Ce même fichier s'affiche correctement avec Mozilla 3 et affiche une erreur Error loading stylesheet: (null) avec mozilla 1.7
je ne sais pas pourquoi, est ce que qcq pourra m'aider