[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: (xsl) processing siblings based on sorted order, n
> You'll simply replace: > > following-sibling::bar[position() < 3] > > with > > $nodes[position()=$sortResult[position()=$currentPosition + 1] > > | > > $nodes[position()=$sortResult[position()=$currentPosition + 2] > > OOppss... A minor correction -- accessing the n-th sorted node from the node-list is like this: $nodes[position() = substring($sortResults, ($n - 1) * ($posLength+1) + 1, $posLength) ] Dimitre. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|