[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Iteration without nodes

Subject: RE: Iteration without nodes
From: "Frank Daly" <Frank.Daly@xxxxxx>
Date: Wed, 26 Jul 2006 16:36:59 +0100
nodes iteration node
Thanks Colin.


-----Original Message-----
From: Colin Adams [mailto:colinpauladams@xxxxxxxxxxx]
Sent: 26 July 2006 15:53
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Iteration without nodes

>From: "Frank Daly" <Frank.Daly@xxxxxx>

>I've successfully used the expression <xsl:for-each
>select="fieldcount[position() &lt; $lastNo]"> to perform a certain
>operation a number of times.  I'm not sure where I got it and can't
>information on why it works.  Now I'm doing a slightly different
>stylesheet and I can't get the desired result.  Could someone explain
>how this operation works.

Sounds like a horrible bodge to me.

What the code actually does is to iterate over the first ($lastNo - 1)
fieldcount children
of the context node.

If there happen to be at least ($lastNo - 1) of them, then is is
to performing the body
of the for-each loop ($lastNo - 1) times. otherwise it is not.

Be the first to hear what's new at MSN - sign up to our free


The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.

Current Thread


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.
First Name
Last Name
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.