[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Multiple Tables Sorting Problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|