total of a product xslt

tandor

New Member
am having dificulties on tackling this xslt of which gives me headache when it comes to summing up a total of receipt of which is stock * price.i need a guide of how i should put in the codes in an xslt sheet so as the results would be a table with the 2 offices and the total value of the 2 products of each customer.Am new in xml and xslt,.please help\[code\]<offices> <office> <customerproduct> <Price>10</Price> <Stock>20</Stock> <Ordered>25</Ordered> </customerproduct> <customerproduct> <Price>10</Price> <Stock>2</Stock> <Ordered>15</Ordered> </customerproduct> <receiptno.>1</receiptno.> </office> <office> <customerproduct> <Price>14</Price> <Stock>20</Stock> <Ordered>24</Ordered> </customerproduct> <customerproduct> <Price>100</Price> <Stock>2</Stock> <Ordered>100</Ordered> </customerproduct> <receiptno.>2</receiptno.> </office></offices>\[/code\]
 
Back
Top