updated queries from SVN Branch part 2
parent
628ba14f41
commit
02fa846148
@ -1,11 +1,18 @@
|
||||
<!--
|
||||
Notice: the <Resources> node must be removed in using the resource grid factory.
|
||||
-->
|
||||
let $profiles := collection('/db/Profiles/<RES_TYPE ISdefault ='RunningInstance'/>')//Resource[ID/string() eq '<RES_ID/>']
|
||||
let $relatedghn := collection('/db/Profiles/GHN')//Resource[ID/string() eq $profiles/Profile/GHN/@UniqueID/string()]
|
||||
let $ghn-name := if (empty($relatedghn/Profile/GHNDescription/Name/string()))
|
||||
then $profiles/Profile/GHN/@UniqueID/string()
|
||||
else $relatedghn/Profile/GHNDescription/Name/string()
|
||||
for $ri in $profiles
|
||||
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
|
||||
|
||||
let $_ri_type := '<RES_TYPE ISdefault ='RunningInstance'/>'
|
||||
let $_ri_id := '<RES_ID/>'
|
||||
|
||||
let $ri_docname := concat('/db/Profiles/RunningInstance/',$_ri_id)
|
||||
let $ri := doc($ri_docname)//Document/Data/ic:Profile/Resource
|
||||
let $ghn-id := $ri/Profile/GHN/@UniqueID/string()
|
||||
|
||||
let $ghn_docname := concat('/db/Profiles/GHN/',$ri/Profile/GHN/@UniqueID/string())
|
||||
let $relatedghn := doc($ghn_docname)//Document/Data/ic:Profile/Resource
|
||||
let $_ghn-name := $relatedghn/Profile/GHNDescription/Name/string()
|
||||
let $ghn-name := if (empty($_ghn-name)) then $ghn-id else $_ghn-name
|
||||
return
|
||||
<RESOURCE/>
|
Loading…
Reference in New Issue