Permalink
Browse files

part 3

  • Loading branch information...
1 parent 87790a9 commit 5ce87c2c672418d61edc7965b5c7cccee725797a @dom-mel committed May 18, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 uebung2/part3.xquery
View
@@ -0,0 +1,11 @@
+<result>
+{
+ for $heft in doc("lehrhefte_dbs.xml")//lehrheft/titel[@nr]
+ return
+ <lehrheft nr="{$heft/attribute::nr}">
+ <datum>{$heft/../datum}</datum>
+ <titel auflage="{$heft/../auflage_nr}">{$heft}</titel>
+ <autoren>{count($heft/../autor)}</autoren>
+ </lehrheft>
+}
+</result>

0 comments on commit 5ce87c2

Please sign in to comment.