xsl-list
[Top] [All Lists]

RE: using xsl and javascript to create dhtml

2004-03-19 16:44:45
The logic for splitting a list of 100 items into pages of 20 is exactly the
same as arranging it in a table with 20 rows. It's basically

for-each select="item[position() mod 20 = 1]"
  <page>
    for-each select=".|following-sibling::item[position() &lt; 20]

Michael Kay 

# -----Original Message-----
# From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
# [mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
# rj_peterson(_at_)dstoutput(_dot_)com
# Sent: 19 March 2004 22:04
# To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
# Subject: [xsl] using xsl and javascript to create dhtml
# 
# 
# 
# 
# 
# I am transforming xml into an html page that has a list of 
# about 100 items.
# I want to put in some kind of pagination where the first 20 
# are displayed with links on the bottom to go to the next 20 
# etc.  Is there a relatively easy way to accomplish this with 
# xsl?  I have considered using some sort of javascript and div 
# tags to rewrite the div section as needed.  Any thoughts or 
# examples on this?
# 
# Thanks
# 
# 
#  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
# 
# 


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



<Prev in Thread] Current Thread [Next in Thread>