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

Re: Need exactly 23 rows of output before next page

Subject: Re: Need exactly 23 rows of output before next page
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 13 Aug 2004 22:24:40 +0200
Re:  Need exactly 23 rows of output before next page
Clay Leeds wrote:
There's one error in there... I think '<' should be '&lt;':

No, only ">" needs to be escaped in attribute values.

I probably forgot the parenthesis, try
   ...select="(//node())[position() &lt; (24 - ($detail-count mod 23))]">
              ^        ^
Unfortunately, the FAQ
circumvents this question by using a variable, and I'm way
too lazy to fire up my trusty XSLT dev environment now...

BTW, one other problem I've got is how to maintain the alternating row background-color... I'm using the following to specify bgcolor:
It works if I have an even number of DETAILLINEs w data. Of course, in this case position() is being used... If I use $detail-count instead bgcolor for empty rows stays the same...

No surprise. Try "($detail-count + position()) mod 2" or a variation.

I looked in the XSLT FAQ, and couldn't come up with an intelligent enough wording for searching. Any ideas on a good query?

I think the FAQ is meant to be read from beginning to end, and being memorized... Promising terms are "iteration", "looping" and "recursion", leading for example to http://www.dpawson.co.uk/xsl/sect2/N4806.html#d5529e16 (beware of the ">" in the test)


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.