[Home] [By Thread] [By Date] [Recent Entries]

  • From: Gordon Stewart <gordon.stewart@n...>
  • To: xml-dev <xml-dev@l...>
  • 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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member