Updated the unclasified check script
[quandoparte] / application / resources / stations / generateunclassifiedlist.xq
1 <stations>
2 {
3 for $doc in (
4         'nord.osm',
5         'nordovest.osm',
6         'nordest.osm',
7         'liguria.osm',
8         'centronord.osm', 
9         'centrosud.osm', 
10         'sud.osm', 
11         'sicilia.osm', 
12         'puglia.osm', 
13         'sardegna.osm',
14         'h-nord.osm',
15         'h-nordovest.osm',
16         'h-nordest.osm',
17         'h-liguria.osm',
18         'h-centronord.osm', 
19         'h-centrosud.osm', 
20         'h-sud.osm', 
21         'h-sicilia.osm', 
22         'h-puglia.osm', 
23         'h-sardegna.osm')
24 for $node in doc($doc)//node
25 where $node/tag[@k='name'] and empty($node/tag[@k='operator']) 
26 return 
27 <station>
28 <pos>{
29 data($node/@lon)
30 },{
31 data($node/@lat)
32 }
33 </pos>
34 <name>
35 {
36 data($node//tag[@k='name']/@v)
37 }
38 </name>
39 <id>
40 {
41 data($node/@id)
42 }
43 </id>
44 </station>
45 }
46 </stations>