RE: xsl:variable {RE: XSL to handle display mutiple pages}

Subject: RE: xsl:variable {RE: XSL to handle display mutiple pages}
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 8 Nov 2000 11:01:16 -0000
> 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


Current Thread