Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Character Report Overflow Pages

From: "Eric Br&#xE9;chemier" <eric.brechemier@--------->
To:
Date: 6/5/2007 3:51:00 PM
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).


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent