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

Re: Character Report Overflow Pages

Subject: Re: Character Report Overflow Pages
From: "Eric Bréchemier" <eric.brechemier@xxxxxxxxx>
Date: Tue, 5 Jun 2007 17:51:07 +0200
Re:  Character Report Overflow Pages
Hi Matt,

I think that you could try something like that (rough idea):

- 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:apply-templates mode="header" select="$headerData" />

 <xsl:variable name="end" select="$start + $range" />
 <xsl:apply-templates mode="body" select="xpath_to_transaction[$start
&lt;= position() and position() &lt;= ($end)]" />

 <xsl:if test=" $end &lt; 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>

</xsl:template>

I could make it a little more explicit if you can provide a sample of
your input data.

Kind Regards,

Eric Brichemier

On 6/5/07, Matt <puskas.duck@xxxxxxxxx> wrote:
(...)
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

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.