xsl-list
[Top] [All Lists]

Re: AW: simple conditional looping

2004-08-17 03:34:31

hello,

mulberrytech list rocks. this xsl list is really the best place for xsl learners.

thank you everybody for helping out on this issue.
I was able to produce the desired output using the 'Piez' method.

xptm, fyi i wanted to display atleast 50 rows, but if the count(orders) is > 50 then display all the rows.

regards,
keyur

From: Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: AW: [xsl] simple conditional looping
Date: Mon, 16 Aug 2004 13:32:29 -0400

Hi xptm,

At 01:12 PM 8/16/2004, you wrote:
I mean, i'm assuming Keyur want no more and no less than 50 lines per page, and
maybe it's not the case...

> > > >In my printer friendly stylesheet I need to display minimum 50 lines.

If there can be 50+ lines, than your solution is 100% ok...

I can't find the post now, but IIRC the OP's requirement was to fill in up to fifty if there were less than fifty (but he may not have said what to do if there were more).

In any case, we know how to limit it to fifty: select="order[position() &lt;= 50]"

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--