Subject: Re: Re: Re: [xsl] columns and a new page in FO From: "Joerg Heinicke" <joerg.heinicke@xxxxxx> Date: Tue, 9 Apr 2002 10:24:53 +0200 |
>From your first mail I thought you want to create one column per node and only one row per page. This means that you need a <new-row> as child of <new-page>. Maybe I should have written this too. If you want more than 1 row per page have a look at a similar example a few days ago: http://aspn.activestate.com/ASPN/Mail/Message/XSL-List/1117698. This is HTML and a new table is created after specific number of items. In FO you have to create a new page and a new table I think. Regards, Joerg > This will probably not work as this generates table column by > column and FO doesn't support that. In a table you can only have > table-row elements. > > > On Tue, 09 Apr 2002 Jaideep Chadha wrote : > >Thanks Joerg. I'll try this. > >Thanks again for your help. > > > >On Tue, 09 Apr 2002 Joerg Heinicke wrote : > >>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() > >>< $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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Re: Re: [xsl] columns and a new, Jaideep Chadha | Thread | [xsl] Read the data only once., Avula, Raj |
RE: [xsl] Read the data only once., Michael Kay | Date | RE: [xsl] Conditional indentation?, Michael Kay |
Month |