OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xml-dev] maths in xml



Dear List

I have a XML file that has the following structure

<product>
  <unitprice>2.00</unitprice>
  <sold>5</sold>
</product>
<product>
  <unitprice>3.00</unitprice>
  <sold>2</sold>
</product>

How do I get XML to display the data so that the xsl file has calculation in
it so that the data shows as

10.00
6.00

and then I would like to add them up so I get 16.00.

I do not want to hard code the value into my XML document.

Thanks for you help.

Gordon