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

Re: Text Table with sorting

Subject: Re: Text Table with sorting
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Sep 2003 22:06:02 +0100
document hack


    However, the refDate attributes on maritalStatus and religion are 
not tied to each other.  The refDates for all five elements can be 
different as they are above, yet both columns have to be sorted.


ah so they are independent columns of data oh hm OK

Can you use a node-set extension function? if so you would probably be
best to sort the things first then assemble as in the following, which
I'll write using document('') hack in case you can't use an extension
function

<xsl:variable name="col1">
<xsl:for-each select="$set1">
<xsl:sort select="@refDate"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>

<xsl:variable name="sorted1" select="xx:node-set($col1)"/>
or
<xsl:variable name="sorted1" select="document('')/*/xsl:variable[@name='col1']"/>

and same for the other columns

then as you had before but using $sorted1 $sorted2 $sorted3

David


 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.