|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sorting under for-each-group
On 8/8/06, Mark Wilson <drmark@xxxxxxxxxxxxxxx> wrote:
toThe Stylesheet below does most of what I want -- It groups all of the entries for a single Subject under a single subject heading. I would like subsort under each group (Subject) first by author then by title, and if possible, when there is/are no author/authors, by title alone. The example would put the Kolar book first, then the Siegar Book, both under the single heading "Catalogs. Austria". Add a couple of xsl:sort's to your for-each: <xsl:for-each select="current-group()"> <xsl:sort select="Author"/> <xsl:sort select="Book/Title"/> This will sort by Author first, then by Book/Title. If no Author is present it will just sort by Book/Title. cheers andrew
|
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
|

Cart








