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

dividing a structure into fractions

Subject: dividing a structure into fractions
From: Gavin Montague <lists@xxxxxxxxxxxxxxx>
Date: Wed, 6 Jul 2005 16:25:09 +0100
dividing length into equal parts
Hi all,

I'd be very grateful if someone could tell me the best method of sorting a repeating unit of arbitrary length into equal parts, for example.

<units>
    <unit_1 />
    <unit_2 />
    <unit_3 />
    <unit_4 />
    <unit_5 />
    <unit_6 />
    <unit_7 />
    <unit_8 />
<units>

into...

    <part>
        <unit_1 />
        <unit_2 />
        <unit_3 />
    </part>
    <part>
        <unit_4 />
        <unit_5 />
        <unit_6 />
    </part>
    <part>
        <unit_7 />
        <unit_8 />
    </part>

My experiments with for loops have come to naught.

Many thanks,
    Gavin

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.