2012-12-28 17:45:48 +01:00
|
|
|
<!--
|
|
|
|
Notice: the <Resources> node must be removed in using the resource grid factory.
|
|
|
|
-->
|
2013-09-12 18:47:59 +02:00
|
|
|
let $profiles := collection('/db/Profiles/<RES_TYPE ISdefault ='RunningInstance'/>')//Resource[ID/string() eq '<RES_ID/>']
|
2012-12-28 17:45:48 +01:00
|
|
|
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
|
|
|
|
return
|
2013-09-12 18:47:59 +02:00
|
|
|
<RESOURCE/>
|