Subject: Re: [xsl] Character Report Overflow Pages From: "Eric Bréchemier" <eric.brechemier@xxxxxxxxx> Date: Tue, 5 Jun 2007 17:51:07 +0200 |
- apply your printing template to the header, - apply your printing template to a selection of 20 transaction lines - loop recursively
<xsl:template mode="page" match="/"> <xsl:param name="headerData" /> <xsl:param name="start" select="1" /> <xsl:param name="range" select="20" />
<xsl:variable name="end" select="$start + $range" /> <xsl:apply-templates mode="body" select="xpath_to_transaction[$start <= position() and position() <= ($end)]" />
<xsl:if test=" $end < count(xpath_to_transaction) "> <xsl:apply-templates mode="page" select="."> <xsl:with-param name="headerData" select="$headerData" /> <xsl:with-param name="start" select="$end + 1" /> </xsl:apply-templates> </xsl:if>
I could make it a little more explicit if you can provide a sample of your input data.
(...) The problem I have is that I have 2 regions firstly a header which contains customer name and address, and then a detail region containing transaction information. If the number of transactions exceed the maximum limit (say 20) then I need to print out the details on a second page, and repeat the header (name and address).
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Character Report Overflow, bryan rasmussen | Thread | Re: [xsl] Character Report Overflow, Matt |
Re: [xsl] Character Report Overflow, bryan rasmussen | Date | Re: [xsl] Re: Structuring multiple , Mukul Gandhi |
Month |