Sha256: d8959227d85104938140eeb32e438abfaff758a66a11026e67a1526e869edb26

Contents?: true

Size: 588 Bytes

Versions: 2

Compression:

Stored size: 588 Bytes

Contents

<bib>
{
    for $book1 in doc("http://bstore1.example.com/bib.xml")//book,
        $book2 in doc("http://bstore1.example.com/bib.xml")//book
    let $aut1 := for $a in $book1/author 
                 order by $a/last, $a/first
                 return $a
    let $aut2 := for $a in $book2/author 
                 order by $a/last, $a/first
                 return $a
    where $book1 << $book2
    and not($book1/title = $book2/title)
    and deep-equal($aut1, $aut2) 
    return
        <book-pair>
            { $book1/title }
            { $book2/title }
        </book-pair>
}
</bib>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magic_xml-0.1.1 xquery_use_cases/xmp/q12.xquery
magic_xml-0.1.0 xquery_use_cases/xmp/q12.xquery