[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Multiple Tables Sorting Problem

Subject: Multiple Tables Sorting Problem
From: Ron Grimes <rgrimes@xxxxxxxxxxxxxxx>
Date: Thu, 3 Aug 2000 13:10:15 -0600
thead multiple
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.