3df28a21f6511bc4c3a5c9548a266e64b3f531f7
[quandoparte] / application / resources / stations / mergelist.xq
1 <stations>
2 {
3 for $station in doc('stationpositions.qpl')//station
4 return
5 <station>
6 { $station/name }
7 { $station/pos }
8 {for $stationcode in doc('stationcodes.qpl')//station
9 where $stationcode/name = $station/name
10 return $stationcode/code}
11 </station>
12 }
13 </stations>