[xsl] How to unflatten the source XML ?

Subject: [xsl] How to unflatten the source XML ?
From: "Herman Kwok" <herman.kwok@xxxxxxxxxxxxxxxx>
Date: Thu, 06 Nov 2003 14:13:28 +0800
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