Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem executing xml and xsl with IE5

 
Himal Chuli
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i've the followings which works fine with xalan. i have these two files (xml and xsl) in the same directory. when i open this xml file in IE5, displays nothing instead of "Empire Burlesque". couldn't figure out what's wrong. could anyone please pointed out me what wrong did i do?
here is the "cdcatalog.xml" file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
</catalog>
here is the "cdcatalog.xsl"
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="catalog/cd/title"/>
</xsl:template>
</xsl:stylesheet>
is there anything that i need to istall so that IE5 could work with xml and xsl to display what's expected? i would also like to thank all who've helped me with my previous problem so quickly.
thanks.
himal
 
Vasudha Deepak
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Use IE6 and it should work fine.
Vasudha
 
Rakesh Gudur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hima,
I think if you can get the latest MSXML parser, it would work fine. It would be available on microsoft site. Best is to install IE 6.0 which has the latest parser.
Good luck,
Rakesh.
--------------------
IBM Certified XML Dev.
Man is a product of his own thoughts. What he thinks he becomes - M.K.Gandhi
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rakesh!..
Just a doubt,does ur signature quote was told by Gandhi or by Swami Vivekanandha ?I guess its by Vivekanandha.
Regards
Balaji
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Himal,
XML in a nutshell (page 108) says -

IE5 and IE5.5 support their own custom version of XSLT, based on a very early draft of the XSLT specification. They do _not_ support XSLT 1.0. You can tell the difference by looking at the namespace of the stylesheet. A stylesheet written for IE5 uses the http://www.w3.org/TR/WD-xsl namespace, whereas a stylesheet designed for standard-complaint XSLT processors uses the http://www.w3.org/1999/XSL/Transfrom namespace. Despite superficial similarities, these two languages are not compatible. A stylesheet written for IE will not work with other XSLT processors, and a stylesheet written with standard XSLT 1.0 will not work in IE.

Cheers,
Dan
 
Rakesh Gudur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji,
I know the quote is by Gandhi. I read it somewhere. Though I don't have any evidence to prove it in the court of law ;-)
Cheers,
Rakesh.
-----------------
IBM Certified XML Dev.

Be you ever so high, the law is above you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic