Subject: Multiple Tables Sorting Problem
From: Ron Grimes <rgrimes@xxxxxxxxxxxxxxx>
Date: Thu, 3 Aug 2000 13:10:15 -0600
|
I am creating multiple tables from a single stylesheet. This works fine -
except for the sort feature (which works great when it's just a single table
on the web page). I've included a stripped down version of what I'm trying
to do. What happens is this: when I click on a column header to sort by that
field, that table disappears entirely, but the other table stays up.
Any help/ideas would be greatly appreciated.
-Ron
- - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- - - - - - - - - - - - - - - - - - - - -
<script><xsl:comment><![CDATA[
function pbsort(field)
{
sortField.value = field;
pblisting.innerHTML = source.documentElement.transformNode(stylesheet);
}
function pcsort(field)
{
sortField.value = field;
pclisting.innerHTML = source.documentElement.transformNode(stylesheet);
}
]]></xsl:comment></script>
- - - - - - - - - - - - - - - - - - - -
<xsl:template match="act401/act401pb">
<table width="70%" style="background-color:white">
<thead>
<td><div class="header" onClick="pbsort('pbfund')">Fund</div></td>
<td><div class="header" onClick="pbsort('pbbegbal')">Beg
Bal</div></td>
</thead>
.
.
.
</xsl:template>
<xsl:template match="act401/act401pc">
<table width="80%" style="background-color:white">
<thead>
<td><div class="header" onClick="pcsort('pcfund')">Fund</div></td>
<td><div class="header"
onClick="pcsort('pccontr')">Contributions</div></td>
</thead>
.
.
.
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|