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

Re: forum threads sorting

Subject: Re: forum threads sorting
From: "arser.abitu.ru" <arser@xxxxxxxx>
Date: Tue, 26 Feb 2002 18:55:53 +0300
abitu.ru
Hello Oleg,


the solution is simple: <xsl:sort select="root//*/@vl"/>

but might be slow..




Tuesday, February 26, 2002, 5:54:27 PM, you wrote:

OT> Hello!

OT> Here is a sorting problem I cannot manage:

OT> input xml represents forum threads

OT> <root>
OT>         <aaa vl="2001-12-02 13:56">
OT>                 <aaa vl="2002-01-02 12:32">
OT>                         <aaa vl="2002-01-03 14:43" />
OT>                 </aaa>
OT>                 <aaa vl="2002-02-01 13:43" />
OT>         </aaa>
OT>         <aaa vl="2002-01-03 14:54" />
OT>         <aaa vl="2002-02-01 10:44">
OT>                 <aaa vl="2002-02-01 10:45" />
OT>         </aaa>
OT> </root>

OT> and stylesheet have to sort threads (root/aaa elements) by last message 
OT> date (taking into account vl attributes in descendants elements).

OT> I can sort by root/aaa dates, but I can't consider descendant messages

OT> <xsl:sort select="translate(@vl, '-, ','')" />

OT> PS. I'm aware of xslt2 and saxon solutions, but unfortunately I need 
OT> pure xslt1 one.




-- 
Best regards,
 arser.abitu.ru                            mailto:arser@xxxxxxxx


 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.