# # Params: RES_ID the ID of looked up resource # RES_TYPE (option) the type of searched resource for $resource in collection('/db/Profiles/')//Resource where $resource/ID/string() eq '' return $resource