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

How to unflatten the source XML ?

Subject: How to unflatten the source XML ?
From: "Herman Kwok" <herman.kwok@xxxxxxxxxxxxxxxx>
Date: Thu, 06 Nov 2003 14:13:28 +0800
unflatten
Hi,

I am new to the XSLT. 

Would you please tell me how to group fixed number (say 3) of consecutive node together?

The original file

<item>A</item>
<item>B</item>
<item>C</item>
<item>D</item>
<item>E</item>
<item>F</item>
<item>G</item>

should become

<group id="1">
    <item>A</item>
    <item>B</item>
    <item>C</item>
</group>
<group id="2">
    <item>D</item>
    <item>E</item>
    <item>F</item>
<group id="3">
    <item>G</item>
</group>

Someone told me that it is about pagination. However, I do not come across any light in this direction. 

Is it possible to be done by XSL? 

Any help (solutions, possible solutions, resources, URL, any kind) on this is highly appreciated.

Herman
-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


 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.