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

Re: columns and a new page in FO

Subject: Re: columns and a new page in FO
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Date: Tue, 9 Apr 2002 01:23:24 +0200
fo new page
Hello Jaideep,

you have to search this nodes on which you have to create a new page. This
can happen with the code below. Sorry, that I don't know the FO code. I hope
my pseudo FO XML shows you the way.


<xsl:param name="cols-on-one-page" select="10"/>

<xsl:template match="nodes">
    <xsl:apply-templates select="node[position() mod $cols-on-one-page = 1]"
mode="new-page"/>
</xsl:template>

<xsl:template match="node" mode="new-page">
    <new-page>
        <xsl:apply-templates select=". | following-sibling::node[position()
&lt; $cols-on-one-page]"/>
    </new-page>
</xsl:template>

<xsl:template match="node">
    <col>
        ...
    </col>
</xsl:template>

Regards,

Joerg

> I have generate a pdf using FO.  The data is supposed to be in the
> columns.  Each column is data based on a certain node.  The number
> of nodes in the XML is variable and I have to generate a new page
> if the number of columns exceeds a certain number.
> This entire thing seems more iterative to me than recursive.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Jaideep


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.