Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2009, 07:22 AM
Registered User
 
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 2 Times in 1 Post
Default xslt works in IE 8 but not in FF 3.5, can anyone help?

I have an XML file and I wrote an XSLT to display the data.
When I load the XML file in internet explorer 8 I get precisely what I want to get but when I load it in firefox 3.5.3 I get something quite different.

you can look at the XML file here:
http://www.redomer.com/myfiles/confmatrix.xml

and the XSLT file here:
http://www.redomer.com/myfiles/erroranalysis.xsl

Does anyone has an idea to what is the problem?

Thanks a lot :)
 
Old September 22nd, 2009, 07:32 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

A HTML row ('tr') element is allowed to contain 'th' and 'td' cell elements yet you are trying to put a complete 'table' in there:
Code:
          <tr>
            <th bgcolor="99CCCC">Statistics</th>
            <table id="stat1tbl" class="stat1">
That is not allowed and that way the browser might guess what you want and correct that, with different browsers guessing and correcting differently.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
 
Old September 22nd, 2009, 07:45 AM
Registered User
 
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 2 Times in 1 Post
Default Thanks, that solved part of the problem

Thanks a lot for your help, that solved part of the problem and now both tables are presented on ff but the colors are still different (ff doesn't present the colors). any idea why?
 
Old September 22nd, 2009, 07:51 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Numerical color values are supposed to start with '#' so make sure you have that in front of any value.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
 
Old September 22nd, 2009, 07:59 AM
Registered User
 
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 2 Times in 1 Post
Default

great, thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
incorporate javascript, works in html but not xslt ismailc XSLT 2 December 12th, 2007 03:32 AM
Works in IE but not in FF sofiacole Pro JSP 1 September 12th, 2007 11:20 PM
Javascript works in IE7 not in FF 2 swifty_programmer Javascript 2 August 31st, 2007 02:07 AM
Window status works in FF, but not IE...why? msprothero Javascript 2 March 22nd, 2005 10:10 AM
Cross-frame scripting, works in FF but not IE Snib Javascript 4 October 25th, 2004 08:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.