Nested FLWOR Queries

For each book in the bibliography, list the title and authors, grouped inside a result element.

   for $b in doc("bib.xml")/bib/book
       { $b/title }
         for $a in $b/author
         return $a

Adapted from XML Query Use Cases

Previous | Next | Top | Cafe con Leche | Cafe au Lait

Copyright 2002-2005 Elliotte Rusty Harold
Last Modified November 17, 2003