Subject: RE: [xsl] Splitting files 5 at a time From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 02 Apr 2008 15:05:52 -0400 |
> From: David Carlisle [mailto:davidc@xxxxxxxxx] > Sent: 02 April, 2008 14:37 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] 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?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Splitting files 5 at a ti, Houghton,Andrew | Thread | Re: [xsl] Splitting files 5 at a ti, David Carlisle |
RE: [xsl] Splitting files 5 at a ti, Houghton,Andrew | Date | Re: [xsl] Splitting files 5 at a ti, David Carlisle |
Month |