473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Firefox graphical corruption with long XML file

Hello Everyone,

Just wondering if anyone here has experienced this. I have a (fairly)
long XML file with just under a thousand records in it. The XSL works
fine in IE/FF, however, at a seemingly arbitrary record, the graphical
display of the table corrupts in FF. I'm at work now so can't do
anything useful like upload a picture somewhere, but I can do when I
get home. I've checked the source, and its all there, but the table
degrades to the last record repeated several times and then goes into
compressed lines. Its roughly about half way down the table. Any idea
of what might cause this? Its not a show stopper, I've just never heard
of anyone having this trouble so I am wondering if its something I've
done. Regards,

Luke

Sep 13 '05 #1
7 1371
reclusive monkey wrote:
Hello Everyone,

Just wondering if anyone here has experienced this. I have a (fairly)
long XML file with just under a thousand records in it.
Umm. XML doesn't have "records", it has "elements".
What are you referring to as a "record"?
The XSL works
fine in IE/FF, however, at a seemingly arbitrary record, the graphical
display of the table corrupts in FF. I'm at work now so can't do
anything useful like upload a picture somewhere, but I can do when I
get home. I've checked the source, and its all there, but the table
degrades to the last record repeated several times and then goes into
compressed lines. Its roughly about half way down the table. Any idea
of what might cause this? Its not a show stopper, I've just never heard
of anyone having this trouble so I am wondering if its something I've
done. Regards,


I had something similar a long while ago and it turned out to be
that elements which I thought were sibling instances had been
nested instead. Open the document in something which displays the
tree structure and see if this is the case.

///Peter

Sep 13 '05 #2
Peter,

I described a "record", as this is an XML file exported from a
database. As I believe (most likely erroneously) this is something to
do with the gecko rendering engine, I didn't worry too much about
semantics (how foolish I was). One "record" is one row in the table,
which is the <tblSubjective> element in the XML file. Here are the
first two <tblSubjective> elements of the XML file (I am including the
root element for reference);

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="Subjectives.xsl" type="text/xsl"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata">
<tblSubjectives>
<SubjectiveCode>0000</SubjectiveCode>
<SubjDesc>Teaching Staff- Teachers Scheme</SubjDesc>
<CentrallyControlled>0</CentrallyControlled>
<SCSDNonUse>0</SCSDNonUse>
</tblSubjectives>
<tblSubjectives>
<SubjectiveCode>0001</SubjectiveCode>
<SubjDesc>Tutors</SubjDesc>
<CentrallyControlled>0</CentrallyControlled>
<SCSDNonUse>0</SCSDNonUse>
</tblSubjectives>

As far as my feeble brain can tell these elements are siblings, not
nested.

Here is the XSL;

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>SCSD Finance Department - Cost Centres - ID</title>
<link rel="stylesheet" href="IntranetStyle.css" type="text/css"
media="screen" />
</head>
<body>
<div id="container">
<div id="header">
<a name="top"></a>
<h1>SCSD Finance Department</h1>
<h2>Subjectives</h2>
</div>
<div class="content">
<div class="content_header">
<span>Listed by Code Order</span>
</div>
<div class="content_body">
<p>
<div id="listing" align="center">
<table width="95%">
<thead>
<th><div>Code</div></th>
<th><div>Description</div></th>
<th><div>Central?</div></th>
<th><div>Active?</div></th>
</thead>
<xsl:apply-templates/>
</table>
</div>
</p>
</div>
<div class="content_footer">
<span><a href="#top">Back to top</a></span>
</div>
</div>
<div id="footer">
<span>Produced by <a
href="mailto:lu***********@calderdale.gov.uk">lu** *********@calderdale.gov.uk</a>
Finance Technician, Finance Dept., SCSD, Ext.: 2597.</span>
</div>
<div class="hidden"><a href="IntranetStyle.css"></a><img
src="curvebg.gif"/><img src="LOGOINTRANET.JPG"/></div>
</div>
</body>
</html>
</xsl:template>

<xsl:template match="tblSubjectives">
<tr class="even">
<td><xsl:value-of select="SubjectiveCode" /></td>
<td><xsl:value-of select="SubjDesc" /></td>
<xsl:choose>
<xsl:when test="CentrallyControlled = 0">
<td><form><input height="10px" width="10px" type="checkbox"
/></form></td>
</xsl:when>
<xsl:when test="CentrallyControlled = 1">
<td><form><input height="10px" width="10px" type="checkbox"
checked="true"/></form></td>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="SCSDNonUse = 0">
<td><form><input height="10px" width="10px" type="checkbox"
/></form></td>
</xsl:when>
<xsl:when test="SCSDNonUse = 1">
<td><form><input height="10px" width="10px" type="checkbox"
checked="true"/></form></td>
</xsl:when>
</xsl:choose>
</tr>
</xsl:template>

