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

RE: Splitting files 5 at a time

Subject: RE: Splitting files 5 at a time
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Wed, 2 Apr 2008 14:49:31 -0400
RE:  Splitting files 5 at a time
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 02 April, 2008 14:37
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Splitting files 5 at a time
>
>
>
>    [count() mod 5 = 0]
>
> [position() mod 5 = 1]

I thought I understood his problem to be that he wanted the
first five customers in one file, then the next five customers
in the next, etc.  If he just did what you suggested wouldn't
he just grab every 1 in 5 customers out of the group of five
customers?

Customer  1 => position() mod 5 = 1
Customer  2 => position() mod 5 = 2
Customer  3 => position() mod 5 = 3
Customer  4 => position() mod 5 = 4
Customer  5 => position() mod 5 = 0

Customer  6 => position() mod 5 = 1
Customer  7 => position() mod 5 = 2
Customer  8 => position() mod 5 = 3
Customer  9 => position() mod 5 = 4
Customer 10 => position() mod 5 = 0

So if I understood your solution, he would create the first file
with Customer 1, 6, 11, 16, 21 and not Customer 1, 2, 3, 4, 5.
Is that correct?


Andy.

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.