2020-09-25 12:39:08 +02:00
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
for $profiles in collection('/db/Profiles/GenericResource')//Document/Data/ic:Profile/Resource, $wsresource in collection('/db/Properties')//Document
2012-12-28 17:45:48 +01:00
let $scopes := string-join( $profiles/Scopes//Scope/text(), ';')
let $subtype := $profiles//Resource/Profile/SecondaryType/text()
2020-09-25 12:39:08 +02:00
where $subtype = "DataSource" and $profiles/ID eq $wsresource/SourceKey and $wsresource/Data//child::*[local-name()='ServiceName']/string() eq 'tree-manager-service'
2012-12-28 17:45:48 +01:00
<RES_SUBTYPE ISdefault =''/>
return
2013-09-11 18:40:58 +02:00
<RESOURCE/>