Project

Profile

Help

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

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

1

    
2

    
3
<bib>
4
{
5
        for $b in doc("bib.xml")//book[author]
6
        return
7
            <book>
8
                { $b/title }
9
                { $b/author }
10
            </book>
11
}
12
{
13
        for $b in doc("bib.xml")//book[editor]
14
        return
15
          <reference>
16
            { $b/title }
17
            {$b/editor/affiliation}
18
          </reference>
19
}
20
</bib> 
21

    
(19-19/38)