Query with multiple variables

Create a list of all the title-author pairs, with each pair enclosed in a result element.

   for $b in document("bib.xml")/bib/book,
     $t in $b/title,
     $a in $b/author
    { $t }
    { $a }

Adapted from XML Query Use Cases

Previous | Next | Top | Cafe con Leche

Copyright 2002, 2003 Elliotte Rusty Harold
Last Modified September 13, 2001