Subject: Re: [xsl] Accessing nth element From: "bharat chintapally" <hydbad@xxxxxxxxxxx> Date: Sun, 06 May 2001 16:22:03 -0400 |
Thanks --bharat
Janning Vygen <vygen@xxxxxxxxxxxx> Sent by: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 05/01/01 09:23 AM Please respond to xsl-list
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx, Bharat.Chintapally@xxxxxxxxxxxxxxxxx cc: Subject: Re: [xsl] Accessing nth element
Hello all: I think I need to replace for-each in my XSLT's with recursion. I am interested in picking 'x' elements from 'y' (20 for each page from 500 records) for paging. for-each is working fine, but it is overkill, I should be able to terminate (return from as in procedural lang's) processing when I finish processing 20 records for a given page. I am trying to switch to recursion, but have a quick question. Is there a way to fetch an n'th element from given bunch of records. For example when I am processing records 20 thru records 40 out of 500 records, I would like directly fetch the record #20 from all the records. Is it possible..
not tested, but with position function inside your XPath expression you should get the records you want.
-- Planwerk 6 /websolutions Herzogstraße 86 40215 Düsseldorf
fon 0211-6015919 fax 0211-6015917 http://www.planwerk6.de
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Accessing nth element, Robert Seber | Thread | [xsl] Reverse order, Janning Vygen |
[xsl] ANN: 4EXSLT (EXSLT common, ma, Uche Ogbuji | Date | [xsl] Re: XSL-List Digest V3 #744, Carlton Noles |
Month |