This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:variable {RE: XSL to handle display mutiple pages}
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: xsl:variable {RE: XSL to handle display mutiple pages}
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 8 Nov 2000 11:01:16 -0000
- Reply-To: xsl-list at mulberrytech dot com
> This is related to the pagination problem I had earlier.
> Since my first
> page has header, it can only contain 50 lines, while the
> latter page can
> contain 60 lines. So I want to set $maxItemsPage to be 50
> for the first
> page, and 60 for the following pages.
>
> What is the easier way to achieve this?
Something like
<xsl:template name="one-page">
<xsl:param name="lines" select="60"/> <!-- default=60 -->
...
</xsl:template>
<xsl:template match="/">
<xsl:call-template name="one-page">
<xsl:with-param name="lines" select="50"/> <!-- for the header -->
</xsl:call-template>
<xsl:for-each seelct="-- something ---">
<xsl:call-template name="one-page">
<xsl:with-param name="lines" select="60"/> <!-- for other pages -->
</xsl:call-template>
</xsl:for-each>
</xsl:template>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list