Subject: [xsl] Keeping varying number of rows together From: "Woosley, David" <David.Woosley@xxxxxxxx> Date: Thu, 20 Feb 2003 10:29:00 -0500 |
I need to keep small clumps of table rows together on the same page, but the solutions I've seen posted here are not working. Assume the XML document looks like this: ------------------------------ <record> <line stuff="aaa"/> </record> <record> <line stuff="bbb"/> <line stuff="bbb"/> <line stuff="bbb"/> </record> <record> <line stuff="ccc"/> <line stuff="ccc"/> </record> ------------------------------ ... and so forth. Each record will contain from one to 'N' lines, where 'N' will probably be less than five (5) or six (6). This does NOT work: ------------------------------ <xsl:for-each select="record"> <xsl:for-each select="line"> <xsl:if test="position() = 1"> <fo:table-row> ... </fo:table-row> </xsl:if> <xsl:if test="position() > 1"> <fo:table-row keep-with-previous.within-page="always"> ... </fo:table-row> </xsl:if> </xsl:for-each> </xsl:for-each> ------------------------------ Any ideas on how to accomplish this goal? Many thanks. David Woosley Iron Mountain Records Management 1000 Campus Drive Collegeville, PA 19426 610-831-2657 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Maintaining XML via Form , Karl Stubsjoen | Thread | Re: [xsl] Keeping varying number of, J.Pietschmann |
[xsl] Maintaining XML via Form Post, Karl Stubsjoen | Date | Re: [xsl] Getting position of paren, Jeni Tennison |
Month |