|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:variable {RE: XSL to handle display mutiple pages}
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








