[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Fwd: XSLT 2.0 Determining Position of Sequence Ite
I want to write a expression that does something like this... This can be written as: for $cnt in count( $pages ) return ( ( for $cnt2 in $cnt, $p in 1 to $cnt2 - 1 return ($pages[$p], '>') ), $pages[$cnt] ) And the result is: Page1 > Page2 > Page3 > Page4 -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play On 3/16/07, John McGowan <john@xxxxxxxxxxx> wrote: > is not absolutely clear what you want to do, something like the > following may be useful: > > > for $k in 1 to 10 > return (4 to 13)[$k] > > > To put it simply, an indexing variable in the range > > 1 to count($someSequence) >
|
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
|