[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Parsing a List

Subject: Parsing a List
From: kenneth.howlin@xxxxxxxxxx
Date: Tue, 21 May 2002 09:23:11 -0700
parsing a list
Hi Guys,

I'm pretty new to XSL and have a problem which I hope you might  be able to
help me with.

I have the following code

<!--customer_listStart-->
<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"/>
</table>
</xsl:template>

<xsl:template match="customer">

<tr>
<td valign="top"><a><xsl:attribute name="href">
adminViewCompanyByID?companyid=<xsl:value-of select="id"/>&#38;companyname
=<xsl:value-of select="invoicename"/></xsl:attribute><xsl:value-of select="
invoicename"/></a></td>
<td valign="top"><xsl:value-of select="invoiceaddress"/></td>
<td valign="top"><xsl:value-of select="phone"/></td>
</tr>
</xsl:template>

Simply, all this code does is displays all customers contained in the
database. However my problem is that I have 1000s of customers in the
database and as a result all these are returned in one huge list. My web
page is therefore ridicously wrong.

Does anyone know anyway of displaying say 50 Customers at a time with a
'next' and "previous" link to display  the next or previous 50.

Any help would be greatly appreciated.

Thanks
- ken

Ken Howlin
Application Developer
LAURDE Limited
Unit 1A
Renmore Business Park
10 Kilcoole Industrial Estate
Kilcoole
County Wicklow
Ireland
mobile: 087 92 85 660
telephone: + 353  1 2878187
email: kenneth.howlin@xxxxxxxxxx
web: www.laurde.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.