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
d="urn:schemas-microsoft-com
fficedata">
<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:
[email protected]">
[email protected]</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?