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

best way to divide selected elements?

Subject: best way to divide selected elements?
From: "Elliott, Marc" <MElliott@xxxxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 14:15:47 -0500
html divide select
I currently have an xsl that takes a directory file list, then based on tags
within each file, contructs an xml file in which the file names are grouped
by category, like this:

<category>
	<file>file_x.html</file>
	<file>file_x.html</file>
	....
	<file>file_x.html</file>
	<file>file_x.html</file>
</category>

I'd like to change it so that if category element is going to include more
than 20 file elements another category element is created:

<category>
	<file>file_x.html</file>
	... 19 more times
</category>

<category>
	<file>file_x.html</file>
	... 5 more times, for example
</category>

Any advice on the best way to do this?

______________________________________________________

Marc Elliott, HNW Digital, Inc.
Digital Solutions for High-Net-Worth Marketers



 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.