[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Top n values
I need to process the top n values in a list where n is dynamic. So if n=3 and I had the following XML: <root> <item>1</item> <item>5</item> <item>3</item> <item>2</item> <item>6</item> <item>4</item> </root> I need to process <item>'s with values 6,5,4. If I had captured n in a variable/parameter, what is the most efficient way to do this? What I want to avoid is walking the <item> nodset multiple times as there are a lot of <item>s (thousands). Thanks. 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
|