Fix mergelist.xq script
[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>