Grouping

Discussion in 'XML' started by Mike King, Nov 15, 2005.

  1. Mike King

    Mike King Guest

    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" />
     
    Mike King, Nov 15, 2005
    #1
    1. Advertising

  2. Mike King

    Mike King Guest

    "Mike King" <> wrote in message
    news:...
    > 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
     
    Mike King, Nov 15, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Wier
    Replies:
    0
    Views:
    459
    David Wier
    Aug 8, 2003
  2. S. Justin Gengo
    Replies:
    0
    Views:
    1,814
    S. Justin Gengo
    Aug 8, 2003
  3. JemPower
    Replies:
    0
    Views:
    682
    JemPower
    Aug 29, 2003
  4. Craig Buchanan

    Outlook-style grouping?

    Craig Buchanan, Oct 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    Craig Buchanan
    Oct 14, 2003
  5. Brian Henry

    radio buttons on form grouping question

    Brian Henry, Nov 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,116
    Jon Paugh
    Nov 20, 2003
Loading...

Share This Page