Element Constructors

List titles of all books in a bib element. Put each title in a book element.

<bib>
  {
   for $t in doc("bib.xml")/bib/book/title
   return
    <book>
     { $t }
    </book>
  }
</bib>

Adapted from XML Query Use Cases


Previous | Next | Top | Cafe con Leche

Copyright 2002, 2003 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified December 6, 2002