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

Re: how do i implement a WHILE like function

Subject: Re: how do i implement a WHILE like function
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 2 Mar 2001 19:18:29 -0700 (MST)
xslt function while
Vinh Luu wrote:
>     I have a list of results that can be 100 rows long, with 25 lines per
> page which equals 4 pages.  Now, the server passes to me only 25 rows at a
> time and also passes to me the total number pages (4) and the current page.
> 
> Now, I want to take this info and us XSLT to build a footer that looks
> something like:
> 
> row 1
> row 2 ...
> row 25        (ignore the rows)
> ----------------------------------------------------------------------------
> Page (2 or 4)   1  2  3  4        (each number in this row a link)

To answer the question in the subject line, there is no way in XSLT to
break out of a loop. You can, however, use a recursive named template that
passes itself a parameter that is whatever thing you want to monitor the
state of.

However, I don't see what your problem is, if you know the current page and
the total number of pages... why do you need to know anything else in order
to generate that footer?

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.