Subject: Re: [xsl] Ranking Random Nodes from Top to Bottom From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 17 Aug 2007 15:24:31 +0200 |
Hi Michael,
There are about 20 different elements in my files. I have not counted yet the precise figure.
You are right, I would have trouble sorting /root[1]/a[3] and /root[1]/b[5].
string-length(string-before(., '['))
It is better to log the string length from root to the beginning of each particular node,
and then use that number to rank the elements from Top to Bottom.
In fact, that is what I want to do. What be your recommendation to do that?
root/cba root/z root/longnodename root/_short
into: root/z root/cba root/_short root/longnodename
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Ranking Random Nodes from, Michael Kay | Thread | Re: [xsl] Ranking Random Nodes from, J. Zhang |
Re: [xsl] Ranking Random Nodes from, J. Zhang | Date | RE: [xsl] Processing and sorting no, christoph . naber |
Month |