|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Accessing nth element
Hi janning:
Thanks for your response..But I did not see any difference in performance when I tried the following <xsl:for-each select="./records[position() < 20]"> or when I used template for record. My question is how does the select in the for-each behave.. When we select by using the "select="./records[position() < 20]" does the XSLT processor return when the the cursor (db like) moves past record # 20 (like a for loop; return when the termination condition is met) or does it go loop all the n records (in particular 20 thru n). The more I look at it, I feel that I should be using a for-loop (or recursion) here.. Any suggestions are welcome.. Thanks --bharat
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx, Bharat.Chintapally@xxxxxxxxxxxxxxxxx cc: Subject: Re: Accessing nth element Am Dienstag, 1. Mai 2001 15:04 schrieb Bharat.Chintapally@xxxxxxxxxxxxxxxxx: try something like this <xsl:for-each select="./records[position() < 20]"> not tested, but with position function inside your XPath expression you should get the records you want. janning -- Planwerk 6 /websolutions Herzogstraße 86 40215 Düsseldorf fon 0211-6015919 fax 0211-6015917 http://www.planwerk6.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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
|

Cart








