Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    22
    Thanks
    2
    Thanked 0 Times in 0 Posts

    xml xslt and css works in ie8 only...

    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)
    Code:
    <?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
    Code:
    <?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
    Code:
    .bleh h3 {
    	color: #BC4700;
    }

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,453
    Thanks
    1
    Thanked 21 Times in 19 Posts
    Hmm. XHD Contents XSL.xsl has no XHTML markup in it. (No XHTML namespace, and a couple elements aren't lowercase.) Try that?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •