Project

Profile

Help

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

he / src / use-cases / xmp / q10.xq @ a31dd97a

1
<results>
2
  {
3
    let $doc := doc("prices.xml")
4
    for $t in distinct-values($doc//book/title)
5
    let $p := $doc//book[title = $t]/price
6
    return
7
      <minprice title="{ $t }">
8
        <price>{ min($p) }</price>
9
      </minprice>
10
  }
11
</results>
(17-17/38)