[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

Subject: Re: Fwd: XSLT 2.0 Determining Position of Sequence Item During "for expression" evaluation
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 16 Mar 2007 21:50:10 -0700
Re:  Fwd: XSLT 2.0 Determining Position of Sequence Ite
On 3/16/07, John McGowan <john@xxxxxxxxxxx> wrote:
On 3/16/07, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

>
> for $cnt in  count(  $pages )
>              return
>                  (
>                     ( for $cnt2 in $cnt,
>                           $p in 1 to $cnt2 - 1
>                              return
>                                 ($pages[$p],   '>')
>                      ),
>                      $pages[$cnt]
>                   )
>

Thanks Dimitre! That works. I'll remember that nesting approach in the future.

However, string-join is just too easy to pass up. :)

Sure. Both methods can be more useful in some cases and not so much in other. When one wants to mix different kind of items (not only strings), then string-join will not be too useful.


-- 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





--
John McGowan
Seven A C Consulting, Inc.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.