{ for $f in doc("book.xml")//figure return
{ $f/@* } { $f/title }
}