Im having some trouble getting my XSL files working on a web server that is running NT 4 as the OS with IIS 4. I am also using IE 4 as the browser. This has not always been the case, originally I installed MSXML (3.0) and things were working fine. I could pass XML strings to the XSL stylesheets and they would be formatted correctly. Without
making any changes to the server's configuration, one day this week the server simply stopped being able to utilize XSL files. If I try to pass an XML string to one of my XSL files, it is not formatted. I even got a very simple example to see if maybe the XML strings I had been
using had somehow become incorrectly formatted. Here is the simple XSL stylesheet, I dont see anything wrong with it and I have used it successfully on a server that is running Windows 2000 with IIS 5, MSXML3 and IE 5.5 as the browser:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="yellow">
<tr>
<th>Title</th>
<th>Artist</th>
</tr>
<xsl:for-each select="CATALOG/CD">
<tr>
<td><xsl:value-of select="TITLE"/></td>
<td><xsl:value-of select="ARTIST"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and a sample XML string that works with the above stylesheet:
<?xml version="1.0" encoding="ISO8859-1" ?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<CATALOG>
<CD>
<TITLE>Natural Mystic</TITLE>
<ARTIST>Bob Marley</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Tuff Gong</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
</CATALOG>
Anyone have any ideas as to what might be going wrong? Once again the above code works fine when used with MSXML3, IIS 5 and IE 5.5 but NOT with MSXML3, IIS 4 and IE 4. Does my problem lie within IIS or the browser? Or could my MSXML3.DLL have become corrupted or damaged without me knowing it? Is a reinstallation of the DLL necessary (which
I would like to avoid if possible)? Any suggestions?
Thanks,
Drew
making any changes to the server's configuration, one day this week the server simply stopped being able to utilize XSL files. If I try to pass an XML string to one of my XSL files, it is not formatted. I even got a very simple example to see if maybe the XML strings I had been
using had somehow become incorrectly formatted. Here is the simple XSL stylesheet, I dont see anything wrong with it and I have used it successfully on a server that is running Windows 2000 with IIS 5, MSXML3 and IE 5.5 as the browser:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="yellow">
<tr>
<th>Title</th>
<th>Artist</th>
</tr>
<xsl:for-each select="CATALOG/CD">
<tr>
<td><xsl:value-of select="TITLE"/></td>
<td><xsl:value-of select="ARTIST"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and a sample XML string that works with the above stylesheet:
<?xml version="1.0" encoding="ISO8859-1" ?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<CATALOG>
<CD>
<TITLE>Natural Mystic</TITLE>
<ARTIST>Bob Marley</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Tuff Gong</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
</CATALOG>
Anyone have any ideas as to what might be going wrong? Once again the above code works fine when used with MSXML3, IIS 5 and IE 5.5 but NOT with MSXML3, IIS 4 and IE 4. Does my problem lie within IIS or the browser? Or could my MSXML3.DLL have become corrupted or damaged without me knowing it? Is a reinstallation of the DLL necessary (which
I would like to avoid if possible)? Any suggestions?
Thanks,
Drew