Re: [xsl] Text Table with sorting

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

    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

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

<xsl:variable name="sorted1" select="xx:node-set($col1)"/>
<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


 XSL-List info and archive:

Current Thread