This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

forum threads sorting


Hello!

Here is a sorting problem I cannot manage:

input xml represents forum threads

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

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

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

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

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

-- 
Oleg Tkachenko
Multiconn International, Israel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]