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

Need exactly 23 rows of output before next page

Subject: Need exactly 23 rows of output before next page
From: Clay Leeds <cleeds@xxxxxxxxxx>
Date: Thu, 12 Aug 2004 09:46:05 -0700
rows per page xsl xml
I am re-creating a medical form which outputs exactly 23 rows per page (i.e., if there are 3 rows of data, 23 nodes are output; if there are 24 rows of data, 46 nodes are output, w page one having 23 rows of data, and page 2 having one row of data filled/22 rows empty, etc.).

At the moment, I'm using a for-each and require that XML input contain data rows in multiples of 23. My current XSL which works:

<xsl:for-each select="DETAILLINE">
<fo:table-row height=".8cm" border=".5pt solid {$varColor}"
border-collapse="collapse" line-height="22pt">
<fo:table-cell text-align="center" border-bottom=".5pt solid {$varColor}">
<fo:block>
<xsl:value-of select="DOSFROM/MM"/>
</fo:block>
</fo:table-cell>
..
</fo:table-row>
</xsl:for-each>


I'd like to fix the XML so that they don't have to output in multiples of 23. I started attempting to do something similar to what I found in the 'Two column lists?" section of the formidable XSL FAQ[1], but after a few days of pounding on the keys & searching archives 'for\-each;count' my head and my fingers :-D started to hurt.

Any ideas?

[1]
http://www.dpawson.co.uk/xsl/sect3/twocols.html

Web Maestro Clay <cleeds@xxxxxxxxxx>
---
There are only 10 kinds of people in the world:
those who understand binary and those who don't.

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.