Change mergelist so that the field order remains the same
authorLuciano Montanaro <mikelima@cirulla.net>
Mon, 16 Jan 2012 00:11:54 +0000 (01:11 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Mon, 16 Jan 2012 00:11:54 +0000 (01:11 +0100)
application/resources/stations/mergelist.xq

index 3df28a2..a0f4c5b 100644 (file)
@@ -3,11 +3,11 @@
 for $station in doc('stationpositions.qpl')//station
 return
 <station>
-{ $station/name }
 { $station/pos }
 {for $stationcode in doc('stationcodes.qpl')//station
 where $stationcode/name = $station/name
 return $stationcode/code}
+{ $station/name }
 </station>
 }
 </stations>