[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Parsing a List
Hello Kenneth,
you can pass parameters to the stylesheet. In your case for example the number of the first element to show in the list: <xsl:param name="first" select="1"/> <xsl:param name="count" select="50"/> > <xsl:template match="DATALIST"> > <table cellpadding="5" cellspacing="0" border="0"> > <tr> > <td width="135"><u><font color="green">Company</font></u></td> > <td width="330"><u><font color="green">Address </font></u></td> > <td width="100"><u><font color="green">Phone </font></u></td> > <td width="100"></td> > </tr> > <xsl:apply-templates select="customer"/> changed to: <xsl:apply-templates select="customer[position() >= $first][position() <= $count]"/> > </table> > </xsl:template>
Regards, Joerg 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
|