Project

General

Profile

1
for $x in
2
    recordCollection('/db/DRIVER/entity/datasource')
3
where
4
    $x//NUMBER_OF_OBJECTS != 0 and not($x//LATITUDE = 0 and $x//LONGITUDE = 0)
5
return
6
    <ds>
7
        <dsId>{$x//RESOURCE_IDENTIFIER/@value/string()}</dsId>
8
        <name>{$x//OFFICIAL_NAME/text()}</name>
9
        <lat>{$x//LATITUDE/text()}</lat>
10
        <lng>{$x//LONGITUDE/text()}</lng>
11
    </ds>
(4-4/5)