Project

Profile

Help

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

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

1
xquery version "1.0";
2
(: Additional Use Case addq1 :)
3
(: Produce a numbered list of book titles :)
4
<bib>
5
 {
6
  for $b at $n in doc("bib.xml")/bib/book
7
  return
8
    <book number="{ $n }">
9
     { $b/title }
10
    </book>
11
 }
12
</bib> 
(1-1/38)