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

Re: xsl:for or xsl:repeat

Subject: Re: xsl:for or xsl:repeat
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 24 May 2006 08:28:46 -0700
gwsmartmove.co.uk
<xsl:for-each select="1 to f:myNumberOfTimes($whateverParamsIfAny)">
 <!-- Stuff to "repeat" here: -->
</xsl:for-each>

Certainly, this is not at all the same as in the case when the result
of a previous "repetition" is needed in order to process the "current
repetition" and you haven't indicated if this is necessary in your
case. If this is necessary, then a function like FXSL's

f:iter()

matches most closely the requirements.


-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence.


On 5/24/06, Mark Williams <mark@xxxxxxxxxxxxxxxxx> wrote:
Hi,

I know the answer to this is probably obvious. So apologies in advance
for being totally useless as usual.

I'm looking for a function similar to to for-each, but instead I will
have a value passed from the xml which will be a number and I will have
to iterate for that number. What I need is:

eg <xsl:for nooftimes="2">

or <xsl:repeat repetitions="2">

Or some such.

Thanks in advance.

Mark Williams

________________________________

GWSmartmove

24 St Andrews Crescent, Cardiff, CF10 3DD

E: enquiries@xxxxxxxxxxxxxxxxx
T: 02920375901
F: 02920375909

www.gwsmartmove.co.uk

The contents of this email and any attachments are the property of
Gimblett Williams Solicitors Limited and are intended for the
confidential use of the named recipient(s) only. If they have been
received by you in error please maintain confidentiality, notify us,
destroy copies and delete them from your computer. It is the
responsibility of the recipient to scan this email for viruses.

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.