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

Position Counting Problem

Subject: Position Counting Problem
From: "Albert Tsun" <albert.tsun@xxxxxxxxxxxx>
Date: Thu, 18 Jan 2001 17:47:15 +0800
counting problem

Dear Jeni,

     I have a "position counting problem", now this is the situation I
have:

There are 3 different groups of items which are grouped by 3 different
groups in an XML, like this:
     <GroupA>
          <GroupA:AItems></GroupA:AItems>
          .
          .
          .
     </GroupA>
     <GroupB>
          <GroupB:BItems></GroupA:BItem>
          .
          .
          .
     </GroupB>
     <GroupC>
          <GroupC:CItems></GroupC:CItems>
          .
          .
          .
     </GroupC>

What I need to do now is to
(1) find the largest group
(2) get the largest item_count from (1), then use  to print each Group in
orders in horizontal row. , that is

Group A- postion()=1  item  , Group B- postion()=1  item, Group
C-postion()=1 item
Group A- postion()=2  item  , Group B- postion()=2  item, Group
C-postion()=2 item
Group A- postion()=3  item  , Group B- postion()=3  item, Group
C-postion()=3 item
Group A- postion()=4  item  ,  <<this may be blank>>    , Group
C-postion()=4 item
<<this may be blank>>       ,  <<this may be blank>>    , Group
C-postion()=5 item

The difficult part is the item no in different group may not be the same
and blank spaces
may occurs in each row.

Is there anyway in XSL I can do this?

Regards,

Albert Tsun




 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.