Grouping

M

Mike King

How can I process nodes at the same time? In other words, in the example
below I want to process the "t-r" elements and it's child nodes in groups of
two. These groups are going to end up being MS Excel Worksheets.

<?xml version="1.0"?>
<root>
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />
</root>


group 1:
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />

group 2:
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />

group 3:
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />
 
M

Mike King

Mike King said:
How can I process nodes at the same time? In other words, in the example
below I want to process the "t-r" elements and it's child nodes in groups
of two. These groups are going to end up being MS Excel Worksheets.

<?xml version="1.0"?>
<root>
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />
</root>


group 1:
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />

group 2:
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />

group 3:
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />


Sorry. I found the answer.

http://sources.redhat.com/ml/xsl-list/2000-08/msg00058.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top