[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
Clay Leeds wrote:
There's one error in there... I think '<' should be '<': No, only ">" needs to be escaped in attribute values. I probably forgot the parenthesis, try ...select="(//node())[position() < (24 - ($detail-count mod 23))]"> ^ ^ Unfortunately, the FAQ http://www.dpawson.co.uk/xsl/sect2/muench.html#d8867e264 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?
J.Pietschmann
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|