Project

Profile

Help

How to connect?
Download (297 Bytes) Statistics
| Branch: | Revision:

he / src / use-cases / strong / q11.xqlib @ a31dd97a

1
module namespace c="http://www.example.com/calc";
2
import schema namespace ipo="http://www.example.com/IPO" at "ipo.xsd";
3

    
4
declare function c:total-price( $i as element(item)* )
5
  as xs:decimal
6
{
7
  let $subtotals := for $s in $i return $s/quantity * $s/USPrice
8
  return sum( $subtotals )
9
};
(12-12/27)