This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]