...

View Full Version : xml xslt and css works in ie8 only...



DrWily
05-13-2009, 02:57 AM
These three work together in IE8 but not in firefox or opera. It's all on my local disk in the same desktop folder. I don't want to use IE8 even though it's local. Any help is much appreciated.


XHD Contents XML.xml (snippet)
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="XHD Contents XSL.xsl"?>
<XHD_Content>
<movie>
<title index="2">free movie</title>
</movie>
</XHD_Content>

XHD Contents XSL.xsl
<?xml version="1.0" encoding="UTF-8"?>

<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<head>
<LINK REL="stylesheet" TYPE="text/css" HREF="master.css" />
</head>
<body>
<div class="bleh"><h3>XHD Contents</h3></div>
<table border="1">
<tr>
<th>Title</th>
</tr>
<xsl:for-each select="XHD_Content/movie">
<tr>
<td><xsl:value-of select="title"/></td>
</tr>
</xsl:for-each>
</table>
</body>

</HTML>

master.css
.bleh h3 {
color: #BC4700;
}

Alex Vincent
05-13-2009, 04:01 PM
Hmm. XHD Contents XSL.xsl has no XHTML markup in it. (No XHTML namespace, and a couple elements aren't lowercase.) Try that?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum