This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Position Counting Problems




Dear all,

     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

Is there anyway in XSL I can do this?

Regards,

Albert Tsun



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]