XPath and calculations

?

--

Ok, this might be a dumb question. I've got a secondary data source
with a structure like
....
<Season>
<Season_Id>1</Season_Id>
<Lodging>100</Lodging>
<Meals>25</Meals>
<Days_In_Season>10</Days_In_Season>
</Season>
<Season>
<Season_Id>2</Season_Id>
<Lodging>130</Lodging>
<Meals>35</Meals>
<Days_In_Season>5</Days_In_Season>
</Season>
.....

And I'd like to calculate the total cost over all seasons.
Something like sum(((Lodging + Meals) * Days_In_Season))
Any method of doing this with a XPath expression for use in a formula?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top