Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. <bib>
  3. {
  4. for $b in distinct-values(doc("XMP/bib.xml")/bib/book/author/last)
  5. return
  6.  
  7. <author lname="{$b}">
  8.  
  9. <book>
  10. {
  11. for $z in doc("XMP/bib.xml")/bib/book
  12. where $z/author/last=$b
  13. return
  14. <book>
  15. {$z/@year}
  16. {string($z/title)}
  17. </book>
  18. }
  19. </book>
  20. </author>
  21. }
  22. </bib>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement