[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xml-dev] maths in xml
- From: Gordon Stewart <gordon.stewart@net800.co.uk>
- To: xml-dev <xml-dev@lists.xml.org>
- Date: Tue, 18 Sep 2001 14:42:29 +0100
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