I have no doubt at all that one simple screenshot would show what is
happening far more clearly than I can describe, so I will upload one
tonight when I get home and pray that someone knows what is going. I am
_reasonably_ sure that my XML/XSL is ok, as it works ok in IE (yeah,
yeah IE isn't a browser, so its probably more of an indication it _is_
something which isn't standard), but it works fine in FF, until, as I
said about halfway through the <tblSubjective> elements (of which there
are about 700+), where it likes like FF has just run out of steam
drawing the table. The table is fine until about row 400. Should I post
my CSS as well?

Sep 14 '05 #3
http://www.reclusivemonkey.com/~monk...ges/ff_xml.jpg

This is what I am talking about. The further down the table you go, the
more it begins to break up so you just end up with a series of lines
together, then nothing. The page *seems* about the right lenght, FF
just doesn't seems to be able to hold it together as it tries to render
it all.

Sep 14 '05 #4
reclusive monkey wrote:
Peter,

I described a "record", as this is an XML file exported from a
database. As I believe (most likely erroneously) this is something to
do with the gecko rendering engine, I didn't worry too much about
semantics (how foolish I was).
Nothing foolish about it, it's perfectly natural. But I'm not a
database person, I'm a markup person, so if I want to understand the
problem, I need to visualise it in markup terms.
One "record" is one row in the table,
That much I do know about databases :-) Unfortunately there is an
infinite number of ways in which a row from a database can be encoded
in XML...
<tblSubjectives> [...] </tblSubjectives>
<tblSubjectives> [...] </tblSubjectives>
OK, thanks, now I can see which way round it is.
As far as my feeble brain can tell these elements are siblings, not
nested.
Yep. So my suggestion is junk, I'm afraid. Sorry about that.
Here is the XSL;
I just tested this here by duplicating your tblSubjectives 500x to give
1000 of them. Saxon did the job standalone just fine, so I brought it up
on Apache under FC4, and Firefox 1.0.6 Linux also did it OK, as did the
same Firefox on Windows and Mozilla and MSIE6.
I have no doubt at all that one simple screenshot would show what is
happening far more clearly than I can describe, so I will upload one
tonight when I get home and pray that someone knows what is going. I am
_reasonably_ sure that my XML/XSL is ok, as it works ok in IE (yeah,
yeah IE isn't a browser, so its probably more of an indication it _is_
something which isn't standard), but it works fine in FF, until, as I
said about halfway through the <tblSubjective> elements (of which there
are about 700+), where it likes like FF has just run out of steam
drawing the table. The table is fine until about row 400. Should I post
my CSS as well?


It wouldn't do any harm. Your XSLT is fine, and I assume you have run
the XML through a standalone parser to check that it is well-formed.

///Peter

Sep 14 '05 #5
reclusive monkey wrote:
http://www.reclusivemonkey.com/~monk...ges/ff_xml.jpg

This is what I am talking about. The further down the table you go, the
more it begins to break up so you just end up with a series of lines
together, then nothing. The page *seems* about the right lenght, FF
just doesn't seems to be able to hold it together as it tries to render
it all.


Ah...*that* kind of breakup. I thought you meant the XSLT was spewing
data out wrongly. This looks like a browser bug to me. Some kind of
delirium tremens in the rendering engine. I get it on machines with
small memory when I try to move a window, but I haven't seen it occur
inside a stationary window before.

///Peter

Sep 14 '05 #6
Thanks for the reply Peter. I should of mentioned there is no server
here; its simply a XML file on the LAN at work. Do you think I should
mention this to the Mozilla people?

Sep 14 '05 #7
Hmm, its my stylesheet. I am not sure why it should do this, but at
least I know where the problem lies now! I think the mozilla team are
aware of this as I found this on http://www.quirksmode.org;

"Doctypes
Unfortunately Mozilla supports "doctype switching". I don't closely
follow developments in this newest scourge of web design so I cannot
offer any more information. Advice: don't use it.

Problems
I made these notes for an earlier Mozilla version. I don't know if
they're still valid.

It sometimes has trouble with an XHTML 1.0 Transitional DOCTYPE. If you
use XHTML Trans and lots of tables, the tables may develop strange and
inexplicable bugs if you use anything else than this DOCTYPE
declaration:

<!DOCTYPE HTML PUBliC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

Apart from the official Mozilla Web Authoring FAQ and the Doctype
Switching page I found a very helpful page about doctypes in Netscape 6
and Explorer 5 on Mac. An acquaintance of mine also wrote an article
about this problem. The page it's on has a wrong DOCTYPE, so take a
look at this in Netscape 6 to see what you're up against. See also
Richard Bennett's doctype page.
(Some readers suggest that this table behaviour may actually be
standards compatible. This is possible, I don't know. In any case a web
developer must be prepared for such things)."

So I might have to play around with some DOCTYPE changes.

Sep 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RobG | last post by:
Why does Firefox insert #text nodes as children of TR elements? As a work-around for older Safari versions not properly supporting a table row's cells collection, I used the row's childNodes...
7
by: Ed L. | last post by:
We are seeing what looks like pgsql data file corruption across multiple clusters on a RAID5 partition on a single redhat linux 2.4 server running 7.3.4. System has ~20 clusters installed with a...
19
by: adirat | last post by:
I have read a lot on this subject on newsgroups and other access related websites on data corruption, but since we are still not able to isolate the problem – I am posting this detailed explanation...
1
by: Matthew | last post by:
Hello Access gurus, I'm helping out a friend who's a small business owner. The software he uses to run his shop uses an Access backend. We recently had some huge headaches w/DB corruption. We...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
23
by: Dave G | last post by:
Since upgrading one of my clients from A97/W2000 to A2003/XP they have suffered no end of data corruption problems, mainly involving one of the main tables. The corruption can result in one...
2
by: nepdae | last post by:
Please forgive me, this is a long one. My 11-user Access 2000 database is having recurring corruption problems. The symptoms include the following: 1) corrupted fields in recently created or...
1
by: dskrizhewsky | last post by:
Hello, I have the following algorithm 1. Show message DIV 2. Long Loop Function 3. Hide message DIV
3
by: casybay | last post by:
Hi all, I am trying to read two .txt files, save them to two 1D arrays and record their length. Then I define two 2D arrays and allocate memory to them for further use. After these, I free all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.