This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: forum threads sorting
- From: Oleg Tkachenko <olegt at multiconn dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 26 Feb 2002 19:06:34 +0200
- Subject: Re: [xsl] forum threads sorting
- Organization: Multiconn International
- References: <3C7BA1A3.2040906@multiconn.com> <175163870937.20020226185553@abitu.ru>
- Reply-to: xsl-list at lists dot mulberrytech dot com
That doesn't help, sorry. Select key you've suggested is constant and
will result to document order sorting.
--
Oleg Tkachenko
Multiconn International, Israel
arser.abitu.ru wrote:
> 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.
>
>
>
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list