Jump to content

jazzman_guy

Members
  • Posts

    2
  • Joined

  • Last visited

jazzman_guy's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thanks very much for your replyI will try to explain a simplified version of what I am trying to do (limited space here) its actually rather simple I am just not an expert on xsl.First: I am trying to calculate item stock resupplyExample 1: if I say YES to items I want the calculation to only add the highest number in the categoryYES on Item 1 = 5YES on Item 2 = 8YES on Item 3 = 15Answer should be 15 (highest number)NO on Item 1 = 5NO on Item 2 = 8NO on Item 3 = 15Answer should be 28 (all added)Example 2: if I say NO to items I want the calculation to add ALL the items
  2. I want the XSL to perform the following calculation1. (Question 1/add supplies/equal/yes) answers with only highest numerical number i.e. item number 1 = 4 item number 2 =7 item number 3 = 2with the above answer if the answer is Yes for all items (Total should be 7)which is the Max number for the answers2. (Question 2/add supplies/equal/No) answers should be added individuallyall answer no for resupply i.e. item number 1 =2 item number 2 =5 item number 3 = 7 Answer should be added = 11another way to look at this:Supplies QtyNo 1No 2 Total Order = 3Supplies QtyYes 7Yes 4 Total order = 7I am hoping that this can be done in XSL but cannot find out how this can be done?Sample Code for both xsl and xml would be greatly appreciated
×
×
  • Create New...